Safety switch
Couldn't load pickup availability
Description
The FB_SafetySwitch function block implements a standards-based safety shutdown according to EN ISO 13849. It checks the status of a safety door ( #SafetyDoor
) and enables operation only when the door is closed via a normally closed contact ( #NO_13_14
). When the door is open, the normally open contact ( #NC_21_22
) is set, signaling safe shutdown. Virtual inputs ( #Input_13
, #Input_21
) serve as enable signals for contact formation.
Note: This logic is provided as a template. Before productive use, it must be integrated into the target environment, validated, and released by qualified personnel. Incorrect integration may compromise security features.
How it works
Disabled
If #Enable
is not set, all outputs are set to a safe state (both contacts inactive). No error is reported; the status shows "disabled."
Security logic
The logic reacts to the door status:
- If the door is closed (
#SafetyDoor = TRUE
), operation is enabled via the normally closed contact (#NO_13_14
) when#Input_13
is set. The normally open contact (#NC_21_22
) remains inactive. - If the door is open, the safety shutdown is activated: The normally closed contact remains reset, the normally closed contact (
#NC_21_22
) is set when#Input_21
is set, and the error and a corresponding status code are output.
Technical details
-
Inputs:
#Enable
,#SafetyDoor
,#Input_13
,#Input_21
-
Outputs:
#NO_13_14
(NC contact: release when door is closed),#NC_21_22
(NO contact: safety shutdown when door is open) -
Status & Diagnostics:
#Error
,#Status
(0=OK, 1=Door open, 2=Disabled),#DiagnosticCode
(e.g. 100 if the safety circuit is interrupted) - Logic: Door monitoring with standard-compliant shutdown and release mapping
- Modes: Active, deactivated, safety shutdown
Possible applications
- Securing machines with protective doors (e.g. maintenance hatches, housing openings)
- Integration into safety-related control systems according to EN ISO 13849
- Feedback of the safe operating state via opener/closer
- Testing and validation through virtual inputs before physical installation
Note: Safety-relevant validation and approval by qualified personnel is required before productive use.
compatibility
- Can be used in PLC environments with SCL (e.g. Siemens TIA Portal)
- Integration into safety-related control systems possible
- Safe basic state when deactivated
- Virtual contact release for commissioning and testing purposes
Scope of delivery
You will receive:
- SCL file with implemented function block FB_SafetySwitch
- Documented inputs and outputs as well as states
- Commented logic for adaptation
- Instructions for integration into existing security architectures
The download link will be provided after purchase.
Support
I support you with:
- Adaptation of security logic and door monitoring
- Integration into higher-level safety controls
- Validation and testing without real door contact
- Extensions for specific risk analyses
Contact is possible via shop message or email. Individual adjustments are available as optional customizations.