Operating Instructions
Chapter
4
AFS60/AFM60 EtherNet/IP
49
Commissioning
4.4
Configuration examples
The following examples show the configuration of two programs that read and write acyclic
data (temperature) (Preset). For this purpose the programs are written in ladder logic with
the aid of the software RSLogix 5000 from Rockwell Automation.
During programming the control system must be in the offline mode.
First you must define and declare the variables for the program.
Then add the program blocks to the ladder logic and assign the variables as
appropriate.
After that you must download the program to the control system.
Finally, you can test the program.
4.4.1
Reading temperature
In the first example the temperature of the encoder is to be read with the aid of the
parameter 64h, Temperature Value.
Defining and declaring variables
As the initial step the variables TEMP_Trigger, TEMP_OneShot, TEMP_Value and
TEMP_Message must be defined and declared for the program.
First the variable TEMP_Trigger, which controls the reading process, is added.
In the
Controller Organizer
, using the right mouse button click
Controller Tags
and
select
New Tag
.
The
New Tag
dialog box opens.
Note
Fig. 35: Control system in the
offline mode
Fig. 36: Adding a new
variable
8018909/1EH9/2021-12-16
Subject to change without notice
© SICK AG• Germany • All rights reserved