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

Program Example 4: COM2 RS-485

1.Connect PLC to VFD-B series AC motor drives (AC motor drive in RTU Mode; PLC in 16-bit mode and M1161 = ON).

2.Write the data to be sent into registers starting from D100 in advance. Write H12 (Forward

running) into H2000 (VFD-B parameter address).

M1002

 

D1120 Set up communication protocol as 9600,7,E,1

 

 

 

 

 

MOV

H86

 

 

 

 

 

 

 

 

 

 

SET

M1120

Retain communication protocol

 

 

 

 

 

 

 

 

 

 

MOV

K100

D1129

Set up communication time-out as 100ms

 

 

 

 

 

 

 

 

 

 

SET

M1161

8-bit mode

 

 

 

 

 

 

 

Pulse for

 

 

 

 

sending request

 

 

 

 

 

 

 

 

 

Write transmitting data in advance

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1122

Sending request

 

 

 

 

 

 

 

X0

 

 

 

 

 

 

 

 

 

RS

D100

K8

D120

K8

 

 

 

 

 

M1123

 

 

 

 

 

 

 

 

 

Processing Received data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

M1123

Reset M1123.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PLC Ö VFD-B, PLC sends: 01 06 2000 0012 02 07

VFD-B Ö PLC, PLC receives: 01 06 2000 0012 02 07

Registers for sent data (PLC sends out messages)

Register

Data

Explanation

D100 low

01 H

Address

D101 low

06 H

Function

D102 low

20 H

Data address

D103 low

00 H

 

D104 low

00 H

Data content

D105 low

12 H

 

D106 low

02 H

CRC CHK Low

D107 low

07 H

CRC CHK High

Registers for received data (VFD-B responds with messages)

Register

Data

Explanation

D120 low

01 H

Address

D121 low

06 H

Function

D122 low

20 H

Data address

D123 low

00 H

 

D124 low

00 H

Data content

D125 low

12 H

 

D126 low

02 H

CRC CHK Low

D127 low

07 H

CRC CHK High

3 - 208

Page 324
Image 324
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Program Example 4 COM2 RS-485