Schneider Electric VW3 A3 303 user manual Get Comm Event Counter 11 = 16#0B

Models: VW3 A3 303

1 47
Download 47 pages 62.02 Kb
Page 30
Image 30

8. Modbus protocol

8. 7. Get Comm Event Counter (11 = 16#0B)

Question:

 

 

 

 

 

Slave no.

0B

CRC16

1 byte

1 byte

2 bytes

Response:

 

 

Slave no.

1 byte

0B

1 byte

0000

2 bytes

Value of counter

Hi Lo

2 bytes

 

CRC16

Lo

 

Hi

 

 

2 bytes

8. 8. Write Multiple Registers (16 = 16#10)

Request:

Slave no.

10

 

No. of first word

Number of words

Number of bytes

 

Value of first word

 

 

 

 

 

Hi

 

Lo

Hi

 

Lo

 

 

 

Hi

 

Lo

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 byte

 

1 byte

 

 

2 bytes

2 bytes

 

 

1 byte

 

 

2 bytes

 

 

Response:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Slave no.

 

10

 

 

 

No. of first word

 

 

Number of words

 

 

CRC16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi

 

Lo

 

 

Hi

Lo

 

Lo

 

 

Hi

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 byte

 

1 byte

 

 

 

2 bytes

 

 

 

2 bytes

 

2 bytes

 

 

-------

CRC16

Lo

Hi

 

 

2 bytes

Example: Write values 20 and 30 to logic address words 9001 and 9002 on slave 2 (acceleration time = 20 s and deceleration time = 30 s)

Request:

Slave no.

 

Request

 

No. of first word

Number of

Number of

Value of first word

 

Value of second

 

CRC16

 

 

code

 

 

 

 

 

 

words

bytes

 

 

 

 

 

word

 

 

 

 

 

 

 

 

 

Hi

 

Lo

Hi

 

Lo

 

 

Hi

 

Lo

 

Hi

 

Lo

 

Lo

 

Hi

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

02

 

10

 

23

 

29

 

00

 

02

 

04

 

00

14

 

00

 

1E

73

 

A4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Response:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Slave no.

 

 

Response code

 

 

No. of first word

 

Number of words

 

 

CRC16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi

 

Lo

 

Hi

 

Lo

 

 

Lo

 

 

Hi

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

02

 

 

 

10

 

 

 

 

23

 

29

 

00

 

02

 

 

9B

 

 

B7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

30

Page 30
Image 30
Schneider Electric VW3 A3 303 user manual Get Comm Event Counter 11 = 16#0B, Write Multiple Registers 16 = 16#10