Delta DVP-ES2/EX2/SS2/SA2/SX2/SE Field Name Data Hex, Example program of RS-485 communication

Models: DVP-ES2/EX2/SS2/SA2/SX2/SE

1 702
Download 702 pages 56.54 Kb
Page 340
Image 340

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

Step 6: Repeat step 2 – 5 until the operation of all the messages are completed. The final value obtained in the CRC register is the CRC checksum. Care should be taken when placing the LOW byte and HIGH byte of the obtained CRC checksum.

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:

Field Name

Data (Hex)

Address

01 H

Function

03 H

Start data

21 H

address

02 H

 

 

Number of data

00 H

(count by word)

02 H

CRC CHK Low

6F H

CRC CHK High

F7 H

Response message:

Field Name

Address

Function

Number of data (count by byte)

Content of data address

2102H

Content of data address

2103H

CRC CHK Low

CRC CHK High

Data (Hex)

01H

03H

04 H

17H

70H

00H

00H FE H 5C H

Example program of RS-485 communication:

M1002

 

D1120 Setting communication protocol 9600, 7, E, 1

 

 

 

 

 

MOV

H86

 

 

 

 

 

 

 

 

 

 

SET

M1120

Communication protocol latched

 

 

 

 

 

 

 

 

 

 

MOV

K100

D1129

Setting communication time out 100ms

 

 

 

 

 

 

Transmission

 

 

 

 

 

request

 

 

 

 

X0

 

 

 

 

 

 

 

 

 

Write transmitting data in advance

 

 

 

 

 

 

 

 

Pulse

 

 

 

 

 

 

 

 

 

 

 

SET

M1122

Sending request

 

 

 

 

 

 

 

X20

 

 

 

 

 

 

 

 

 

RS

D100

K2

D120

K8

 

 

 

 

 

Receiving completed

M1123

Process of receiving data

RST

M1123 Receiving completed and flag reset

3 - 224

Page 340
Image 340
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Field Name Data Hex, Example program of RS-485 communication