3. Instruction Set

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

M1002

MOV H87

SET M1120

MOV K100

RST M1143

X0

SET M1122

X0

MODRW K1

Receiving completed

M1127

D1120 Set communication protocol as 9600, 8, E, 1

Retain communication protocol

D1129 Set receiving timeout as 100ms

 

 

M1143 = OFF

 

 

SET

M1143

M1143 = ON

ASCII mode

 

 

RTU mode

 

 

 

 

Sending request

 

 

 

 

 

K15

H0500

D0

K16

 

 

Data length(bit) Data storing register Data address: H0500

Function code: K15

Write in multiple bit devices

Connection device address: K1

Processing received data

ASCII mode: The received data is stored in D1070~D1085 in ASCII format.

RTU mode: The received data is stored in D1070~D1085 in Hex format.

RST

M1127 Reset M1127

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

Device address: ADR (1,0)

D1256

‘1’

 

31 H

ADR 0

 

 

D1257

‘0’

 

30 H

CMD 1

Control parameter: CMD (1,0)

D1257

‘F’

 

46 H

CMD 0

 

 

D1258

‘0’

 

30 H

 

 

D1258

‘5’

 

35 H

Data Address

 

 

 

 

 

 

D1259

‘0’

 

30 H

 

 

 

 

 

 

 

 

 

 

D1259

‘0’

 

30 H

 

 

 

 

 

 

 

 

3 - 3 5 1

Page 467
Image 467
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual D1256 下 ‘0’ 30 H