This is an old revision of the document!
Table of Contents
MPINO STUDIO 2 Phase 4-3 · Bit and Latch Box Functions
SET and RST store or clear a bit after the triggering condition has gone away.
This ladder screen uses separate conditions to run SET and RST.
1. SET and RST
SET stores ON in the target bit, and RST stores OFF. The stored state remains after the condition returns to OFF.
SET
Set Coil (Latch)
When the left condition is ON, stores ON in an M bit or a P bit configured as an output and holds it after the condition turns OFF.
Syntax: SET M0
Arguments
- 1st = target: M bit or P bit configured as an output
RST
Reset Coil (Unlatch)
When the left condition is ON, stores OFF in an M bit or a P bit configured as an output. Use a ladder RESET coil, rather than box-function RST, to initialize a timer or counter.
Syntax: RST M0
Arguments
- 1st = target: M bit or P bit configured as an output
2. SET and RST Behavior Example
| Run condition | Before | Command entered | Expected result |
|---|---|---|---|
| Left condition ON | M0=OFF | SET M0 | M0=ON |
| Left condition ON | M0=ON | RST M0 | M0=OFF |
3. Compare with SET and RESET Coils
For M bits and P bits configured as outputs, box-function SET and RST store the same values as the SET and RESET coils in Phase 3. Use a ladder RESET coil to initialize a timer or counter.
4. Troubleshooting
| Symptom | What to check |
|---|---|
| The value stays ON after SET. | Check the RST condition that clears the same address. |

