3. Instruction Set

Registers for data to be sent (sending messages)

 

Register

Data

 

Descriptions

 

D1256

01 H

Address

 

 

 

 

 

 

 

 

 

D1257

0F H

Function

 

 

 

 

 

 

 

 

 

D1258

05 H

Data Address

 

 

 

 

 

 

 

 

D1259

00 H

 

 

 

 

 

 

 

 

 

 

 

 

 

D1260

00 H

Number of Data(count by bit)

 

 

 

 

D1261

10 H

 

 

 

 

 

 

 

 

 

 

 

D1262

02 H

Byte Count

 

 

 

 

 

 

 

 

 

D1263

34 H

Data content 1

 

Content of D0: H34

 

 

 

 

 

 

 

D1264

12 H

Data content 2

 

Content of D1: H12

 

 

 

 

 

 

 

D1265

21 H

CRC CHK Low

 

 

 

 

 

 

 

 

 

D1266

ED H

CRC CHK High

 

 

 

 

 

 

 

 

Registers for received data (responding messages)

 

 

 

 

Register

Data

Descriptions

 

 

 

D1070

01 H

Address

 

 

 

 

 

 

 

 

 

D1071

0F H

Function

 

 

 

 

 

 

 

 

 

D1072

05 H

Data Address

 

 

 

 

 

 

 

 

D1073

00 H

 

 

 

 

 

 

 

 

 

 

 

 

D1074

00 H

Number of Data(count by bit)

 

 

 

 

 

 

 

 

D1075

10H

 

 

 

 

 

 

 

 

 

 

 

 

D1076

54H

CRC CHK Low

 

 

 

 

 

 

 

 

 

D1077

CB H

CRC CHK High

 

 

 

 

 

 

Program example 10: COM1 (RS-232) / COM3 (RS-485), Function Code H0F

1.

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

2.

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

3.

PLC COM1/COM3 will not process the received data.

4.

Take the connection between PLC1 (PLC COM3) 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

z If PLC applies COM1 for communication, the below program can be usable by changing: 1. D1109→D1036: communication protocol

2. M1136→M1138: retain communication setting

3 - 3 5 3

Page 469
Image 469
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Ed H, Cb H