Your first project
In this tutorial you will program the classic motor start/stop with seal-in (self-holding) and thermal protection, and test it in the simulator. It takes about 10 minutes.
What we will build
Section titled “What we will build”| Signal | Type | Address | Purpose |
|---|---|---|---|
Marcha |
BOOL | %IX0.0 |
Start push button (normally open) |
Paro |
BOOL | %IX0.1 |
Stop push button (normally closed: TRUE at rest) |
Termico |
BOOL | %IX0.2 |
Thermal overload relay tripped |
Motor |
BOOL | %QX0.0 |
Motor contactor |
LuzMarcha |
BOOL | %QX0.1 |
Green lamp: motor running |
LuzFalla |
BOOL | %QX0.2 |
Red lamp: thermal fault |
The logic:
- Pressing Marcha (start) starts the motor, which stays on after the button is released.
- It stops when Paro (stop) is pressed or when the thermal relay trips.
- One lamp shows the motor running and another one the fault.
1. Create the project
Section titled “1. Create the project”-
On the home screen press New project.
-
Enter
MotorStartas the title and press Create.
2. Declare the variables
Section titled “2. Declare the variables”-
Press Home → New file, choose Variable Table, name it
IOand press Create. -
In the table, press the add row button in the toolbar and fill in each variable: Name, Type, Address and, optionally, a Comment.
-
Repeat until you have the six variables above.

3. Create the Ladder program
Section titled “3. Create the Ladder program”-
Press Home → New file, choose Program, name it
Motor, language Ladder and task Main_Task. Press Create. -
The editor opens with an empty rung. Click its header and type a comment, e.g. Seal-in.
-
Add the elements of rung 1 from left to right. You can drag them from the Library tab of the right panel or use the toolbar buttons:
- A NO contact (
Shift+F2) withIO.Marcha. - A NO contact with
IO.Paro(the physical button is NC, so it readsTRUEat rest). - An NC contact (
Shift+F3) withIO.Termico. - A coil (
Shift+F7) withIO.Motor.
- A NO contact (
-
For the seal-in, select the
IO.Marchacontact and open a parallel branch (Shift+F8). Place a NO contact withIO.Motorin the new branch. -
To assign each element’s variable, select it and type it in Properties → Variable. Autocomplete suggests variables of a compatible type; you can also press … to pick it from the table.

-
Add a new rung (
Ctrl+R) with anIO.Motorcontact and anIO.LuzMarchacoil. -
Add a third rung with an
IO.Termicocontact and anIO.LuzFallacoil.
The finished program:

4. Check the task
Section titled “4. Check the task”Open Tools → Tasks. The Motor program must be listed under Main_Task. If it is not, add it with Add program.

5. Compile
Section titled “5. Compile”Go to the Simulation tab and press Compile. The status bar should show Build succeeded. If there are errors, they are listed in the console with the file and element that caused them.
6. Simulate
Section titled “6. Simulate”-
Press Play. The project becomes read-only while simulating.
-
Turn on View states to colour the diagram: green =
TRUE/ energised, red =FALSE/ not energised. -
Open Watch to see every variable. Since
Parois an NC push button, set it toTRUEwith the Set value switch.
-
Press Marcha (set it to
TRUE, then back toFALSE). The motor starts and stays on thanks to the seal-in branch.
-
Simulate a fault: right-click the
IO.Termicocontact and choose Force to 1. The motor stops andLuzFallaturns on.

-
Release the force with right-click → Remove force and press Stop to edit again.
This is the full sequence (start, seal-in, thermal fault, restart and stop):
7. Save
Section titled “7. Save”Press Ctrl+Shift+S (Save all). Done! Your first PLC program is up and running.