2/8/2017 10:56 AM | |
Posts: 69 Rating:
|
Btw you can write IF S THEN Q:=true; end_if; you dont need write in if operator true for bool vars bit if false you need write s=false. |
This contribution was helpful to
1 thankful Users |
2/8/2017 11:12 AM | |
Joined: 12/9/2016 Last visit: 1/13/2022 Posts: 243 Rating:
|
Hello, i make it as follows : Using the Rising edge detecting operation the #output will be True for just one cycle.
--------------------- If you find this helpful please Rate it Best Regards |
If you find my contribution helpful please RATE it :)) |
|
This contribution was helpful to
2 thankful Users |
5/24/2022 3:34 PM | |
Joined: 6/24/2013 Last visit: 5/25/2023 Posts: 1505 Rating:
|
Hi ---() is equivalent to assign i.e. q:=<logic> ---(S) is equivalent to IF <logic> THEN q:=True; end_if; ---(R) is equivalent to IF <logic> THEN q:=False; end_if; Edges: POSITIVE IF Bit AND NOT Bit_Previous THEN // code executed at raising edge END_IF; Bit_Previous:=Bit; NEGATIVE IF Bit_Previous AND NOT Bit THEN // code executed at falling edge END_IF; Bit_Previous:=Bit; BOTH IF Bit_Previous <> Bit THEN // code executed at falling edge END_IF; Bit_Previous:=Bit; BTW if you skip coil () in Ladder with a jump it will not be processed and affected bit will not be changed. |
This contribution was helpful to
1 thankful Users |
Follow us on