System bus (can) for lenze plc devices, General information, 3 addressing the parameter (index/subindex) – Lenze DDS System bus CAN for PLC User Manual
Page 25

System bus (CAN) for Lenze PLC devices
General information
2−13
l
PLC−Systembus EN 2.0
2.7.1.3
Addressing the parameter (index/subindex)
Identifier
Command
code
Index
Subindex
Data 1
Data 2
Data 3
Data 4
Low byte
High byte
The addressing of the parameter or of the Lenze code which is to be read or written is effected via
the index of the telegram:
Index + 24575 * Lenze code number
·
The value for the index is to be entered divided into a low and a high byte in the left−justified
Intel format (see example).
·
If a subcode is to be addressed, enter the number of the respective subcode in the subindex
of the telegram.
·
For codes without subcodes, the subindex always receives the value "0".
·
The index for Lenze codes is between 40C0
hex
(16576) and 5FFF
hex
(24575).
Lenze code
Index
dec
hex
C0000
24575
5FFF
...
...
...
C7999
16576
40C0
Tip!
For converting a code number to the corresponding index, the function L_FUNCodeIndexConv in
the LenzeDrive.lib function library is provided to you.
Example:
Subcode 1 of code C0168 (fault messages) is to be addressed:
Index + 24575 * 168 + 24407 + 5F57
hex
11bit
8 bytes user data
Identifier
Command
code
Index
Subindex
Data 1
Data 2
Data 3
Data 4
Low byte
High byte
57
hex
5Fhex
1
hex