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

3. D1252→D1249: Set value for data receiving timeout<br />

4. M1320→M1139: ASCII/RTU mode selection<br />

5. M1316→M1312: sending request<br />

6. M1318→M1314: receiving completed flag<br />

M1002<br />

MOV<br />

H87<br />

D1109<br />

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

SET<br />

M1136<br />

Retain communication protocol<br />

MOV<br />

K100<br />

D1252<br />

Set receiving timeout as 100ms<br />

X0<br />

RST<br />

SET<br />

M1320<br />

M1316<br />

M1320 = OFF<br />

ASCII mode<br />

Sending request<br />

SET<br />

M1320<br />

M1320 = ON<br />

RTU mode<br />

X0<br />

MODRW<br />

K1<br />

K15<br />

H0500 D0 K16<br />

Receiving completed<br />

M1318<br />

Received data<br />

Data length(bit)<br />

Data storing register<br />

Data address: H0500<br />

Function code: K15<br />

Write in multiple bit devices<br />

Connection device<br />

address: K1<br />

ASCII mode: No processing on received data .<br />

RTU mode: No processing on received data .<br />

RST<br />

M1318<br />

Reset M1318<br />

ASCII mode (COM3: M1320 = OFF, COM1: M1139 = OFF):<br />

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

PLC1 PLC2, PLC sends: “ 01 0F 0500 0010 02 3412 93 ”<br />

PLC2 PLC1, PLC receives: “ 01 0F 0500 0010 DB ”<br />

(No data processing on received data)<br />

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

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

PLC1 PLC2, PLC1 sends: “01 0F 0500 0010 02 34 12 21 ED”<br />

PLC2 PLC1, PLC1 receives: “01 0F 0500 0010 54 CB” ,<br />

(No data processing on received data)<br />

3-354

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

Saved successfully!

Ooh no, something went wrong!