Well folks here say that i have biased views about B&R but i will show you with an example how easy it is to write a code in Automation Basic or C which is supported even by B&R 2003 Micro PLCs compared to Ladder Diagrams.
Lets consider this simple application. We have two push buttons Motor_Start and Motor_Stop and a Motor.
Motor should start when operator pushes Motor_Start Button and stops when Motor_Stop Push Buttton is pressed . Ladder code will look like this:
---||---------|/|--------------()-------
X0000 | X0001 Y0000
|
---|/|----
Y0000
where X0000 - Motor_Start
X0001 - Motor_Stop
Y0000- Motor
Folks new to Ladder diagram programmimg wonder what the second line is for ? Well its called latch.Latching is a very important concept and if the programmer dont have electrical circuits background they have hard time digesting it.
How about something like this in high level language ?
If (Motor_Start = ON) and (Motor_Stop = OFF) then
Motor = ON
else
Motor = OFF
endif
Another example: Suppose you have to count products manufactured, by using a photoelectric sensor and reset the counter when count reaches 10,000.In Ladder Diagram you will have to use UP Counter fuction block whereas in High level language u can just write one line
Production_Count = PhotoSenser +1
if (Production_Count >= 10,000)
Production_Count = 0 // Reset the counter
endif
Now tell me Kiran, what you will prefer ?
Ladder Diagram or High Level Language ?
High level language code is more readable and could be understood easily by anyone whereas if you put ladder infront of someone who dont know what ladder is, he will just go mad !!
I hate Ladder Diagrams.Its pain in the A** to write complex logic in Ladder Diagrams.
Suppose I have to do some simple calculation such as:
Result = ((A+B)/(C+D)) * ((E-F-G-H) + (I+J+K+F)) / 10 * e 10
Just count how many function blocks you have to call and store result in some Temperory registers.If you use Higher level language you are done with it !
I can give such 100s of examples where programming in Ladder Diagram sucks,to prove my point.
But Kiran remember, most of the time its customer's choice and not the Programmers to choose the PLC and Programming Language so you have to live with it !
Welcome to the club and Wish you a luck