![background image](http://html1.mh-extra.com/html/ifm/cr711s/cr711s_original-programming-manual_3891703080.webp)
80
ifm
Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n
2017-12-19
Programming
Create PLC application
>
8.2.3
Options to access input and output data
17621
In a CODESYS project, each input and output has a physical address according to the IEC standard
(e.g. %IW5). CODESYS offers the following options to access this address from a PLC application and
thereby to access the input and outputs data of the device:
Access to IEC address via AT declaration
Definition of an ALIAS for an IEC address
Link a program variable to an IEC address (mapping)
8.2.4
Configure task processing
23487
► Familiarise yourself with the following CODESYS functions!
Task configuration:
→ Online help > CODESYS Development System > Programming Applications >
Task Configuration
The processing of the tasks is controlled by parameters. The user can set the parameters for each
task.
CODESYS automatically creates the following task when the project is created:
Name
Description
Task
Task for the processing of the main program [PLC_PRG (PRG)]
For subprograms with POUs that are to be executed several times per PLC cycle:
► Create new task.
► Configure task properties:
1. [Priority]: permissible = 0 (high) ... 3 (low)
(select a priority for each task)
2. [Type]: Cyclic
3. [Interval]: Interval of the task call-ups in [ms]
The interval time must be longer than the runtime of the task.
► Recommended: Activate watchdog: →
Configure IEC watchdog
(
The watchdog time must be shorter than the interval time.
The watchdog time must be longer than the runtime of the task.
► Assign subprogram with POUs to the newly created task.
If the CAN buses are heavily utilised:
► Configure task properties:
1. [Priority]: high
2. [Type]: Cyclic
3. [Interval]: requested cycle time (=transmission interval)
► Assign subprograms with the POUs for CAN communication to the CAN tasks.