https://instrumentationtools.com/plc-program-to-simulate-gate-array-logic/
PLC Program to Simulate Gate Array Logic - InstrumentationTools