28
Operation
Addressing the Data
The addressing of the individual system variables is based on the
method used for MODBUS communication. --However, no
distinction is made between individual data types. A unique
variable index is assigned to every system and online variable to
distinguish the individual data from each other. The variable index
must be specified as a 16-bit integer for the controllers. --
When writing slave-specific parameter definitions, it is often
necessary to enter the data in hexadecimal format. Therefore, all
variable indices are listed in the "Tables" section in both decimal
and hexadecimal format. --
Often, hexadecimal data must be entered byte by byte. Since,
usually, the lower part must be entered to the left of the higher
part, first the two right digits of a 4-digit hexadecimal number are
entered, and then the two digits following 0x..... ---- For example,
variable index 0x0367 written in byte-by-byte format gives the
sequence 0x67, 0x03.
REAL, DINT, TIME and INT Variables
For system variables that have been read and written using
recording services (REAL, DINT, TIME and INT data), the record
number for MODBUS has to be increased by 1 to yield the
PROFIBUS DP variable index. ---
Example
System variable
.L1_WAKT (REAL)
MODBUS register
822 and 823
Variable index 823 (0x0337) for PROFIBUS-DP
BOOLean Variables
For system variables that have been read and written using coil
services (BOOLean data), the coil number increased by 1501 is
the variable index for PROFIBUS DP. --
Example
System variable
.AA01BUE
MODBUS coil 99
Variable index 1600 (0x0640) for PROFIBUS-DP
Online Parameters
CAUTION
Do not write cyclically on online parameters!
The following mapping regulations apply to the calculation of the
variable index for accessing online parameters. -- Refer to the
commissioning instructions for the respective device for the
parameter number. --
Device
Variable index (decimal) =
10001 + 2
×
parameter number
Control loops
Variable index (decimal) =
10001 + 1000
×
loop 2
×
parameter number
Loop 1 11003 - 12000
Loop 2 12003 - 13000
Loop 3 13003 - 14000
Loop 4 14003 - 15000
Program 1...10
Variable index (decimal) =
14801 + 200
×
program 2
×
parameter number
Program 1
15003 - 15200
Program 2
15203 - 15400
...
Program 10
16803 - 17000
Notes on the variable index tables for system variables seen on the following pages:-
Since the configuration tools for PROFIBUS DP systems often
provide different entry options for user-defined parameter data,
the system variables are listed in both decimal and hexadecimal
format. ---
The tables are in alphabetic order to enable easy finding of the
respective variable.