beautypg.com

Read block parameters, Canopen, 6parameter setting – Lenze EMF2175IB User Manual

Page 40: 4 read block parameters

background image

CANopen

6

Parameter setting

6-12

L

BA2175 EN 2.0

6.2.4

Read block parameters

The software product code (code L-C0200) of a Lenze product is to be read from parameter set 1.
The product code has 14 alphanumerical characters. They are transferred as block parameters. The
transfer of block parameters uses the entire data width (2nd - 8th byte).

During transfer, the command byte (1st byte) contains entries

hex

or 41

hex

) to

– indicate the end of a block transfer

– request the next block

Code L-C0200 - request

1st byte

2nd byte

3rd byte

4th byte

5th byte

6th byte

7th byte

8th byte

40

hex

37

hex

5F

hex

00

00

00

00

00

1st byte: 40 read request (request to read a parameter from the controller)
2nd/3rd byte: Index Low/High Byte: 24575 - 200 - 0 = 24375 = 5F37

hex

Response including the block length (14 characters)

1st byte

2nd byte

3rd byte

4th byte

5th byte

6th byte

7th byte

8th byte

41

hex

37

hex

5F

hex

00

0E

hex

00

00

00

1st byte: 41 read response. The entry 41

hex

implies that it is a block telegram.

2nd/3rd byte: see above
5th byte: 0E (=14

dec.

) data length 14 characters (ASCII format)

First data block - request

1st byte

2nd byte

3rd byte

4th byte

5th byte

6th byte

7th byte

8th byte

60

hex

00

00

00

00

00

00

00

1st byte: 60

hex

Write response (acknowledgement) with access to bytes 2 - 8.
Note:

The individual blocks are toggled one after the other*, i.e. the request with command 60

hex

(=0110 0000

bin

) is before command 70

hex

(=0111 0000

bin

) and followed by 60

hex

again, etc. The response is sent accordingly. It is alternating because of a toggle bit. This process is

stopped by command 11

hex

(bit 0 is set, see below).

*Toggle bit = bit 4 (counting starts with 0)

Response

1st byte

2nd byte

3rd byte

4th byte

5th byte

6th byte

7th byte

8th byte

00

33

hex

33

hex

53

hex

39

hex

33

hex

30

hex

30

hex

2nd - 8th byte, ASCII format: 3 3 S 9 3 0 0

Second data block - request

1st byte

2nd byte

3rd byte

4th byte

5th byte

6th byte

7th byte

8th byte

70

hex

00

00

00

00

00

00

00

1st byte: 70

hex

(toggle) write response (acknowledgement) with access to all 4 data bytes

Second data block - response with over-detection

1st byte

2nd byte

3rd byte

4th byte

5th byte

6th byte

7th byte

8th byte

11

hex

4D

hex

5F

hex

32

hex

30

hex

30

hex

30

hex

33

hex

1st byte: 11 last transfer of the data block
2nd - 8the byte: M _ 2 0 0 0 3
Result of data block transfer: 33S9300M_20003

Show/Hide Bookmarks