meta data for this page
Differences
This shows you the differences between two versions of the page.
| simatic:scl_commands_bit_logic [2024/11/17 22:29] – created - external edit 127.0.0.1 | simatic:scl_commands_bit_logic [2026/03/09 11:44] (current) – vamsan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOCACHE~~ | ~~NOCACHE~~ | ||
| ====== LamaPLC: Simatic S7 SCL commands: Bit logic operations ====== | ====== LamaPLC: Simatic S7 SCL commands: Bit logic operations ====== | ||
| - | ==== positive / negative edge monitoring ==== | + | ==== positive/ |
| {{anchor: | {{anchor: | ||
| - | Of course, there is an R_TRIG / F_TRIG function for edge monitoring, but do you really | + | Of course, there is an R_TRIG / F_TRIG function for edge monitoring, but do you really |
| - | Both negative and positive edge monitoring require an extra BOOL type static, | + | Both positive |
| - | If the old state is FALSE and the current state is TRUE, then a positive edge is received; if the reverse is true, the old state is TRUE and the new state is FALSE. | + | If the old state is FALSE and the current state is TRUE, it indicates |
| - | + | ||
| - | The example below illustrates the two options, the variables in this case being FB local " | + | |
| + | The example below demonstrates the two options, with the variables being FB local " | ||
| <code SCL|edge_monitor> | <code SCL|edge_monitor> | ||
| // signal, old_signal is type BOOL | // signal, old_signal is type BOOL | ||
| Line 29: | Line 28: | ||
| </ | </ | ||
| - | [[simatic:scl_commands|>> Back to LamaPLC main menu (SCL commands)]] | + | [[automation:s7_scl_commands|>> Back to LamaPLC main menu (SCL commands)]] |
| ==== R_TRIG ==== | ==== R_TRIG ==== | ||
| - | Detect __positive__ signal edge, if the state change | + | Detect __positive__ signal edge, if the state changes |
| <color white/ | <color white/ | ||
| Line 42: | Line 41: | ||
| |<color blue>Q </ | |<color blue>Q </ | ||
| - | [[simatic:scl_commands|>> Back to LamaPLC main menu (SCL commands)]] | + | [[automation:s7_scl_commands|>> Back to LamaPLC main menu (SCL commands)]] |
| + | |||
| + | {{page> | ||
| ==== F_TRIG ==== | ==== F_TRIG ==== | ||
| - | Detect __negative__ signal edge, if the state change | + | Detect |
| <color white/ | <color white/ | ||
| Line 55: | Line 57: | ||
| |<color blue>Q </ | |<color blue>Q </ | ||
| - | [[simatic:scl_commands|>> Back to LamaPLC main menu (SCL commands)]] | + | [[automation:s7_scl_commands|>> Back to LamaPLC main menu (SCL commands)]] |
| \\ | \\ | ||
| + | {{page> | ||
| + | |||
| {{tag> | {{tag> | ||
| \\ | \\ | ||
| \\ | \\ | ||
| This page has been accessed for: Today: {{counter|today}}, | This page has been accessed for: Today: {{counter|today}}, | ||