DVP - ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

5.M1316→M1312: sending request

6.M1318→M1314: receiving completed flag

M1002

 

 

 

 

 

 

MOV

H87

D1109

Set communication protocol as 9600,8,E,1

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1136

Retain communication setting

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

K100

D1252

Set receiving timeout as 100ms

 

M1320 = OFF

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

M1320

M1320 = ON

 

 

 

 

SET

M1320

 

 

 

 

 

 

ASCII mode

 

 

 

 

RTU mode

 

X0

 

 

 

 

 

 

 

 

 

 

 

 

 

Sending request

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1316

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X0

 

 

K6

H2000

D50

K1

 

 

 

 

 

 

 

 

MODRW

K1

Data length

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data register: D50=H1770

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data address: H2000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Function code: K6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Write in single Word data

Receiving completed

 

 

 

 

 

 

 

 

 

 

 

 

 

Connection device

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

address: K1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M1318

Received data

ASCII mode: No processing on received data .

RTU mode: No processing on received data .

RST

M1318 Reset M1318

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.

3 - 350

Page 466
Image 466
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Ascii mode COM3 M1320 = OFF, COM1 M1139 = OFF