DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

‘0’ ‘F’: toward the drive at address 15

‘1’ ‘0’: toward the drive at address 16

and so on, max. address: 254 (‘FE’) Function code:

‘0’ ‘3’: read contents from multiple registers

‘0’ ‘6’: write one word into a single register

‘1’ ‘0’: write contents to multiple registers Data characters:

The data sent by the user LRC checksum:

LCR checksum is 2’s complement of the value added from Address to Data Characters. For example: 01H + 03H + 21H + 02H + 00H + 02H = 29H. 2’s complement of 29H = D7H.

End word (END):

Fix the END as END Hi = CR (0DH), END Lo = LF (0AH)

Example:

Read 2 continuous data stored in the registers of the drive at address 01H (see the table below). The start register is at address 2102H.

Inquiry message:

STX

‘: ’

Address

‘0’

‘1’

 

Function code

‘0’

‘3’

 

 

‘2’

Start address

‘1’

‘0’

 

 

 

‘2’

 

‘0’

Number of data

‘0’

(count by word)

‘0’

 

 

 

‘2’

LRC Checksum

‘D’

‘7’

 

END

CR

LF

 

RTU mode

Response message:

STX

Address

Function code

Number of data (count by byte)

Content of start

address

2102H

Content of address

2103H

LRC Checksum

END

‘: ’ ‘0’ ‘1’ ‘0’ ‘3’ ‘0’ ‘4’ ‘1’ ‘7’ ‘7’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘7’ ‘1’

CR LF

Field Name

Descriptions

START

Refer to the following explanation

3 - 222

Page 338
Image 338
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual RTU mode, Cr Lf, Field Name Descriptions, Start, Refer to the following explanation