Roller shutter with light barrier logic
Couldn't load pickup availability
Description
You are looking for an SCL function block for controlling an electric roller shutter door with push-button operation, light barrier monitoring, emergency stop safety release, and automatic closing after a delay. Runnable in the Siemens TIA Portal for convenient and secure door control.
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
- Emergency stop active → stop both directions, warning signal off, alarm on, RETURN
- Step 0 (idle state): Open button → Open; Close button + free light barrier → Close
- Step 1 (Upward travel): until limit switch open → stop motor, start auto-close timer
- Step 2 (approach): until limit switch closes → stop motor
- Step 3 (Auto-Close): Timer expired + photocell free → close gate
- Light barrier blocked → Stop & reset timer
• Invalid step → fallback to sleep state
Technical details
• Inputs: #EmergencyStop, #ButtonOpen, #ButtonClose, #LightBarrier, #LimitSwitchOpen, #LimitSwitchClose
• Outputs: #MotorOpen, #MotorClose, #WarningSignal, #Alarm, #DisplayOpen, #DisplayClose
• IEC Timer #AutoCloseTimer (PT = definable delay)
• Sequence control via integer variable #Step in CASE structure
• RETURN in emergency stop skips all subsequent steps
Possible applications
• Roller shutter and garage door controls in halls and commercial premises
• Retrofit of subsequent gate automation
• Training and demonstration projects for PLC safety
compatibility
• Siemens S7-1200 & S7-1500
• TIA Portal V13 or higher; recommended V16+ for PLCSIM & HMI
Scope of delivery
• .scl file with declaration of all inputs/outputs, variables, timers and CASE structure
• Download link immediately after purchase
Support
I'm happy to support you with signal customizations, additional security features, HMI integration, or logging enhancements. Just get in touch via shop message or email.