🚗 Car Factory PLC Simulator

A worked example of a 4-station automotive assembly line driven by a Sequential Function Chart (SFC) program. Watch the live PLC outputs animate the floor.
Part of PLC-FastTrack · Sprint 4 / 6 companion
IDLE Mode: AUTO Step: S0_IDLE Cycle time: Avg cycle: Cars produced: 0 QC passed: 0 QC failed: 0 Throughput: Scan #: 0

Factory Floor (live PLC outputs)

CONVEYOR — Y_Belt WELD ROBOT Y_Weld PE_Weld PAINT BOOTH Y_Paint PE_Paint ENGINE INSTALL Y_Engine PE_Engine QUALITY CHECK Y_QC_Pass / Y_QC_Fail PE_QC OUTPUT Y_Alarm
Sensor low Sensor high Weld active Paint active Engine install active Fault / E-stop

Equivalent Structured Text (auto-highlighted to match the running step)


  
How this maps to the SFC

The simulator runs a 100 ms scan loop. Each scan: (1) reads inputs (Start, Stop, E-stop, photoelectric eyes); (2) executes the SFC transitions; (3) writes outputs (conveyor motor, station tools, alarm). The chassis you see on the floor are driven by output bits, never by direct animation — when Y_Belt is high, the chassis advance. When Y_Weld is high, the weld lamp pulses. Toggle E-stop and you'll see the program enter S_FAULT, latch Y_Alarm, and drop every other output — the same fail-safe pattern Bolton describes in Ch. 13–14.