Industry Online Support
Technical Forum
1/23/2012 8:24 PM | |
Posts: 4 Rating:
|
Hi- What I need is the proper syntax for this block: "IF R10=20 THEN R11=.190 AND R12=-.117" Thanks in advance, Tom Barosso |
1/25/2012 8:10 PM | |
Posts: 297 Rating:
|
Don't do that unless you know what you're doing! When Do is a synchronous action block. It will wait in the background while the program continues until the When condition is true, then it does the Do action. If you don't have a programming manual, get one. They are downloadable for example at http://support.automation.siemens.com/WW/view/en/58085523 I don't think you are using AND correctly. If you want to make two assignments on one block, just separate them with spaces. AND will return the logic state TRUE or FALSE depending on the values of the expressions before and after the AND. HTH SteveA |
1/25/2012 8:49 PM | |
Posts: 4 Rating:
|
Steve- Thanks for the help IF... ... ... ENDIF works just fine. Tom |
Follow us on