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

3. Take the connection between PLC (PLC COM2) and VFD-B for example, the tables below<br />

explains the status when PLC reads status of VFD-B. (M1143 = OFF, ASCII Mode) (M1143 =<br />

ON, RTU Mode)<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 />

MOV<br />

K100<br />

D1129<br />

Set communication timeout as 100ms<br />

X0<br />

RST<br />

SET<br />

M1143<br />

M1122<br />

M1143 = OFF<br />

ASCII mode<br />

Sending request<br />

SET<br />

M1143<br />

M1143 = ON<br />

RTU mode<br />

X0<br />

MODRW<br />

K1<br />

K3<br />

H2100 D0 K6<br />

Receiving completed<br />

M1127<br />

Processing received data<br />

Data length(word)<br />

Data storing register<br />

Data address: H2100<br />

Function code: K3<br />

read multiple words<br />

Connection device<br />

address: K1<br />

ASCII mode : The received ASCII data is stored in registers starting from D0<br />

and PLC converts the ASCII data to Hex value and stores them in<br />

D1296~D1301 automatically.<br />

RTU mode : The received data is stored in registers starting from D0 in Hex value.<br />

RST<br />

M1127<br />

Reset M1127<br />

ASCII mode (M1143 = OFF):<br />

When X0 = ON, MODRW instruction executes the function specified by Function Code 03<br />

PLC VFD-B, PLC sends: “01 03 2100 0006 D5”<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 />

D1256 Low byte ‘0’ 30 H ADR 1<br />

D1256 High byte ‘1’ 31 H ADR 0<br />

D1257 Low byte ‘0’ 30 H CMD 1<br />

D1257 High byte ‘3’ 33 H CMD 0<br />

D1258 Low byte ‘2’ 32 H<br />

D1258 High byte ‘1’ 31 H<br />

D1259 Low byte ‘0’ 30 H<br />

Data Address<br />

D1259 High byte ‘0’ 30 H<br />

Address of VFD-B: ADR (1,0)<br />

Control parameter: CMD (1,0)<br />

3-338

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

Saved successfully!

Ooh no, something went wrong!