32.4.3.2 Explanation of SET/RST Instructions
-
The SET instruction keeps the ON state regardless
of the input state.
-
The RST instruction keeps the ON state regardless
of the input state.
-
Use the SET and RST instructions to turn ON or
OFF external outputs or internal coils.
-
Only one OUT instruction can be used in one rung.
If a branch instruction is used, multiple OUT instructions can be
used.
Program Example
Point A The bit variable (Start) turns ON,
the SET instruction executes, and then, bit variable (Motor) turns
ON.
Bit variable (Start) turns OFF, but bit
variable (Motor) retains the ON state.
The bit variable (Stop) turns ON, the RET
instruction executes, and then, bit variable (Motor) turns ON.
When the RST instruction turns the bit variable (Motor) ON, the
state is cleared and the bit variable (Motor) changes from ON to
OFF.
The bit variable (Motor) remains in the OFF
state until the bit variable (Start) turns ON.
|