Plc as standalone for safety control of machine