System bus (CAN) with Ser vo PLC & Drive PLC
General information
2-13
l PLC-Systembus EN 1.1
2.6.2 Writing a parameter (example)
Ta s k
Setting the acceleration time (C0012) of the controller with node address 1 via parameter channel
1to20s.
Telegram to the controller:
Formula Info
Identifier = Basic identifier + node address
= 1536 + 1
= 1537
• Basic identifier fo r parameter channel 1 (output) = 1536
• Node address of the controller = 1
Command code = 23
hex
• Command “Write Request” (send parameters to controller)
Index = 24575 - Lenze code number
= 24575 - 12
= 24563
= 5F F3
hex
• Code = C0012 (acceleration time )
Subindex = 0 • Subcode = 0 (no subcode)
Data 1 ... 4 = 20 x 10000
= 200000
= 00 03 0D 40
hex
• Value = 20 s
• Fixed32 data format (4 fixed decimal places);
Multiply value by 10000
11 Bit 8-byte user data
Command
Index
ent
er
code
Low-byte High-byte
u
n
e
ata
ata
ata
ata
1537 23
hex
F3
hex
5F
hex
0 40
hex
0D
hex
03
hex
00
hex
(LSB) (MSB)
Identifier = 1537
L
SDO 1 / Node-ID 1
Identifier = 1409
Write Request
(C0012 = 20 s)
Write Response
Telegram from the controller (acknowledgement if data were properly transmitted):
Formula Info
Identifier = Basic identifier + node address
= 1408 + 1
= 1409
• Basic identifier for parameter channel 1 (input) = 1408
• Node address of the controller = 1
Command code = 60
hex
• Command “Write Response” (acknowledgement from the controller)
Index = Index of the read request
Subindex = Subindex of the read request
Data 1 ... 4 = 0 • Acknowledgement only
11 Bit 8-byte user data
Command
Index
ent
er
code
Low-byte High-byte
u
n
e
ata
ata
ata
ata
1409 60
hex
F3
hex
5F
hex
0 0 0 0 0