https://www.forbesmarshall.com/instrupedia/how-does-a-programmable-logic-controller-plc-work/