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.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<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 />

MOV<br />

SET<br />

K100<br />

M1122<br />

D1129 Set receiving timeout as 100ms<br />

Sending request<br />

X0<br />

M1127<br />

MODWR<br />

K1<br />

Processing received data<br />

H0100<br />

H1770<br />

Set communication instruction:<br />

Data: H1770<br />

Data address: H0100<br />

Device address: 01<br />

The received data is stored in<br />

D1070~D1085 in ASCII format.<br />

Receiving<br />

completed<br />

RST<br />

M1127<br />

Reset M1127<br />

PLC → VFD-B, PLC transmits: “01 06 0100 1770 71 ”<br />

VFD-B → PLC, PLC receives: “01 06 0100 1770 71 ”<br />

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

Register Data Descriptions<br />

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

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

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

D1090 high ‘6’ 36 H CMD 0<br />

D1091 low ‘0’ 30 H<br />

D1091 high ‘1’ 31 H<br />

D1092 low ‘0’ 30 H<br />

D1092 high ‘0’ 30 H<br />

D1093 low ‘1’ 31 H<br />

D1093 high ‘7’ 37 H<br />

D1094 low ‘7’ 37 H<br />

D1094 high ‘0’ 30 H<br />

Data address<br />

Data contents<br />

D1095 low ‘7’ 37 H LRC CHK 1<br />

D1095 high ‘1’ 31 H LRC CHK 0<br />

Address of AC motor drive: ADR<br />

(1,0)<br />

Command code of AC motor<br />

drive: CMD (1,0)<br />

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

3-274

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

Saved successfully!

Ooh no, something went wrong!