Field fix / guidePLC / HMI Code & LogicVendor-agnostic (IEC 61131-3)Access Trafficindustrial-automation
Cargo Elevator — PLC Control Template
Shared by TSIMEREZIVO Team · 4 Oct 2026 · 49 views
# Cargo Elevator — Usage Guide
## Overview
Basic cargo elevator motion template with overload protection and door-closed interlock.
## Commissioning
1. Verify top and bottom position switches
2. Confirm overload and door-open conditions inhibit motion
3. Test E-stop drop-out of both motor direction commands
---
## Control Logic — Vendor-Agnostic Pseudocode
# Cargo Elevator — Logic
## Standards: IEC 61131-3
## Scan Rate: 20ms | Pattern: platform move with door interlocks
```
ROUTINE: CargoElevator
SCAN_RATE: 20ms
MOVE_PERMIT := DOOR_CLOSED AND NOT ESTOP_ACTIVE AND NOT OVERLOAD
IF CALL_UP AND MOVE_PERMIT AND NOT AT_TOP THEN MOTOR_UP_CMD := TRUE END_IF
IF CALL_DOWN AND MOVE_PERMIT AND NOT AT_BOTTOM THEN MOTOR_DOWN_CMD := TRUE END_IF
IF AT_TOP THEN MOTOR_UP_CMD := FALSE END_IF
IF AT_BOTTOM THEN MOTOR_DOWN_CMD := FALSE END_IF
IF ESTOP_ACTIVE OR OVERLOAD OR NOT DOOR_CLOSED THEN
MOTOR_UP_CMD := FALSE
MOTOR_DOWN_CMD := FALSE
END_IF
IF OVERLOAD THEN SET_ALARM(ALM_OVERLOAD, HIGH) END_IF
IF ESTOP_ACTIVE THEN SET_ALARM(ALM_ESTOP, CRITICAL) END_IF
HMI_TOP := AT_TOP
HMI_BOTTOM := AT_BOTTOM
END_ROUTINE
```
---
## Tag List
```csv
Tag Name,Description,Data Type,Direction,Engineering Unit,Range Min,Range Max,Default Value,Address
CALL_UP,Call Up Request,BOOL,input,,,,FALSE,
CALL_DOWN,Call Down Request,BOOL,input,,,,FALSE,
ESTOP_ACTIVE,E-Stop Active,BOOL,input,,,,FALSE,DI:0:0.0
OVERLOAD,Elevator Overload Input,BOOL,input,,,,FALSE,DI:0:0.1
DOOR_CLOSED,Door Closed Interlock,BOOL,input,,,,TRUE,DI:0:0.2
AT_TOP,Top Position Switch,BOOL,input,,,,FALSE,DI:0:0.3
AT_BOTTOM,Bottom Position Switch,BOOL,input,,,,TRUE,DI:0:0.4
MOVE_PERMIT,Elevator Move Permit,BOOL,calculated,,,,FALSE,
MOTOR_UP_CMD,Motor Up Command,BOOL,output,,,,FALSE,DO:1:0.0
MOTOR_DOWN_CMD,Motor Down Command,BOOL,output,,,,FALSE,DO:1:0.1
ALM_OVERLOAD,Elevator Overload Alarm,BOOL,calculated,,,,FALSE,
ALM_ESTOP,E-Stop Alarm,BOOL,calculated,,,,FALSE,
HMI_TOP,HMI: At Top,BOOL,output,,,,FALSE,
HMI_BOTTOM,HMI: At Bottom,BOOL,output,,,,FALSE,
```
---
## Alarm Matrix
```csv
Alarm Tag,Condition,Setpoint,Priority,Type,Response,Delay,Auto Acknowledge
ALM_ESTOP,ESTOP_ACTIVE = TRUE,N/A,critical,safety,Emergency stop active. Elevator motion removed immediately.,0s,No
ALM_OVERLOAD,OVERLOAD = TRUE,N/A,high,safety,Platform overload detected. Remove excess load before movement.,0s,No
```