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

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 = ON

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

M1320

M1320 = OFF,

 

 

 

SET

M1320

 

 

 

 

 

 

 

ASCII mode

 

 

 

RTU mode

 

X0

 

 

 

 

 

 

 

 

 

 

 

 

Sending request

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1316

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X0

 

 

K2

H0500

D0

K16

 

 

 

 

 

 

 

 

 

 

MODRW

K1

 

Data length(bit)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data storing register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data address: Y0=H0500

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Function code: K2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

read multiple bits

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Connection device

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Receiving completed

 

 

 

 

 

 

 

 

 

 

 

 

address: K1

M1318

Processing received data

ASCII mode: The received data is converted to Hex value and stored in registers starting from D0

RTU mode: The received data is stored in registers starting from D0

RST

M1318 Reset M1318

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

When X0 = ON, MODRW instruction executes the function specified by Function Code 02 PLC1Ö PLC2, PLC1 sends: “01 02 0500 0010 E8

PLC2 ÖPLC1, PLC1 receives: “01 02 02 3412 B5

PLC1 data receiving register D0

Register

Data

 

 

Descriptions

 

 

D0

1234H

PLC converts the ASCII data in address 0500H~0515H and

stores the converted data automatically.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Analysis of the read status of PLC2 Y0~Y17: 1234H

 

 

 

 

 

 

 

 

 

 

 

 

Device

 

Status

Device

Status

Device

Status

Device

Status

Y0

 

OFF

Y1

OFF

Y2

ON

Y3

OFF

Y4

 

ON

Y5

ON

Y6

OFF

Y7

OFF

 

 

 

 

 

 

 

 

 

Y10

 

OFF

Y11

ON

Y12

OFF

Y13

OFF

 

 

 

 

 

 

 

 

 

Y14

 

ON

Y15

OFF

Y16

OFF

Y17

OFF

 

 

 

 

 

 

 

 

 

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

When X0 = ON, MODRW instruction executes the function specified by Function Code 02 PLC1 Ö PLC2, PLC1 sends: “01 02 0500 0010 79 0A

PLC2 Ö PLC1, PLC1 receives: “01 02 02 34 12 2F 75

3 - 336

Page 452
Image 452
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Mov