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.

3. Instruction Set<br />

Value<br />

H0005<br />

Error Description<br />

Communication data length error<br />

9. Corresponding table between D1167~D1169 and the associated interrupt pointers. (Only<br />

lower 8 bits are valid)<br />

COM Port I1□0 interrupt Special D<br />

COM1 I140 D1167<br />

COM2 I150 D1168<br />

COM3 I160 D1169<br />

10. Take standard MODBUS format for example:<br />

ASCII mode<br />

Field Name<br />

STX<br />

Address Hi<br />

Address Lo<br />

Function Hi<br />

Function Lo<br />

DATA (n-1)<br />

…….<br />

DATA 0<br />

LRC CHK Hi<br />

LRC CHK Lo<br />

END Hi<br />

END Lo<br />

Descriptions<br />

Start word = ‘: ’ (3AH)<br />

Communication address:<br />

The 8-bit address consists of 2 ASCII codes<br />

Function code:<br />

The 8-bit function code consists of 2 ASCII codes<br />

Data content:<br />

n × 8-bit data content consists of 2n ASCll codes<br />

LRC check sum:<br />

8-bit check sum consists of 2 ASCll code<br />

End word:<br />

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

The communication protocol is in Modbus ASCII mode, i.e. every byte is composed of 2 ASCII<br />

characters. For example, 64Hex is ‘64’ in ASCII, composed by ‘6’ (36Hex) and ‘4’ (34Hex). Every<br />

character ‘0’…’9’, ‘A’…’F’ corresponds to an ASCII code.<br />

Character ‘0’ ‘1’ ‘2’ ‘3’ ‘4’ ‘5’ ‘6’ ‘7’<br />

ASCII code 30H 31H 32H 33H 34H 35H 36H 37H<br />

Character ‘8’ ‘9’ ‘A’ ‘B’ ‘C’ ‘D’ ‘E’ ‘F’<br />

ASCII code 38H 39H 41H 42H 43H 44H 45H 46H<br />

Start word (STX): ‘: ’ (3AH)<br />

Address:<br />

‘0’ ‘0’: Broadcasting to all drives (Broadcast)<br />

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

3-221

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

Saved successfully!

Ooh no, something went wrong!