Industry Online Support
Technical Forum
8/1/2013 11:12 AM | |
Joined: 1/28/2009 Last visit: 8/5/2024 Posts: 6844 Rating: (1365)
|
Hello alexej.nowikoff, As I guess you are familiar with other high level programming such as "C\C++", I suggest you start working on SCL which is likely more similar to your experience.For "switch" I suggest the "CASE" equivalent in SCL and jump distributor in STL.You can search in the forum we had a discussion on their similarity. For more help on comparison instructions , please check section "2 Comparison Instructions " of the following manual:case in STLfor SCL I also checking the following clustered topics:HD_SCL Starting Point for doing comparison in the STL you only need 2 successive load instructions to have the variables of interest in the ACC1 and ACC2.Finally use the appropriate comparison instruction and check the result in RLO by assigning or jump instructions.See the following sample: [code]L MD 100 L MD104 ==R S Q0.0[/code] SIMATIC STEP 7 V5.5 Statement List (STL) for S7-300 and S7-400 Programming Hope these comments help Hamid Hosseini |
Last edited by: hdhosseini at: 8/1/2013 11:21 AM// new info. added |
|
This contribution was helpful to1 thankful Users |
8/1/2013 1:03 PM | |
Posts: 11 Rating: (0) |
Thanks. Sadly, in my current project i am only allowed to use STL. Still, very powerful "language", just like assembly language |
8/7/2013 7:57 AM | |
Posts: 2348 Rating: (264)
|
You cant really call it sad STL has JL instruction - please refer to manuals |
Follow us on