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
Point A The bit variable (Start) turns ON, the SET instruction executes, and then, bit variable (Motor) turns ON.
Point B
Bit variable (Start) turns OFF, but bit variable (Motor) retains the ON state.
Point C
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.
Point D
The bit variable (Motor) remains in the OFF state until the bit variable (Start) turns ON.