Does anyone know of any resources or sample programs. I have found the following already:
GS_SCL_e.pdf SCL_e.pdf SCLV4_e.pdf SCL-cheat-sheet.pdf
They are all from the Siemens website originally I think.
?> Looking for ''Beginners guide to SCL for the S7-1200'' - 90919 - Industry Support Siemens
Siemens SiePortal
Siemens Step 7 SCL Programcontrol.
I think the term you are looking for is "one-shot". There are multiple ways to implement but here is one that requires an extra bit for its logic.
If START then If NOT ONS_START then AMOUNT := AMOUNT + 1; ONS_START := True; End_if; Else ONS_START := False; End_if;
More on reddit.comWhat is my stupid mistake? Siemens SCL.
Videos
Hello,
I have been experimenting with SCL S7-1200 and I have a question. Is it possible to execute a instruction only once when the condition is true?
//Example
IF "start"=true THEN
"amount":="amount"+1
END_IF
Where "start"=bool and "amount"=int.
Whenever I execute the example above, "amount" keeps counting until "start" becomes false. However I want "amount" to only count +1 whenever "start" switches for false to true.
I hope I have explained my self well enough. Thanks in advance.
I think the term you are looking for is "one-shot". There are multiple ways to implement but here is one that requires an extra bit for its logic.
If START then If NOT ONS_START then AMOUNT := AMOUNT + 1; ONS_START := True; End_if; Else ONS_START := False; End_if;
This has helped me in the past when using SCL.
http://plc4good.org.ua/files/03_downloads/SCL_table/SCL-cheat-sheet.pdf