2 writing parameters (example), Writing parameters (example), System bus (can) for lenze plc devices – Lenze DDS System bus CAN for PLC User Manual

Page 27: General information

Advertising
background image

System bus (CAN) for Lenze PLC devices

General information

2−15

l

PLC−Systembus EN 2.0

2.7.2

Writing parameters (example)

Task

The acceleration time (C0012) of the controller with the node address 1 is to be set to 20 s via the
parameter data channel 1.

Telegram to the controller

Formula

Information

Identifier

= basic identifier + node address
= 1536 + 1
= 1537

·

Basic identifier for parameter data channel 1 (output) = 1536

·

Node address of the controller = 1

Command code = 23

hex

·

Command "Write Request" (send parameter to controller)

Index

= 24575 − number of the Lenze code
= 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 positions); multiply value by 10000

11bit

8 bytes user data

Identifier

Command

code

Index

Subindex

Data 1

Data 2

Data 3

Data 4

Low byte

High byte

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

Fig. 2−5

Writing parameters

Advertising