Starter kit for ecomatController EC2121
30
>
5.3
Create the program
57283
In the first small program a two-hand control is to be implemented which is used for presses, for
example. There are two pushbuttons on the press which are installed so that they cannot be operated
with one hand. That means that the operator has to press one pushbutton with each hand to release
the press. This ensures that no hand gets underneath the press.
For the simulation, the IO-simulator box is used with the following signals:
Operand
Comments
IN0100
Press, pushbutton 1
IN0101
Press, pushbutton 2
OUT0000
Press release signal
>
5.3.1
Suppress SafetyPLC in the device tree
Since only the controller
StandardPLC
is used for the first program, the section of the
SafetyPLC
is
suppressed in the device tree.
► Click minus sign before [SafetyPLC (CR711S SIL2)].
>
The branch [SafetyPLC (CR711S SIL2)] is closed.
>
5.3.2
Cyclical program processing
In CODESYS 3.5, the program has to be processed cyclically. A program block has to exist to which a
task is assigned.
One task and one program block
PLC_PRG
are already pre-configured in the used template. The
program block
PLC_PRG
is assigned to the task and is therefore activated cyclically.
In the program block
PLC_PRG
other program blocks (also called POU - Programming Organization
Unit) are started. They can be programs, function blocks and functions.
>