Garage Door — PLC Control Template
Shared by TSIMEREZIVO Team · 4 Oct 2026 · 37 views
# Garage Door — Usage Guide
## Overview
Garage door template with open/close control, end-limit handling, and obstruction reverse during closing.
## Commissioning
1. Verify travel limit switches and direction outputs
2. Test obstruction reversal before normal operation
3. Confirm no simultaneous open and close commands are possible in final implementation
---
## Control Logic — Vendor-Agnostic Pseudocode
# Garage Door — Logic
## Standards: IEC 61131-3
## Scan Rate: 20ms | Pattern: open-stop-close with obstruction reverse
```
ROUTINE: GarageDoor
SCAN_RATE: 20ms
IF OPEN_CMD THEN MOTOR_OPEN := TRUE; MOTOR_CLOSE := FALSE END_IF
IF CLOSE_CMD THEN MOTOR_CLOSE := TRUE; MOTOR_OPEN := FALSE END_IF
IF LIMIT_OPEN THEN MOTOR_OPEN := FALSE END_IF
IF LIMIT_CLOSED THEN MOTOR_CLOSE := FALSE END_IF
IF OBSTRUCTION THEN MOTOR_CLOSE := FALSE; MOTOR_OPEN := TRUE; SET_ALARM(ALM_OBSTRUCTION, HIGH) END_IF
HMI_OPEN := LIMIT_OPEN
HMI_CLOSED := LIMIT_CLOSED
END_ROUTINE
```
---
## Tag List
```csv
Tag Name,Description,Data Type,Direction,Engineering Unit,Range Min,Range Max,Default Value,Address
OPEN_CMD,Open Command,BOOL,input,,,,FALSE,
CLOSE_CMD,Close Command,BOOL,input,,,,FALSE,
LIMIT_OPEN,Door Open Limit,BOOL,input,,,,FALSE,DI:0:0.0
LIMIT_CLOSED,Door Closed Limit,BOOL,input,,,,TRUE,DI:0:0.1
OBSTRUCTION,Obstruction Detected,BOOL,input,,,,FALSE,DI:0:0.2
MOTOR_OPEN,Door Open Motor Command,BOOL,output,,,,FALSE,DO:1:0.0
MOTOR_CLOSE,Door Close Motor Command,BOOL,output,,,,FALSE,DO:1:0.1
ALM_OBSTRUCTION,Door Obstruction Alarm,BOOL,calculated,,,,FALSE,
HMI_OPEN,HMI: Door Open,BOOL,output,,,,FALSE,
HMI_CLOSED,HMI: Door Closed,BOOL,output,,,,FALSE,
```
---
## Alarm Matrix
```csv
Alarm Tag,Condition,Setpoint,Priority,Type,Response,Delay,Auto Acknowledge
ALM_OBSTRUCTION,OBSTRUCTION = TRUE,N/A,high,safety,Door obstruction detected. Closing reversed to avoid contact damage or injury.,0s,No
```