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

Program Example 1:

Communication between PLC and VFD-B series AC motor drives (ASCII Mode, M1143 = OFF)

M1002

X1

X0

M1127

Receiving completed

MOV

H87

D1120

Set communication protocol as 9600, 8, E, 1

SET

M1120

Retain communication protocol

MOV

K100

D1129

Set receiving timeout as 100ms

SET

M1122

Sending request

MODWR

K1

H0100

H1770

 

 

 

 

 

 

 

Set communication instruction:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data: H1770

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data address: H0100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Device address: 01

 

 

 

 

 

 

 

Processing received data

The received data is stored in

D1070~D1085 in ASCII format.

 

 

RST

M1127 Reset M1127

PLC VFD-B, PLC transmits: “01 06 0100 1770 71 ”

VFD-B PLC, PLC receives: “01 06 0100 1770 71 ”

Registers for data to be sent (sending messages)

Register

 

Data

 

Descriptions

D1089 low

‘0’

 

30 H

ADR 1

Address of AC motor drive: ADR

D1089 high

‘1’

 

31 H

ADR 0

(1,0)

 

 

 

 

 

 

D1090 low

‘0’

 

30 H

CMD 1

Command code of AC motor

D1090 high

‘6’

 

36 H

CMD 0

drive: CMD (1,0)

 

 

 

 

 

 

D1091 low

‘0’

 

30 H

 

 

 

 

 

 

 

 

D1091 high

‘1’

 

31 H

Data address

 

 

 

 

 

 

D1092 low

‘0’

 

30 H

 

 

 

 

 

 

 

 

 

 

D1092 high

‘0’

 

30 H

 

 

 

 

 

 

 

 

D1093 low

‘1’

 

31 H

 

 

 

 

 

 

 

 

D1093 high

‘7’

 

37 H

Data contents

 

 

 

 

 

 

D1094 low

‘7’

 

37 H

 

 

 

 

 

 

 

 

 

 

D1094 high

‘0’

 

30 H

 

 

 

 

 

 

 

 

D1095 low

‘7’

 

37 H

LRC CHK 1

Checksum: LRC CHK (0,1)

 

 

 

 

 

D1095 high

‘1’

 

31 H

LRC CHK 0

 

 

 

 

 

 

 

 

3 - 274

Page 390
Image 390
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual D1089 low ‘0’ 30 H