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

Program Example 1:<br />

Communication between PLC and VFD-B series AC motor drives (ASCII Mode, M1143 = OFF)<br />

M1002<br />

MOV<br />

H87<br />

D1120<br />

Set communication protocol as 9600, 8, E, 1<br />

SET<br />

M1120<br />

Retain communication protocol<br />

X1<br />

X0<br />

M1127<br />

Receiving<br />

completed<br />

MOV<br />

SET<br />

K100<br />

M1122<br />

D1129<br />

Sending request<br />

Set receiving time-out as 100ms<br />

MODRD K1 H2101 K6<br />

Set communication instruction:<br />

Data length: 6 words<br />

Data address: H2101<br />

Device address: 01<br />

PLC converts the received ASCII data in<br />

Processing received data D1070~D1085 into Hex data and stores them<br />

into D1050~D1055<br />

RST M1127 Reset M1127<br />

PLC → VFD-B , PLC transmits: “01 03 2101 0006 D4”<br />

VFD-B → PLC , PLC receives: “01 03 0C 0100 1766 0000 0000 0136 0000 3B”<br />

Registers for data to be sent (sending messages)<br />

Register Data Descriptions<br />

D1089 low byte ‘0’ 30 H ADR 1<br />

D1089 high byte ‘1’ 31 H ADR 0<br />

D1090 low byte ‘0’ 30 H CMD 1<br />

D1090 high byte ‘3’ 33 H CMD 0<br />

D1091 low byte 2’ 32 H<br />

D1091 high byte ‘1’ 31 H<br />

D1092 low byte ‘0’ 30 H<br />

D1092 high byte ‘1’ 31 H<br />

D1093 low byte ‘0’ 30 H<br />

D1093 high byte ‘0’ 30 H<br />

D1094 low byte ‘0’ 30 H<br />

D1094 high byte ‘6’ 36 H<br />

Starting data address<br />

D1095 low byte ‘D’ 44 H LRC CHK 1<br />

D1095 high byte ‘4’ 34 H LRC CHK 0<br />

Address of AC motor drive:<br />

ADR (1,0)<br />

Command code: CMD (1,0)<br />

Number of data (count by word)<br />

Checksum: LRC CHK (0,1)<br />

3-269

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

Saved successfully!

Ooh no, something went wrong!