DVP - ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

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

M1002

 

 

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

 

 

 

 

 

 

 

 

 

MOV

H87

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1120

Retain communication protocol

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

K100

D1129

Set communication timeout as 100ms

M1143 = ON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

M1143

M1143 = OFF

 

 

 

SET

M1143

 

 

 

 

 

 

 

 

 

ASCII mode

 

 

 

RTU mode

 

X0

 

 

 

 

 

 

 

 

 

 

M1122

Sending request

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X0

 

 

 

 

H2100

D0

K6

 

 

 

 

 

 

 

 

 

 

 

 

MODRW

K1

K3

 

Data length(word)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data storing register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data address: H2100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Function code: K3

Receiving completed

 

 

 

 

 

 

 

 

 

 

 

 

read multiple words

 

 

 

 

 

 

 

 

 

 

 

 

Connection device

M1127

 

 

 

 

 

 

 

 

 

 

 

 

address: K1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Processing received data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ASCII mode : The received ASCII data is stored in registers starting from D0 and PLC converts the ASCII data to Hex value and stores them in D1296~D1301 automatically.

RTU mode : The received data is stored in registers starting from D0 in Hex value.

RST

M1127 Reset M1127

ASCII mode (M1143 = OFF):

When X0 = ON, MODRW instruction executes the function specified by Function Code 03 PLC Ö VFD-B, PLC sends: “01 03 2100 0006 D5”

VFD-B Ö PLC, PLC receives: “01 03 0C 0100 1766 0000 0000 0136 0000 3B”

Registers for data to be sent (sending messages)

Register

 

Data

 

Descriptions

D1256

Low byte

‘0’

 

30 H

ADR 1

Address of VFD-B: ADR (1,0)

 

 

 

 

 

 

D1256

High byte

‘1’

 

31 H

ADR 0

 

 

 

 

 

 

 

 

D1257 Low byte

‘0’

 

30 H

CMD 1

Control parameter: CMD (1,0)

 

 

 

 

 

 

D1257

High byte

‘3’

 

33 H

CMD 0

 

 

 

 

 

 

 

 

 

D1258

Low byte

‘2’

 

32 H

 

 

 

 

 

 

 

 

 

D1258

High byte

‘1’

 

31 H

Data Address

 

 

 

 

 

D1259

Low byte

‘0’

 

30 H

 

 

 

 

 

 

 

 

 

 

D1259

High byte

‘0’

 

30 H

 

 

 

 

 

 

 

 

 

3 - 338

Page 454
Image 454
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual D1256 Low byte ‘0’ 30 H