beautypg.com

Delta DVP-ES2 User Manual

Page 338

background image

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

3-222

‘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:

Response message:

STX ‘:

STX ‘:

‘0’ ‘0’

Address

‘1’

Address

‘1’

‘0’ ‘0’

Function code

‘3’

Function code

‘3’

‘2’ ‘0’

‘1’

Number of data

(count by byte)

‘4’

‘0’ ‘1’

Start address

‘2’ ‘7’

‘0’ ‘7’

‘0’

Content of start

address

2102H

‘0’

‘0’ ‘0’

Number of data
(count by word)

‘2’ ‘0’

‘D’ ‘0’

LRC Checksum

‘7’

Content of address

2103H

‘0’

CR ‘7’

END

LF

LRC Checksum

‘1’

CR

END

LF

RTU mode

Field Name

Descriptions

START

Refer to the following explanation

This manual is related to the following products: