3. Instruction Set

Program Example 1:

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

M1002

MOV

H87

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1120

Retain communication protocol

 

 

 

 

 

 

 

 

 

 

 

 

MOV

K100

D1129 Set receiving time-out as 100ms

X1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1122

Sending request

 

 

 

 

 

 

 

 

 

 

 

 

X0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MODRD

K1

H2101

K6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Set communication instruction:

 

 

 

 

 

 

 

 

 

 

 

 

 

Data length: 6 words

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data address: H2101

 

 

 

 

 

 

 

 

 

 

 

 

 

M1127

 

 

 

 

 

 

 

Device address: 01

 

 

 

 

 

 

 

 

 

 

 

PLC converts the received ASCII data in

 

 

 

 

 

 

Processing received data D1070~D1085 into Hex data and stores them

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

into D1050~D1055

Receiving

 

 

RST

M1127

Reset M1127

 

completed

 

 

 

 

 

 

 

 

PLC VFD-B , PLC transmits: “01 03 2101 0006 D4”

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

D1089 low byte

‘0’

 

30 H

ADR 1

Address of AC motor drive:

D1089 high byte

‘1’

 

31 H

ADR 0

ADR (1,0)

 

 

 

 

 

 

 

D1090 low byte

‘0’

 

30 H

CMD 1

Command code: CMD (1,0)

 

 

 

 

 

D1090 high byte

‘3’

 

33 H

CMD 0

 

 

 

 

 

 

 

 

 

 

D1091 low byte

2’

 

32 H

 

 

 

 

 

 

 

 

 

 

D1091 high byte

‘1’

 

31 H

Starting data address

 

 

 

 

D1092 low byte

‘0’

 

30 H

 

 

 

 

 

 

 

 

 

 

 

D1092 high byte

‘1’

 

31 H

 

 

 

 

 

 

 

 

 

 

D1093 low byte

‘0’

 

30 H

 

 

 

 

 

 

 

 

 

 

D1093 high byte

‘0’

 

30 H

Number of data (count by word)

 

 

 

 

D1094 low byte

‘0’

 

30 H

 

 

 

 

 

 

 

 

 

 

 

D1094 high byte

‘6’

 

36 H

 

 

 

 

 

 

 

 

 

 

D1095 low byte

‘D’

 

44 H

LRC CHK 1

 

Checksum: LRC CHK (0,1)

 

 

 

 

 

 

D1095 high byte

‘4’

 

34 H

LRC CHK 0

 

 

 

 

 

 

 

 

 

 

3 - 2 6 9

Page 385
Image 385
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Register Data Descriptions, Modrd