beautypg.com

Delta DVP-ES2 User Manual

Page 467

background image

3 . I n s t r u c t i o n S e t

3 - 3 5 1

4.

Take the connection between PLC1 (PLC COM2) and PLC2 (PLC COM1) for example, the

tables below explain the status when PLC1 force ON/OFF Y0~Y17 of PLC2.

Set value: K4Y0=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

H87

MOV

M1002

D1120

SET

M1120

K100

MOV

D1129

RST

M1127

Set communication protocol as 9600, 8, E, 1

Retain communication protocol

Set receiving timeout as 100ms

MODRW

K15

K1

X0

H0500

D0

K16

Connection device
address: K1

Function code: K15
Write in multiple bit devices

Data address: H0500

Data storing register

Data length(bit)

Processing received data

ASCII mode: The received data is stored in

in ASCII format.

D1070~D1085

RTU mode: The received data is stored in D1070~

in Hex format.

D1085

Reset M1127

M1127

SET

X0

M1122

Sending request

M1143 = OFF
ASCII mode

RST

M1143

M1143 = ON
RTU mode

SET

M1143

Receiving completed

ASCII mode (M1143 = OFF)

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

PLC1

Ö PLC2, PLC sends: “ 01 0F 0500 0010 02 3412 93

PLC2

Ö PLC1, PLC receives: “ 01 0F 0500 0010 DB

Registers for data to be sent (sending messages)

Register

Data

Descriptions

D1256 下

‘0’

30 H

ADR 1

D1256 上

‘1’

31 H

ADR 0

Device address: ADR (1,0)

D1257 下

‘0’

30 H

CMD 1

D1257 上

‘F’

46 H

CMD 0

Control parameter: CMD (1,0)

D1258 下 ‘0’ 30

H

D1258 上 ‘5’ 35

H

D1259 下 ‘0’ 30

H

D1259 上 ‘0’ 30

H

Data Address

This manual is related to the following products: