A safety function is executed by the safety-related parts of the machine control system to achieve or maintain the equipment under control in a safe state with respect to a specific hazard.