Field fix / guidePLC / HMI Code & LogicVendor-agnostic (IEC 61131-3)Access Trafficindustrial-automation

3 Floor Parking — PLC Control Template

Shared by TSIMEREZIVO Team · 4 Oct 2026 · 35 views

# 3 Floor Parking — Usage Guide ## Overview Three-floor parking guidance template that drives individual floor availability signs. ## Commissioning 1. Verify each floor occupancy source 2. Confirm sign outputs change correctly with occupancy thresholds 3. Validate full condition blocks further vehicle admission --- ## Control Logic — Vendor-Agnostic Pseudocode # 3 Floor Parking — Logic ## Standards: IEC 61131-3 ## Scan Rate: 100ms | Pattern: three-floor occupancy guidance ``` ROUTINE: ThreeFloorParking SCAN_RATE: 100ms F1_FREE := F1_CAPACITY - F1_OCCUPIED F2_FREE := F2_CAPACITY - F2_OCCUPIED F3_FREE := F3_CAPACITY - F3_OCCUPIED IF F1_FREE > 0 THEN SIGN_F1 := TRUE ELSE SIGN_F1 := FALSE END_IF IF F2_FREE > 0 THEN SIGN_F2 := TRUE ELSE SIGN_F2 := FALSE END_IF IF F3_FREE > 0 THEN SIGN_F3 := TRUE ELSE SIGN_F3 := FALSE END_IF FULL := (F1_FREE <= 0) AND (F2_FREE <= 0) AND (F3_FREE <= 0) IF FULL THEN SET_ALARM(ALM_FULL, HIGH) END_IF HMI_F1_FREE := F1_FREE HMI_F2_FREE := F2_FREE HMI_F3_FREE := F3_FREE END_ROUTINE ``` --- ## Tag List ```csv Tag Name,Description,Data Type,Direction,Engineering Unit,Range Min,Range Max,Default Value,Address F1_OCCUPIED,Floor 1 Occupied,INT,input,,0,10000,0, F2_OCCUPIED,Floor 2 Occupied,INT,input,,0,10000,0, F3_OCCUPIED,Floor 3 Occupied,INT,input,,0,10000,0, F1_CAPACITY,Floor 1 Capacity,INT,internal,,0,10000,50, F2_CAPACITY,Floor 2 Capacity,INT,internal,,0,10000,50, F3_CAPACITY,Floor 3 Capacity,INT,internal,,0,10000,50, F1_FREE,Floor 1 Free Spaces,INT,calculated,,0,10000,0, F2_FREE,Floor 2 Free Spaces,INT,calculated,,0,10000,0, F3_FREE,Floor 3 Free Spaces,INT,calculated,,0,10000,0, SIGN_F1,Floor 1 Available Sign,BOOL,output,,,,FALSE,DO:1:0.0 SIGN_F2,Floor 2 Available Sign,BOOL,output,,,,FALSE,DO:1:0.1 SIGN_F3,Floor 3 Available Sign,BOOL,output,,,,FALSE,DO:1:0.2 FULL,All Floors Full,BOOL,calculated,,,,FALSE, ALM_FULL,Parking Full Alarm,BOOL,calculated,,,,FALSE, HMI_F1_FREE,HMI: Floor 1 Free Spaces,INT,output,,0,10000,0, HMI_F2_FREE,HMI: Floor 2 Free Spaces,INT,output,,0,10000,0, HMI_F3_FREE,HMI: Floor 3 Free Spaces,INT,output,,0,10000,0, ``` --- ## Alarm Matrix ```csv Alarm Tag,Condition,Setpoint,Priority,Type,Response,Delay,Auto Acknowledge ALM_FULL,FULL = TRUE,0 spaces,high,process,All floors full. Entry guidance should stop admitting vehicles.,0s,No ```

More like this

Rate, comment, and get full access

Members can download files, rate contributions, and discuss fixes with the engineers who posted them — free.

Join the library