Skip to main content

Example - Ladder Diagram

STC


The STC instruction sets the carry flag, F11.2, to ON (1).

Ladder Diagram Example


When the contact, M0.0, is powered OFF, the STC instruction does NOT execute.



The carry flag, F11.2, is 0.


When the contact, M0.0, is powered ON, the STC instruction executes.

Memory Monitor


The carry flag, F11.2, is 1.