3. Instruction Set

RTU mode (M1143 = ON)

When X0 = ON, MODRW instruction executes the function specified by Function Code 06 PLC Ö VFD-B, PLC sends: “01 06 2000 1770 8C 1E”

VFD-B PLC, PLC receives: “01 06 2000 1770 8C 1E

Registers for data to be sent (sending messages)

Register

Data

 

 

Descriptions

D1256 Low byte

01 H

Address

 

 

 

 

 

 

D1257 Low byte

06 H

Function

 

 

 

 

 

 

D1258 Low byte

20 H

Data Address

 

 

 

 

D1259 Low byte

00 H

 

 

 

 

 

 

 

 

 

D1260 Low byte

17 H

Data

 

H1770 = K6000.

D1261 Low byte

70 H

content

 

The content of register D50

 

 

 

 

 

D1262 Low byte

8C H

CRC CHK Low

 

 

 

 

D1263 Low byte

1E H

CRC CHK High

 

 

 

 

 

Registers for received data (responding messages)

Register

Data

Descriptions

D1070 Low byte

01 H

Address

 

 

 

D1071 Low byte

06 H

Function

 

 

 

D1072 Low byte

20 H

Data Address

 

 

D1073 Low byte

00 H

 

 

 

 

D1074 Low byte

17 H

Data content

 

 

D1075 Low byte

70 H

 

 

 

 

D1076 Low byte

8C H

CRC CHK Low

 

 

 

D1077 Low byte

1E H

CRC CHK High

 

 

 

Program example 8: COM1 (RS-232) / COM3 (RS-485), Function Code H06

1.Function code K6 (H06): Write in single Word device.

2.Set the value to be written into VFD-B in the register specified by operand S.

3.PLC COM1/COM3 will not process the received data.

4.Take the connection between PLC (PLC COM3) and VFD-B for example, the tables below explains the status when PLC COM3 writes in single Word device in VFD-B (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

3 - 3 4 9

Page 465
Image 465
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual RTU mode M1143 = on