Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to realize bit inversion in Siemens SCL, such as pressing a button to start, and then pressing reset to start.
How to realize bit inversion in Siemens SCL, such as pressing a button to start, and then pressing reset to start.
Taking S7-300 as an example, it can be realized by RS trigger.

The signal of the button takes the falling edge, that is, the command (n), the off state of the lamp is connected in series as a group, the on state of the lamp is connected in series as a reset, and the RS trigger is output to the lamp.

It should be noted that two (n) instructions cannot use the same intermediate variable.