// OT/ICS LAB

OT/ICS Lab

A physical lab built to understand how industrial systems are wired, programmed, and monitored. Both benches were assembled and commissioned by hand, covering the path from mains power and field wiring through PLC logic to a live operator display. The hardware and protocols are the same ones found in production environments.

// ARCHITECTURE

LEVEL 2SupervisoryLEVEL 1ControlLEVEL 0ProcessOperator DisplayLCD1602 · Python / PyModbusModbus/TCPAutomationDirect CLICK PLUSC2-01CPU-2OpenPLCRaspberry Pi 5 · IEC 61131-3 STField I/O · 24 VDC / GPIOField DevicesSTART / STOP pushbuttons · status LEDs

// 01 — CONTROL PANEL BUILD

CLICK PLUS enclosure

Cut and mounted DIN rail inside a steel control enclosure, installed a MEAN WELL NDR-120-24 industrial power supply and IEC mains inlet, and completed AC and 24 VDC wiring with ferrules and proper grounding. Verified clean power-up, connected to the controller over Ethernet, and confirmed communication and device identification through CLICK programming software.

CLICK PLUS PLC and MEAN WELL power supply mounted on DIN rail inside a steel control enclosure

CLICK PLUS C2-01CPU-2 and NDR-120-24 supply on DIN rail, powered and online.

// 02 — PUMP STATION

OpenPLC control loop over Modbus/TCP

Mapped physical START and STOP pushbuttons to OpenPLC digital inputs (%IX0.3 / %IX0.4) and a green RUN indicator to %QX0.3, then implemented a latched start/stop routine in IEC 61131-3 Structured Text so the simulated pump stays running after START until STOP is pressed. OpenPLC exposes pump state as Modbus Coil 3, read with Python and PyModbus to drive an LCD1602 operator display. The result is the complete OT signal path: field I/O → PLC logic → Modbus/TCP → HMI.

Breadboard pump station with LCD display reading PUMP STOPPED

Idle state — coil de-energized, RUN indicator off.

Breadboard pump station with LCD display reading PUMP RUNNING and green indicator lit

After START — latch held, RUN indicator lit, HMI updated.

// WHAT IT'S USED FOR

PLC Programming

IEC 61131-3 Structured Text

Modbus/TCP

Coil and register polling

Process Simulation

Latched pump control logic

Panel Build

DIN rail, 24 VDC, grounding

← shanescarbrough.io

<SLS/> · shanescarbrough.io