4 configuring i/o modules, Configuring i/o modules – Lenze ETC Motion Control User Manual

Page 343

Advertising
background image

PLC programming

Project planning

Configuring I/O modules

8

8.4

8.4.4

l

343

EDSTCXN EN 2.0

As identification for the control that this task entry is the 2nd (lower priority)
task "PLC_PRG2" must be entered into the field "event" (or OB20 if the
program component to be linked to the task was called "PLC_PRG2").

2nd task entry:

As soon as the task management is used by CoDeSys, a task entry for the
main component "PLC_PRG" must also be entered, otherwise this
component will no longer be called:

ETC105

If only the main task is required, it is not necessary to edit the task
configuration.

Link the tasks to the IEC program components.

Any IEC program component can be linked to the 1st task entry. Because the
component designation "PLC_PRG" has a special meaning it should be
renamed (e.g. "PLC_PRG1") and then linked to the 2nd task entry.

)

Note!

When accessing data or when calling components which are
used in both tasks (PLC_TASK (PLC_PRG1), e.g. Name: BDT_TASK
(PLC_PRG2)) it must be ensured that no synchronisation
between the two tasks exists.
The PLC programmer must ensure that this does not cause any
problems.

8.4.4

Configuring I/O modules

CoDeSys includes a CAN Bus configurator. The configurator is based on
so−called EDS files (EDS = Electronic Data Sheet), which must be stored in the
subdirectory "ETC" of the target directory.

A general description of the configuration of a CAN module can be found in
the CoDeSys documentation.

Step 2:

Step 3:

Advertising