beautypg.com

Delta DVP-ES2 User Manual

Page 466

background image

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

3 - 3 5 0

5. M1316→M1312: sending request

6. M1318→M1314: receiving completed flag

H8 7

MOV

M 1002

D1109

SET

M 1136

K100

M OV

D1 252

M ODRW

K6

K1

X0

H200 0

D50

K1

Connection device
address: K1

Function code: K6
Write in single Word data

Data address: H2000

Data register: D50=H1770

Data length

SET

X0

M 1316

RST

M1320

SET

M1320

M1320 = ON
ASCII mode

Set communication protocol as 9600,8,E, 1

Retain communication setting

Set receiving t imeout as 100ms

Sending request

M1320 = OFF
RTU

mode

RST

M 1318

M 1318

Reset M1318

ASCII m ode: No processing on received data .

RTU mode: No processing on received data .

Received data

Receiving completed

ASCII mode (COM3: M1320 = OFF, COM1: M1139 = OFF):

When X0 = ON, MODRW instruction executes the function specified by Function Code 06

PLC

Ö VFD-B, PLC sends: “01 06 2000 1770 52”

VFD-B

Ö PLC, PLC receives: “01 06 2000 1770 52”

(No data processing on received data)

RTU mode (COM3: M1320 = ON, COM1: M1139 = ON)

When X0 = ON, MODRW instruction executes the function specified by Function Code 06

PLC

Ö VFD-B, PLC sends: “01 06 2000 1770 8C 1E”

VFD-B

→ PLC, PLC receives: “01 06 2000 1770 8C 1E

(No data processing on received data)

Program Example 9: COM2 (RS-485), Function Code H0F

1.

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

2.

PLC1 connects to PLC2: (M1143 = OFF, ASCII Mode), (M1143 = ON, RTU Mode)

3.

For ASCII or RTU mode, PLC COM2 stores the data to be sent in D1256~D1295 and the

received data in D1070~D1085.

This manual is related to the following products: