https://instrumentationtools.com/plc-latching-function/
PLC Latching Function | PLC Ladder Logic Instructions