Binary control with safety PLC