17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

‘0’ ‘F’: toward the drive at address 15<br />

‘1’ ‘0’: toward the drive at address 16<br />

… and so on, max. address: 254 (‘FE’)<br />

Function code:<br />

‘0’ ‘3’: read contents from multiple registers<br />

‘0’ ‘6’: write one word into a single register<br />

‘1’ ‘0’: write contents to multiple registers<br />

Data characters:<br />

The data sent by the user<br />

LRC checksum:<br />

LCR checksum is 2’s complement of the value added from Address to Data Characters.<br />

For example: 01H + 03H + 21H + 02H + 00H + 02H = 29H. 2’s complement of 29H = D7H.<br />

End word (END):<br />

Fix the END as END Hi = CR (0DH), END Lo = LF (0AH)<br />

Example:<br />

Read 2 continuous data stored in the registers of the drive at address 01H (see the table<br />

below). The start register is at address 2102H.<br />

RTU mode<br />

Inquiry message:<br />

Response message:<br />

STX ‘: ’ STX ‘: ’<br />

Address<br />

‘0’ ‘0’<br />

Address<br />

‘1’<br />

‘1’<br />

Function code<br />

‘0’ ‘0’<br />

Function code<br />

‘3’<br />

‘3’<br />

‘2’ Number of data ‘0’<br />

‘1’<br />

(count by byte) ‘4’<br />

Start address<br />

‘0’ ‘1’<br />

‘2’<br />

Content of start<br />

‘7’<br />

address<br />

‘0’ 2102H<br />

‘7’<br />

Number of data ‘0’<br />

‘0’<br />

(count by word) ‘0’ ‘0’<br />

‘2’ Content of address ‘0’<br />

LRC Checksum<br />

‘D’ 2103H<br />

‘0’<br />

‘7’<br />

‘0’<br />

END<br />

CR ‘7’<br />

LRC Checksum<br />

LF<br />

‘1’<br />

END<br />

CR<br />

LF<br />

Field Name<br />

START<br />

Descriptions<br />

Refer to the following explanation<br />

3-222

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!