|
|
||||||||||||
|
|
||||||||||||
|
RIDDER'S Terlicht 45 9451 Kerksken Belgium phone: 00-32-53-833512 fax: 00-32-53-840994
The right support and after sales service. This is what we give you day after day and this 24/24 and 7/7
|
||||||||||||
|
You can ask your questions direct by using ICQ when we are online. Our ICQ number is 163202313. If you do not have ICQ, please download it for free at www.icq.com
Is the plc you use now more simple in use? I do not think so.
Let say when you press a button, your PLC will greet you either "Good Morning", "Good Afternoon" or "Good Evening" on its LCD display depending on the time of the day. Here is how you achieve it with Ladder + BASIC: 1) Create a ladder logic circuit, with an input contact named "Greetings", and use it to trigger a custom function #10 when the button connected to this input is pressed.
2) Next, edit the custom function #10 and enter the following TBASIC program code:
That's all ! Now compare what you need to do to achieve the same result with other programming languages. Pure BASIC may be fine, but handling a single bit input is not its best strength, and unless it has built-in LCD command you will be struggling to address the I/O ports that controls the 14 pins of the LCD display. How about trying to do that with your traditional pure ladder logic code? First take out your thick programming manual and figure out how to store the ASCII codes for the messages in those obsure memory locations and two hours later you may or may not get it done! Note: You only need to use the BASIC language as and when needed as demonstrated in the above case. Otherwise, the PLC will happily execute standard ladder logic circuit based on AND, OR, NOT, timers, counters only! Still not convinced? Then ask our TRiLOGI software with built-in simulator, create the above program and run it on your PC to verify the outcome. This software is used by thousands of college students for learning PLC programming. Almost everything can be simulated, including the LCD display and the real time clock. Other Examples The following demonstrate how easy it is to program in TBASIC language to achieve tasks that can be quite tedious or impossible in traditional Ladder PLCs.
Copyright(c) 2002-2003 Ridder's. All rights reserved. |
||||||||||||