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 />

Example:<br />

Step 6: Repeat step 2 – 5 until the operation of all the messages are completed. The final<br />

value obtained in the CRC register is the CRC checksum. Care should be taken when<br />

placing the LOW byte and HIGH byte of the obtained CRC checksum.<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 />

Inquiry message:<br />

Response message:<br />

Field Name Data (Hex) Field Name Data (Hex)<br />

Address 01 H Address 01 H<br />

Function 03 H Function 03 H<br />

Start data<br />

address<br />

Number of data<br />

(count by word)<br />

21 H<br />

02 H<br />

Number of data<br />

(count by byte)<br />

04 H<br />

00 H Content of data address 17 H<br />

02 H<br />

2102H<br />

70 H<br />

CRC CHK Low 6F H Content of data address 00 H<br />

CRC CHK High F7 H<br />

2103H<br />

00 H<br />

Example program of RS-485 communication:<br />

CRC CHK Low<br />

CRC CHK High<br />

FE H<br />

5C H<br />

M1002<br />

MOV<br />

H86<br />

D1120<br />

Setting communication protocol 9600, 7, E, 1<br />

SET<br />

M1120<br />

Communication protocol latched<br />

Transmission<br />

request<br />

X0<br />

Pulse<br />

X20<br />

Receiving<br />

completed<br />

M1123<br />

MOV K100 D1129 Setting communication time out 100ms<br />

Write transmitting data in advance<br />

SET M1122 Sending request<br />

RS D100 K2 D120 K8<br />

Process of receiving data<br />

RST M1123 Receiving completed and flag reset<br />

3-224

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

Saved successfully!

Ooh no, something went wrong!