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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Instruction Set<br />

Field Name<br />

Address<br />

Function<br />

DATA (n-1)<br />

…….<br />

DATA 0<br />

CRC CHK Low<br />

CRC CHK High<br />

END<br />

Descriptions<br />

Communication address: n 8-bit binary<br />

Function code: n 8-bit binary<br />

Data:<br />

n × 8-bit data<br />

CRC checksum:<br />

16-bit CRC consists of 2 8-bit binary data<br />

Refer to the following explanation<br />

START/END:<br />

RTU Timeout Timer:<br />

Baud rate(bps) RTU timeout timer (ms) Baud rate (bps) RTU timeout timer (ms)<br />

300 40 9,600 2<br />

600 21 19,200 1<br />

1,200 10 38,400 1<br />

2,400 5 57,600 1<br />

4,800 3 115,200 1<br />

Address:<br />

00 H: Broadcasting to all drives (Broadcast)<br />

01 H: toward the drive at address 01<br />

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

10 H: toward the drive at address 16<br />

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

Function code:<br />

03 H: read contents from multiple registers<br />

06 H: write one word into single register<br />

10 H: write contents to multiple registers<br />

Data characters:<br />

The data sent by the user<br />

CRC checksum: Starting from Address and ending at Data Content. The calculation is as follows:<br />

Step 1: Set the 16-bit register (CRC register) = FFFFH<br />

Step 2: Operate XOR on the first 8-bit message (Address) and the lower 8 bits of CRC<br />

register. Store the result in the CRC register.<br />

Step 3: Right shift CRC register for a bit and fill “0” into the highest bit.<br />

Step 4: Check the lowest bit (bit 0) of the shifted value. If bit 0 is 0, fill in the new value<br />

obtained at step 3 to CRC register; if bit 0 is NOT 0, operate XOR on A001H and the<br />

shifted value and store the result in the CRC register.<br />

Step 5: Repeat step 3 – 4 to finish all operation on all the 8 bits.<br />

3-223

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

Saved successfully!

Ooh no, something went wrong!