Starter kit for ecomatController EC2121
31
5.3.3
Structured programming
57286
In principle, the complete program can be contained in only one block such as the
PLC_PRG
. This
becomes quite confusing, however, and the fault location is difficult.
It is better to distribute different program sections to different blocks. Then the blocks are activated one
after the other in PLC_PRG.
Therefore one separate program block
press
is created for the press controller in this example.
>
5.3.4
Create new block
57287
To create a new block:
► In the device tree: Select [Application] > (right click) > [Add Object] > [POU…].
>
The window [Add POU] appears.
► Configure POU and complete with [Add]:
[Name:] Press
[Type:] Program
[Implementation language:] function block diagram (FBD)
>
The new block appears.