Very often, we need to open a circuit for a amount of time, then automatically close it. This is easy to do on PLC. What you need is a timer. You open a circuit, set a timer for it, then break the circuit after the timer ends. This sample is written for two scenarios. One is to you use a physical momentary switch to control the circuit, then it’s showed to use a software on/off button on HMI screen.