Industry Online Support
Technical Forum
9/23/2013 11:23 PM | |
Posts: 1 Rating: (0) |
Hello, I am a student of a Dutch school and I have been experimenting with SCL. I have tryed searching the internet with no succes, so I was hoping I could get some help here. I have a question about controlling my program in SCL. I want my program to work the same way as it would work in GRAPH, sequence after sequence. Would there be a easier way of doing this other then my example below? Would it be possible without the step_is_done condition? //CODE IF "valve1_is_in"=false THEN "valve1":=true; "step1_is_done":=true; END_IF; IF "valve1_is_in"=true AND "step1_is_done"=true THEN "valve1":=false; "step2_is_done":=true; END_IF; IF "valve1_is_in"=false AND "step2_is_done"=true THEN "valve2":=true; "step3_is_done":=true; END_IF; IF "valve1_is_in"=false AND "step3_is_done"=true THEN "valve2":=false; END_IF; All your help is greatly appreciated. EDIT: I have found the solution for anyone who is interested:http://plctalk.net/qanda/showthread.php?p=369252&posted=1post 4
|
Last edited by: Jeroen228 at: 9/25/2013 7:40 PMLast edited by: Jeroen228 at: 9/25/2013 7:40 PMLast edited by: Jeroen228 at: 9/25/2013 7:40 PMLast edited by: Jeroen228 at: 9/23/2013 11:24 PM |
|
9/26/2013 1:43 PM | |
Joined: 10/10/2005 Last visit: 8/29/2024 Posts: 1917 Rating: (136) |
Hello, in refer to your sequence after sequence program you can try to use the indirect addressing methode in S7-SCL. See the FAQ with an example and description: http://support.automation.siemens.com/WW/view/de/59623719 With best regards |
This contribution was helpful to1 thankful Users |
Follow us on