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

M1002<br />

MOV<br />

H87<br />

D1109<br />

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

SET<br />

M1136<br />

Retain communication setting<br />

MOV<br />

K100<br />

D1252<br />

Set communication timeout as 100ms<br />

X0<br />

X0<br />

RST M1320 M1320 = OFF<br />

SET M1320<br />

ASCII mode<br />

SET<br />

MODRW<br />

M1316<br />

K1<br />

Sending request<br />

K3<br />

H2100 D0 K6<br />

M1320 = ON<br />

RTU mode<br />

Receiving completed<br />

M1318<br />

Processing received data<br />

Data length(word)<br />

Data st oring register<br />

Data address: H2100<br />

Function code: K3<br />

Read multiple words<br />

Connection device<br />

address: K1<br />

ASCII mode: The received data is converted to Hex value<br />

and stored in registers starting from D0<br />

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

RST<br />

M1318<br />

Reset M1318<br />

ASCII mode (COM3: M1320 = OFF, COM1: M1139 = 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 received data (responding messages)<br />

Register Data Descriptions<br />

D0 0100 H<br />

D1 1766 H<br />

D2 0000 H<br />

D3 0000 H<br />

D4 0136 H<br />

PLC converts ASCII codes in 2100 H and stores the converted<br />

data automatically.<br />

PLC converts ASCII codes in 2101 H and stores the converted<br />

data automatically.<br />

PLC converts ASCII codes in 2102 H and stores the converted<br />

data automatically.<br />

PLC converts ASCII codes in 2103 H and stores the converted<br />

data automatically.<br />

PLC converts ASCII codes in 2104 H and stores the converted<br />

data automatically.<br />

3-342

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

Saved successfully!

Ooh no, something went wrong!