PLC state machine from Nov 6