3. Instruction Set

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Register

Data

 

Descriptions

 

 

D6 low byte

03 H

address H2101

 

PLC COM2 automatically

 

 

 

 

store the value in D1297

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D7 low byte

0B H

Content of

 

0BB8 H

 

 

 

 

 

 

 

 

 

PLC COM2 automatically

 

 

 

 

address H2102

 

 

 

D8 low byte

B8 H

 

 

stores the value in D1298

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D9 low byte

0B H

Content of

 

0BB8 H

 

 

 

 

 

 

 

 

 

PLC COM2 automatically

 

 

 

 

address H2103

 

 

 

D10 low byte

B8 H

 

 

store the value in D1299

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D11 low byte

00 H

Content of

 

0000 H

 

 

 

 

 

 

 

 

 

PLC COM2 automatically

 

 

 

 

address H2104

 

 

 

D12 low byte

00 H

 

 

store the value in D1300

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D13 low byte

01 H

Content of

 

012D H

 

 

 

 

 

 

 

 

 

PLC COM2 automatically

 

 

 

 

address H2105

 

 

 

D14 low byte

2D H

 

 

store the value in D1301

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D15 low byte

8E H

CRC CHK Low

 

 

 

 

 

 

 

 

 

 

 

D16 low byte

C5 H

CRC CHK High

 

 

 

 

 

 

 

 

 

 

Program example 4: COM1(RS-232) / COM3(RS-485), Function Code H03

1.Function code K3 (H03): read multiple Word devices, up to 16 words can be read. For COM2 ASCII mode, only 8 words can be read..

2.PLC COM1 / COM3 stores the received data in registers starting from S, and the stored data can be transformed and moved by using DTM instruction for applications of other purposes.

3.Take the connection between PLC and VFD-B for example, the tables below explains the status when PLC reads VFD-B status. (M1320 = OFF, ASCII Mode ), (M1320 = ON, RTU Mode)

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.D1252→D1249: Set value for data receiving timeout

4.M1320→M1139: ASCII/RTU mode selection

5.M1316→M1312: sending request

6.M1318→M1314: receiving completed flag

3 - 3 4 1

Page 457
Image 457
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Program example 4 COM1RS-232 / COM3RS-485, Function Code H03