Industry Online Support
Technical Forum
10/4/2010 1:22 AM | |
Joined: 10/7/2005 Last visit: 10/9/2024 Posts: 3024 Rating: (1054)
|
Hello Per Olof Ladder logic execution in an S7 follows the "Left to right, Top to bottom" rule which in your case means that the XOR function does execute before the compare functions (and the "compare if MW4 if equal to 1" is executed before the "compare if MW4 if equal to 0") and yes, it is permissible to program like you did. Hint: If you change the view to STL you'll only have to read the statements top to bottom and toget a "clear" view of the execution sequence(albeit with some"odd" looking local memory usage and RLO/BR bit releated jumps and checks in it). You may also find the LAD/FBD/STL training video useful which you download from HERE. I hope this helps |
Cheers |
|
Follow us on