PLC Sim Lab
Ladder logic how-tos

SET and RESET coils in a PLC (latch and unlatch)

A normal coil is on only while its rung is true. A SET coil turns a bit on and leaves it on; a RESET coil turns it off. Together they let a program remember something, such as "an alarm happened" or "we are in step 3".

2 min read · Updated 2026-10-02

How they work

|--[ START ]-----------------( S  MOTOR )--|
|--[ STOP_PRESSED ]----------( R  MOTOR )--|

When START is true for even one scan, the SET coil makes MOTOR 1, and it stays 1 after START goes false. Only a true RESET rung makes it 0 again. Unlike a normal coil, a SET or RESET coil does nothing while its rung is false.

Names in each brand

BrandSetReset
SiemensS (Set coil)R (Reset coil)
Allen-BradleyOTL (output latch)OTU (output unlatch)
MitsubishiSETRST
TOYOPUCSETRST

When both are true: the last one wins

The PLC executes rungs from top to bottom. If the SET rung and the RESET rung are both true in the same scan, the bit takes the value of whichever rung comes last. Put the RESET rung after the SET rung when stopping must win (reset dominant), which is what you want for anything that stops a machine.

SET / RESET vs seal-in

Seal-in rungSET / RESET
Where the logic isone rung: easy to readspread over two or more rungs
STOP held downoutput can never be ondepends on rung order
Best formotors and anything with a STOPalarms, sequence steps, modes, remembering events

Typical uses

Retentive bits

A SET bit in normal memory is cleared when the PLC powers up. If a state must survive a power cut (a counter total, a recipe step), use retentive memory (Siemens M100+ in PLC Sim Lab, Mitsubishi L, Allen-Bradley B9, TOYOPUC K) and decide carefully what the machine should do on restart.

Watch it on the PLC Sim Lab channel

A 30-second comparison with a live ladder simulation. Open on YouTube → · More videos →

Try it yourself. Wire sensors, contactors and a PLC, write ladder logic and press RUN in the free PLC Sim Lab Playground. Nothing to install.

Open the Playground →Guided lessons →

Frequently asked questions

What is the difference between SET and a normal coil?

A normal coil follows its rung every scan. A SET coil turns the bit on when its rung is true and leaves it on until a RESET coil turns it off.

What are OTL and OTU in Allen-Bradley?

Output Latch and Output Unlatch: the Allen-Bradley names for SET and RESET coils.

What happens if SET and RESET are both true?

The rung executed last in the scan decides. Place the RESET rung below the SET rung when the reset must win.