Delta DVP-ES2/EX2/SS2/SA2/SX2/SE Two-Way Radio User Manual


 
DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
3-224
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: Response message:
Field Name Data (Hex) Field Name Data (Hex)
Address 01 H Address 01 H
Function 03 H Function 03 H
21 H
Start data
address
02 H
Number of data
(count by byte)
04 H
00 H 17 H
Number of data
(count by word)
02 H
Content of data address
2102H
70 H
CRC CHK Low 6F H 00 H
CRC CHK High F7 H
Content of data address
2103H
00 H
CRC CHK Low FE H
CRC CHK High 5C H
Example program of RS-485 communication:
MOV D1120H86
M1002
SET M1120
SET
MOV D1129K100
X20
M1123
RST M1123
RS D100 K2 D120 K8
Setting communication protocol 9600, 7, E, 1
Communication protocol latched
Setting communication time out 100ms
Write transmitting data in advance
Transmission
request
Pulse
Sending request
Receiving
completed
Receiving completed and flag reset
Process of receiving data
X0
M1122