You will find many PLC programs work when they work and are terrible to troubleshoot when they don't.