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

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

MOV<br />

K100<br />

D1252<br />

Set receiving timeout as 100ms<br />

X0<br />

X0<br />

M1320 = ON<br />

RST M1320<br />

ASCII mode<br />

SET M1320<br />

SET<br />

MODRW<br />

M1316<br />

K1<br />

Sending request<br />

K6<br />

H2000 D50 K1<br />

M1320 = OFF<br />

RTU mode<br />

Receiving completed<br />

M1318<br />

Received data<br />

Data length<br />

Data register: D50=H1770<br />

Data address: H2000<br />

Function code: K6<br />

Write in single Word data<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 instruction executes the function specified by Function Code 06<br />

PLC VFD-B, PLC sends: “01 06 2000 1770 52”<br />

VFD-B PLC, PLC receives: “01 06 2000 1770 52”<br />

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

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

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

PLC VFD-B, PLC sends: “01 06 2000 1770 8C 1E”<br />

VFD-B → PLC, PLC receives: “01 06 2000 1770 8C 1E”<br />

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

Program Example 9: COM2 (RS-485), Function Code H0F<br />

1. Function code K15 (H0F): write in multiple bit devices. Up to 64bits can be written.<br />

2. PLC1 connects to PLC2: (M1143 = OFF, ASCII Mode), (M1143 = ON, RTU Mode)<br />

3. For ASCII or RTU mode, PLC COM2 stores the data to be sent in D1256~D1295 and the<br />

received data in D1070~D1085.<br />

3-350

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

Saved successfully!

Ooh no, something went wrong!