
6 User Program
System Manual Modular Systems
Page 34 of 114
HI 800 191 E Rev. 2.02
6
User Program
In accordance with the IEC 61131-3 requirements, a PADT with installed programming tool, i.e.,
ELOP II Factory or SILworX, must be used to create and load the user program for the PES.
First, use the PADT to create and configure the user program for the controller's safety-related
operation. To this end, observe the instructions specified in the safety manual (HI 800 023 E)
and ensure that the requirements specified in the report to the certificate are met.
Once the compiling is complete, the programming device loads the user program (logic) and its
configuration (connection parameters such as IP address, subnet mask and system ID) into the
controller and starts them.
The PADT can be used to perform the following actions while the controller is operating:
Starting and stopping the user program.
Displaying and forcing variables or signals using the Force Editor.
In test mode, executing the user program in single steps - not suitable for safety-related
operation.
Reading the diagnostic history.
This is possible, provided that the PADT and the controller are loaded with the same user
program.
6.1
Modes of Operation for the User Program
Only one user program at a time can be loaded into a given controller. For this user program,
the following modes of operations are allowed:
Mode of
Operation
Description
RUN
The processor system is in RUN.
The user program is run cyclically.
I/O signals are processed.
Test Mode
(single step)
The processor system is in RUN.
The user is run cyclically, if previously set by the user.
I/O signals are processed.
Do not use this function during safety-related operation!
STOP
The processor system is in STOP.
The user program is not or no longer run, the outputs are reset.
ERROR
A loaded user program has been stopped due to a failure.
The outputs are reset.
Note: The program can only be restarted using the PADT.
Table 19: User Program Modes of Operation
6.2
User Program Cycle Sequence, Multitasking with CPU 03
In a simplified overview, the processor module cycle (CPU cycle) of only one user program runs
through the following phases:
1. Process the input data.
2. Run the user program.
3. Supplying the output data.
These phases do not include special tasks, e.g., reload, that might be executed within a CPU
cycle.
In the first phase, global variables, results from the function blocks and other data are
processed and provided as the input data for the second phase. The first phase need not start
at the beginning of the cycle, but may be delayed. For this reason, using timer function blocks to