3 Commissioning
3.4 Program execution
Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com 59
3.4.2 DIP switch S2
DIP switch 2 has a special function for XC-104-… and XC-204-… devices. In
the ON state, the device sends responses to broadcast requests from the
discovery service.
3.4.3 Program start (STOP → RUN)
You have the following possibilities to start the program:
3.4.4 Program stop (RUN → STOP)
A change of the DIP switch to the ON position leads the central processing
unit to the STOP state after completion of the program cycle (ending of all
active tasks).
The PLC settings under the XSOFT-CODESYS-3 Device tab are used to
define what should happen in the CPU's STOP state.
Default setting:
• In the "Always update tags" field: "Disabled (update only if used in a task)"
• In the "Behavior for outputs in Stop": "Keep current values."
This will ensure that the values of the outputs used in the I/O tasks will be
kept after the tasks end.
When running tests and simulations, the "Enabled 1 (use bus cycle if not
used in any tasks)" option should be selected in the "Always update tags"
field. This is the only way to ensure that all inputs and outputs will be shown
with their latest state in the simulation.
You can stop the program in one of two ways:
• In online operation, issue the STOP command.
• Switch the STOP DIP switch to the ON position.
Figure 45: XC-104-… , XC-204-…
ON OFF
1 STOP PLC stops PLC runs
2 SF Special Function Discovery
3 TC X4 (CAN termination) –
4
5
TRSa,
TRSb
X3 (RS485 termination) –
Program exists in main memory Program should be loaded
Prerequisite •CPU in STOP
• STOP switch ON
• CPU in STOP
• STOP switch OFF
Action
• Switch the STOP switch to OFF • Load program
• in online operation, issue the “Start”
command.
Result for all vari-
ables
CPU in RUN
Values are retained at the start
CPU in RUN
Initial values are activated