PLC conduction delay timer instruction (TON)

When the limit switch 1 is set, the indicator 2 ON 180ms (timer clocked). When the accumulated value of the timer 1 (.ACC) reaches 180, 2 lights off, the indicator 3 is turned on, and remains on until the TON instruction is disabled. If you disconnect the timer is timing the limit switch 1, then turn off light 2.

Ladder Diagram