PLC Leader Diagram generator on/off system