Chapter
4
Operating Instructions
AFS60/AFM60 EtherNet/IP
58
Commissioning
Finally a further variable must be defined and declared that obtains the preset value from
the control system.
Select again
New Tag
.
In the
New Tag
dialog box enter PRESET_Message in the
Name
field, select in the
Data
Type
field the data type MESSAGE and click
OK
.
Fig. 61 shows the resulting variable structure for setting a preset value.
Defining process sequence
After you have defined and declared the variables, the program blocks must be inserted in
the ladder logic and the variables assigned as appropriate.
In
Tasks
,
Main Task
,
MainProgramm
open the
MainRoutine
window.
If the process sequence for writing a preset value is to run in parallel with the previous
example, then a new thread must be added.
Fig. 60: Definition of the
variable PRESET_Message
Fig. 61: Variable structure for
setting a preset value
Fig. 62: Opening
MainRoutine
© SICK AG• Germany • All rights reserved
8018909/1EH9/2021-12-16
Subject to change without notice