beautypg.com

Delta DVP-ES2 User Manual

Page 324

background image

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

3-208

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).

MOV

D1120

H86

M1002

SET

M1120

SET

M1122

MOV

D1129

K100

X0

M1123

RST

M1123

RS

D100

K8

D120

K8

SET

M1161

Processing Received data

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

Retain communication protocol

Set up communication time-out as 100ms

8-bit mode

Pulse for
sending request

Write transmitting data in advance

Sending request

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

D103 low

00 H

Data address

D104 low

00 H

D105 low

12 H

Data content

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

D123 low

00 H

Data address

D124 low

00 H

D125 low

12 H

Data content

D126 low

02 H

CRC CHK Low

D127 low

07 H

CRC CHK High

This manual is related to the following products: