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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<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 receiving timeout as 100ms<br />

X0<br />

X0<br />

RST M1320<br />

M1320 = OFF,<br />

SET M1320<br />

ASCII mode<br />

SET<br />

MODRW<br />

M1316<br />

K1<br />

Sending request<br />

K2<br />

H0500 D0 K16<br />

M1320 = ON<br />

RTU mode<br />

Receiving completed<br />

M1318<br />

Processing received data<br />

Data length(bit)<br />

Data st oring register<br />

Data address: Y0=H0500<br />

Function code: K2<br />

read multiple bits<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 02<br />

PLC1 PLC2, PLC1 sends: “01 02 0500 0010 E8”<br />

PLC2 PLC1, PLC1 receives: “01 02 02 3412 B5”<br />

PLC1 data receiving register D0<br />

Register Data Descriptions<br />

D0<br />

1234H<br />

PLC converts the ASCII data in address 0500H~0515H and<br />

stores the converted data automatically.<br />

Analysis of the read status of PLC2 Y0~Y17: 1234H<br />

Device Status Device Status Device Status Device Status<br />

Y0 OFF Y1 OFF Y2 ON Y3 OFF<br />

Y4 ON Y5 ON Y6 OFF Y7 OFF<br />

Y10 OFF Y11 ON Y12 OFF Y13 OFF<br />

Y14 ON Y15 OFF Y16 OFF Y17 OFF<br />

• RTU mode (COM3: M1320 = ON, COM1: M1139 = ON):<br />

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

PLC1 PLC2, PLC1 sends: “01 02 0500 0010 79 0A”<br />

PLC2 PLC1, PLC1 receives: “01 02 02 34 12 2F 75”<br />

3-336

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

Saved successfully!

Ooh no, something went wrong!