Sequential Lamps — PLC Control Template
Shared by TSIMEREZIVO Team · 4 Oct 2026 · 41 views
# Sequential Lamps — Usage Guide
## Overview
Running-light pattern across four lamps with a fixed step period.
## Commissioning
1. Verify the lamp order matches the intended physical layout
2. Adjust the step period for the desired visual speed
---
## Control Logic — Vendor-Agnostic Pseudocode
# Sequential Lamps — Logic
## Standards: IEC 61131-3
## Scan Rate: 100ms | Pattern: running-light sequence
```
ROUTINE: SequentialLamps
SCAN_RATE: 100ms
IF ENABLE THEN
STEP_TMR := STEP_TMR + 1
IF STEP_TMR >= STEP_PERIOD_TICKS THEN
STEP_TMR := 0
STEP := STEP + 1
IF STEP > 4 THEN STEP := 1 END_IF
END_IF
END_IF
L1 := (STEP = 1) AND ENABLE
L2 := (STEP = 2) AND ENABLE
L3 := (STEP = 3) AND ENABLE
L4 := (STEP = 4) AND ENABLE
HMI_STEP := STEP
END_ROUTINE
```
---
## Tag List
```csv
Tag Name,Description,Data Type,Direction,Engineering Unit,Range Min,Range Max,Default Value,Address
ENABLE,Sequential Lamp Enable,BOOL,input,,,,FALSE,
STEP_TMR,Step Timer,INT,internal,,0,100000,0,
STEP_PERIOD_TICKS,Step Period,INT,internal,,0,100000,10,
STEP,Current Lamp Step,INT,internal,,1,4,1,
L1,Lamp 1 Output,BOOL,output,,,,FALSE,DO:1:0.0
L2,Lamp 2 Output,BOOL,output,,,,FALSE,DO:1:0.1
L3,Lamp 3 Output,BOOL,output,,,,FALSE,DO:1:0.2
L4,Lamp 4 Output,BOOL,output,,,,FALSE,DO:1:0.3
HMI_STEP,HMI: Active Step,INT,output,,1,4,1,
```
---
## Alarm Matrix
```csv
Alarm Tag,Condition,Setpoint,Priority,Type,Response,Delay,Auto Acknowledge
ALM_NONE,No active alarms defined for sequential lamp pattern,N/A,low,diagnostic,Add lamp-feedback alarms if the installation requires them.,0s,Yes
```