Safety light curtain simulation
Couldn't load pickup availability
Description
You're looking for an SCL function block (FB_LightCurtainSafety) that only runs a motor when safely enabled, monitors a light curtain for interruptions, and resets error states via manual acknowledgment. Ideal for reliable safety functions in machine control systems.
Note: All modules are designed exclusively as a learning and optimization basis and are not approved for live operation. System modules, in particular, must be finally tested and commissioned by qualified personnel before productive use.
How it works
- Step 1: Emergency stop activated or operation release missing → Engine off, warning light and error on, acknowledgement active, RETURN
- Step 2: Monitor light curtain → Interruption → Engine off, warning light on, note error
- Step 3: Edge detection acknowledgment input → only rising edge
- Step 4: Acknowledgement edge detected & light curtain clear → Reset error, deactivate acknowledgment
- Step 5: External error output = internal #error_noted
- Step 6: Start signal active & no error → engine on; otherwise off
- Step 7: #Acknowledgement_old = current acknowledgment state
Technical details
• Inputs: #EmergencyStop, #EnableOperation, #LightCurtain_Interrupted, #Acknowledgement, #StartSignal
• Outputs: #Engine_ON, #Warning_Light, #Error, #Acknowledge_Active
• Internal variables: #Error_noted, #Acknowledgement_edge, #Acknowledgement_old
• Edge detection via comparison #Acknowledgement vs. #Acknowledgement_old
• IEC timer not required
• RETURN in case of security breach stops all actions immediately
Possible applications
• Machine and plant controls with light curtain safety
• Retrofit of safety light curtains
• PLC training on safety functions
• Demonstrations at trade fairs or in laboratory environments
compatibility
• Siemens S7-1200 & S7-1500
• TIA Portal V13 and higher; recommended V16+ for HMI integration and PLCSIM
Scope of delivery
• .scl file with input/output declarations, internal variables, edge detection and comments (version 1.0, as of June 19, 2025, author, website)
Support
I'm happy to adapt the module to other signal assignments, integrate diagnostic or logging functions, and provide support for HMI integration or remote monitoring. Contact me via shop message or email.