PLC / HMI Code & Logic
Community-shared plc / hmi code & logic from working engineers — 52 items. Read free, sign up to download.
Auto Water Refill — PLC Control Template
Simple on/off solenoid valve refill control. Starts filling when level drops to `SP_START`, stops when it reaches `SP_STOP`. Includes timeout guard, supply fault detection, and HH safety override.
TSIMEREZIVO Team · 98 views · 0 downloads
Water Level Pump Control — PLC Control Template
Hysteresis-band level control with 4-tier ISA-18.2 alarm hierarchy, 3-point median filtering, wire-break detection, leak-rate monitoring, and manual/auto mode. Suitable for raw water tanks, buffer tanks, sump wells, condensate tanks, and process feed tanks.
TSIMEREZIVO Team · 95 views · 0 downloads
Object Detect Door — PLC Control Template
Automatic door template with obstruction detection. A detected object prevents or reverses closing motion.
TSIMEREZIVO Team · 51 views · 0 downloads
Smart Street Lighting — PLC Control Template
Adaptive street lighting template using ambient lux and occupancy boost dimming.
TSIMEREZIVO Team · 51 views · 0 downloads
Cargo Elevator — PLC Control Template
Basic cargo elevator motion template with overload protection and door-closed interlock.
TSIMEREZIVO Team · 50 views · 0 downloads
Latching Interlock Pump — PLC Control Template
This template implements production-grade pump motor control with full IEC 61131-3 seal-in latch, 7-condition permissive interlock gate, manual/auto/off mode, hard-reset fault latch, star-delta soft-start sequencing, runtime accumulation, and ISA-18.2 alarm hierarchy.
TSIMEREZIVO Team · 49 views · 0 downloads
Auto Car Washing — PLC Control Template
Timed car wash sequence with soap, rinse, and dry stages.
TSIMEREZIVO Team · 46 views · 0 downloads
Bottle Weight Verify — PLC Control Template
Bottle fill verification template using a pass/fail weight window and reject gate. Includes a basic SPC-style failure-rate alarm to highlight filler drift.
TSIMEREZIVO Team · 46 views · 0 downloads
Multi Level Parking — PLC Control Template
Parking structure guidance template that computes available spaces per level and recommends the next level with availability.
TSIMEREZIVO Team · 46 views · 0 downloads
Weight Classification — PLC Control Template
Simple three-band weight classification template using compare instructions and discrete route outputs.
TSIMEREZIVO Team · 45 views · 0 downloads
4 Conveyor Interlock — PLC Control Template
Downstream-first conveyor start sequence for four linked conveyors. Each upstream conveyor requires the downstream conveyor to be healthy and running before it can start. Any downstream fault propagates upstream shutdown.
TSIMEREZIVO Team · 45 views · 0 downloads
Three Element Drum Level — PLC Control Template
This template implements the industry-standard three-element drum level control strategy for steam boiler applications. It is the most widely used drum level control method in power generation, typically employed for boilers operating above 30% of Maximum Continuous Rating (MCR).
TSIMEREZIVO Team · 45 views · 0 downloads
Three Input Permissive Pump — PLC Control Template
Implements the industry-standard AND-gate permissive pattern with 3 configurable process permissives plus hardwired E-Stop and overload, a 5-bit diagnostic word for HMI display, and individual alarm messages per unsatisfied condition.
TSIMEREZIVO Team · 44 views · 0 downloads
Bottle Filling Conveyor — PLC Control Template
Simple fill-station conveyor template that stops for bottle presence, executes fill, then restarts on fill completion.
TSIMEREZIVO Team · 43 views · 0 downloads
Alternating Lamp — PLC Control Template
Two-lamp alternating flash pattern for beacons, warnings, or demonstration panels.
TSIMEREZIVO Team · 43 views · 0 downloads
Lamps Compare — PLC Control Template
Three-state lamp indication based on a process value crossing low and high thresholds.
TSIMEREZIVO Team · 42 views · 0 downloads
Sequential Lamps — PLC Control Template
Running-light pattern across four lamps with a fixed step period.
TSIMEREZIVO Team · 41 views · 0 downloads
Tank To Tank Transfer — PLC Control Template
Metered transfer between two tanks with permissive gate, volume accumulation, source/destination level cutoffs, and timeout protection. Suitable for: raw material transfers, product blending feeds, CIP chemical dosing tanks, water treatment inter-stage transfers.
TSIMEREZIVO Team · 41 views · 0 downloads
Oven Conveyor Temp Control — PLC Control Template
Multi-zone oven template with temperature control per heating zone and conveyor dwell-time supervision. Designed for curing, drying, baking, and heat-treatment lines where both temperature and residence time must be controlled.
TSIMEREZIVO Team · 40 views · 0 downloads
Continuous Tank Control — PLC Control Template
PID level control using a modulating inlet flow valve (FV001). Maintains tank level at setpoint with no dead-band drift. Anti-windup, derivative-on-PV, and bumpless auto/manual transfer.
TSIMEREZIVO Team · 40 views · 0 downloads
Elevator Up Down Floors — PLC Control Template
Simple multi-floor elevator template with floor calls, target selection, and door-closed travel interlock.
TSIMEREZIVO Team · 39 views · 0 downloads
Vehicle Entry Exit Tracking — PLC Control Template
Dual-loop occupancy tracking template for lots, compounds, or secure yards. Entry is inhibited when configured capacity is reached.
TSIMEREZIVO Team · 39 views · 0 downloads
Traffic Signal Push Button — PLC Control Template
Fixed-time crossing signal with default vehicle green and latched pedestrian call. A pedestrian request is served only after the minimum vehicle green has elapsed.
TSIMEREZIVO Team · 38 views · 0 downloads
Press Machine Two Hand — PLC Control Template
SIL2-oriented press control template with anti-tie-down, simultaneity window, light-curtain trip, guard interlock, and STO output.
TSIMEREZIVO Team · 38 views · 0 downloads
Priority Liquid Level — PLC Control Template
3-stage cascaded priority pump control with redundant transmitter selection, runtime-equalised pump assignment, hysteresis-confirmed staging, and ISA-18.2 alarm hierarchy. Designed for high-demand applications: municipal water supply, fire water storage, cooling tower sumps, irri
TSIMEREZIVO Team · 38 views · 0 downloads
Turbine Speed Control — PLC Control Template
This template implements a production-grade steam turbine governor with SPEED, LOAD, and DROOP modes, 2oo3 electronic overspeed protection, mechanical backup overspeed logic, valve deviation supervision, and controlled shutdown handling for non-instantaneous trips.
TSIMEREZIVO Team · 38 views · 0 downloads
Weight Sort 3 Bin — PLC Control Template
Three-bin sort template for weight-based classification. Each item is weighed and routed to one of three bins using pneumatic diverters.
TSIMEREZIVO Team · 38 views · 0 downloads
Level Alarm And Control — PLC Control Template
Four-tier tank alarm scheme with confirmation delays and hysteresis, combined with simple fill and drain pump control. This template is suited to Siemens STEP 7 / TIA style applications where discrete alarms and on/off control are preferred over PID.
TSIMEREZIVO Team · 38 views · 0 downloads
Liquid Filling Machine — PLC Control Template
Count-by-volume filling line control. A bottle present sensor stops the conveyor, a fill valve opens until the target volume is reached (via pulse counting), then volume is validated against tolerance and the bottle is either accepted or rejected via a divert gate.
TSIMEREZIVO Team · 38 views · 0 downloads
Escalator Load Control — PLC Control Template
Safety-oriented escalator supervision template that trips on overload, motor overcurrent, or E-stop and applies the brake until a manual reset is performed.
TSIMEREZIVO Team · 37 views · 0 downloads
Garage Door — PLC Control Template
Garage door template with open/close control, end-limit handling, and obstruction reverse during closing.
TSIMEREZIVO Team · 37 views · 0 downloads
Product Delivery System — PLC Control Template
Queue-based product delivery template for pick, buffer, convey, and dispatch applications. Tracks queued items and drives a conveyor plus pusher actuator when dispatch demand is present.
TSIMEREZIVO Team · 37 views · 0 downloads
Fill Drain Logic — PLC Control Template
Multi-mode tank control (OFF / MANUAL / AUTO-FILL / AUTO-DRAIN / BATCH SEQUENCE) with dual-valve discrepancy monitoring, ISA-88 sequence state machine, fill/drain timeout, and ISA-18.2 alarm hierarchy. Suitable for: process feed tanks, CIP tanks, chemical preparation vessels, buf
TSIMEREZIVO Team · 37 views · 0 downloads
Multi Product Oven Recipe — PLC Control Template
Recipe-driven oven template that switches zone temperature setpoints and belt speed for different products. Recipe changes are only applied when the oven is not running to prevent in-process disturbance.
TSIMEREZIVO Team · 36 views · 0 downloads
Aquaculture System — PLC Control Template
Aquaculture support template that supervises dissolved oxygen, temperature, pH, and feed dosing. It is intended for tank-based fish production or hatchery support systems.
TSIMEREZIVO Team · 36 views · 0 downloads
Fruit Sort Weight Color — PLC Control Template
Dual-criteria fruit sorting using weight and vision color grade to assign premium, standard, or reject routing.
TSIMEREZIVO Team · 36 views · 0 downloads
4 Material Time Weight — PLC Control Template
Four-material batch template that can operate in either timed dosing mode or weight-based dosing mode. Useful where one machine must support both coarse legacy operation and more accurate gravimetric recipes.
TSIMEREZIVO Team · 36 views · 0 downloads
Waste Sorting System — PLC Control Template
Sensor-array waste sorting template for metal, plastic, glass, and general waste streams.
TSIMEREZIVO Team · 36 views · 0 downloads
Multi Output Permissive Gate — PLC Control Template
Shared permissive template that fans a common safety and readiness gate to multiple downstream outputs. Useful where several actuators must only operate when the same safety conditions are true.
TSIMEREZIVO Team · 36 views · 0 downloads
Dam Gate 5 Alarm Levels — PLC Control Template
Flood-management template with five escalating alarm levels and corresponding gate position commands. Designed for reservoir outlet gates, spillway control, and storm-water retention systems where simple, deterministic staged response is preferred.
TSIMEREZIVO Team · 36 views · 0 downloads
Duty Standby Alternation — PLC Control Template
Implements API 610 / ISO 13709 duty/standby pump logic with runtime-equalised automatic alternation, soft-handover (overlap start), and auto-failover within 2 seconds of duty pump loss.
TSIMEREZIVO Team · 35 views · 0 downloads
Sort Heat Cool Sequence — PLC Control Template
Process-cell template that sorts good parts into a heat and cool sequence while rejects bypass the downstream process.
TSIMEREZIVO Team · 35 views · 0 downloads
2 Conveyor Packaging — PLC Control Template
Two-conveyor packaging cell with product counting, reject divert gate, and accumulation handling. The infeed conveyor pauses when the downstream path is blocked, while the outfeed continues when permitted.
TSIMEREZIVO Team · 35 views · 0 downloads
Gravimetric Dosing — PLC Control Template
Loss-in-weight feeder control template that trims feeder speed to meet a mass-flow setpoint while pausing during refill events.
TSIMEREZIVO Team · 35 views · 0 downloads
Bottle Quality Inspection — PLC Control Template
Vision inspection template for bottled product quality including cap, label, and fill-height checks with reject handling.
TSIMEREZIVO Team · 35 views · 0 downloads
Paint Mixing 3 Component — PLC Control Template
Three-component paint batching using loadcell-based gravimetric dosing and an agitator mix phase. Component ratios must total 100% before the sequence can start.
TSIMEREZIVO Team · 35 views · 0 downloads
3 Floor Parking — PLC Control Template
Three-floor parking guidance template that drives individual floor availability signs.
TSIMEREZIVO Team · 35 views · 0 downloads
Vehicle Washing — PLC Control Template
Simple vehicle-triggered wash spray control for wheel washes or spray arches.
TSIMEREZIVO Team · 35 views · 0 downloads
Liquid Temperature PID — PLC Control Template
PID temperature control with multi-sensor averaging, split-range heat/cool valve output, anti-windup, derivative-on-PV (no setpoint kick), overtemperature safety trip (SIL1), and ISA-18.2 alarm hierarchy.
TSIMEREZIVO Team · 34 views · 0 downloads
Paper Cutter Encoder — PLC Control Template
Length-based paper cutting using encoder pulses to trigger the knife at precise intervals. Suitable for web handling, sheet cutting, and continuous product segmentation.
TSIMEREZIVO Team · 32 views · 0 downloads
3 Material 4 Tank Batch — PLC Control Template
Batch recipe template that pulls three materials from four available source tanks into a single batch vessel, then runs a timed mix phase.
TSIMEREZIVO Team · 32 views · 0 downloads
Gas Monitoring Alarm — PLC Control Template
Combustible gas monitoring template with warning, ventilation, and evacuation thresholds expressed as %LEL. Includes latched evacuation output with manual reset below a safe threshold.
TSIMEREZIVO Team · 28 views · 0 downloads