My first PLC project built using OpenPLC Editor and Ladder Logic (LD)
This project demonstrates a basic industrial motor control system using Ladder Logic. The goal was to create a Start/Stop motor circuit with a latching (seal-in) function so the motor remains ON after pressing the Start button and turns OFF safely using the Stop button.
A motor should not require the operator to continuously hold the Start button. In real industrial systems, once started, the motor should stay running until a Stop signal is triggered.
The seal-in contact creates a holding circuit. After pressing Start, the motor output energizes and its own contact keeps the circuit active even after the Start button is released.
VAR_INPUT
Start_Button : BOOL := FALSE;
Stop_Button : BOOL := TRUE;
END_VAR
VAR_OUTPUT
Motor_Output : BOOL := FALSE;
END_VAR
I used the OpenPLC simulator and debugger to manually force variable states between TRUE and FALSE to verify the behavior.
Start_Button turns the motor ONStop_Button breaks the circuit and stops the motorThe OpenPLC interface was initially confusing, especially when creating variables and assigning input/output classes individually. I also had to understand how the debugger works and how to manually test boolean states.
This project helped me better understand visual PLC programming compared to traditional software engineering because the logic flow is visible immediately.