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 2:<br />

Communication between PLC and VFD-B series AC motor drive (RTU Mode, M1143= ON)<br />

M1002<br />

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

SET<br />

M1120<br />

Retain communication protocol<br />

MOV<br />

K100<br />

D1129<br />

Sett receiving timeout as 100ms<br />

X1<br />

X0<br />

M1127<br />

SET M1143 Set as RTU mode<br />

SET M1122 Sending request<br />

MODRD K1 H2102 K2<br />

Set communication instruction:<br />

Data length: 2 words<br />

Data address: H2102<br />

Device address: 01<br />

Processing received data<br />

The received data is stored<br />

in D1070~D1085 in HEX.<br />

Receiving<br />

completed<br />

RST<br />

M1127<br />

Reset M1127<br />

PLC → VFD-B , PLC transmits: 01 03 2102 0002 6F F7<br />

VFD-B → PLC, PLC receives: 01 03 04 1770 0000 FE 5C<br />

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

Register Data Descriptions<br />

D1089 low byte 01 H Address of AC motor drive<br />

D1090 low byte 03 H Command code of AC motor drive<br />

D1091 low byte 21 H<br />

D1092 low byte 02 H<br />

Starting data address<br />

D1093 low byte 00 H<br />

D1094 low byte 02 H<br />

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

D1095 low byte 6F H CRC CHK Low<br />

D1096 low byte F7 H CRC CHK High<br />

Registers for received data (responding messages)<br />

Register Data Descriptions<br />

D1070 low byte 01 H Address of AC motor drive<br />

D1071 low byte 03 H Command code of AC motor drive<br />

D1072 low byte 04 H Number of data (count by byte)<br />

D1073 low byte 17 H<br />

D1074 low byte 70 H<br />

Content of address 2102 H<br />

D1075 low byte 00 H<br />

D1076 low byte 00 H<br />

Content of address 2103 H<br />

3-271

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

Saved successfully!

Ooh no, something went wrong!