3. Instruction Set

a)Range of S1: K1 ~ K255

b)The instruction will read VFD status at parameter address 2100H~2104H (Please refer to user manual of specific VFD for details.) and store the feedback data in D1070~D1074. However, the content in D1070~D1074 will not be updated when receiving error or timeout occurs. Therefore, please check the status of receiving completed flag before applying the received data

Program Example: COM2 (RS-485)

1.Communication between PLC and VFD-B series inverter (ASCII Mode, M1143 = OFF). Retry when communication time-out occurs.

2.Read VFD status at parameter address 2100H~2104H and store the received data in D1070 ~ D1074.

M1002

 

 

Set up communication protocol as

 

 

 

 

MOV

H86

D1120

 

 

 

 

9600, 7, E, 1

 

 

 

 

 

 

 

 

 

 

 

SET

M1120

Retain communication protocol

 

 

 

 

 

 

 

 

MOV

K100

D1129

Set up communication time-out: 100ms

 

 

 

 

 

X0

 

 

 

M1129

SET M1122 Sending request

Retry when communication time-out occurs

X0

 

 

Communication instruction setting:

 

 

 

 

RDST

K1

K0

Device address: 1

 

 

 

 

 

 

 

 

Receiving completed

 

 

K0: Reserved

 

 

 

M1127

 

 

The received data is stored in

 

 

 

 

Processing received data

 

 

 

 

 

 

 

 

RST

 

 

D1070 ~ D1074.

 

 

 

 

M1127

Reset M1127.

 

 

 

 

PLC VFD-B, PLC sends: “:01 03 2100 0005 D6

VFD-B PLC, PLC receives: “:01 03 0A 00C8 7C08 3E00 93AB 0000 2A ”

Data to be sent (sending messages)

 

Data

 

Descriptions

‘0’

 

30 H

ADR 1

AC drive address : ADR (1,0)

 

 

 

 

‘1’

 

31 H

ADR 0

 

 

 

 

 

 

 

‘0’

 

30 H

CMD 1

Command code: CMD (1,0)

 

 

 

 

‘3’

 

33 H

CMD 0

 

 

 

 

 

 

 

2’

 

32 H

 

 

 

 

 

 

 

‘1’

 

31 H

Starting data address

 

 

 

‘0’

 

30 H

 

 

 

 

 

 

 

 

‘0’

 

30 H

 

 

 

 

 

 

 

3 - 2 8 5

Page 401
Image 401
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Range of S1 K1 ~ K255