3. Instruction Set

Program Example:

Connect PLC to VFD series AC motor drive (ASCII mode, M1143 = OFF), (8-bit mode, M1161 = ON), Write the data to be sent into registers starting from D100 in advance for reading 6 data from address H0708 on VFD.

M1002

MOV

H86

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

SET

M1120

Retain communication protocol

MOV

K100

D1129 Set up communication time-out: 100ms

Sending request pulse

pulse

Write data to be sent in advance

SET M1122 Sending request

X10

 

 

 

 

RS

D100

K17

D120

K35

Receiving completed

M1123

Processing received data

RST M1123 Reset M1123

PLC VFD, PLC sends: “: 01 03 07

08 0006 E7 CR LF ”

 

 

Registers for sent data (sending messages)

 

 

 

 

 

 

 

 

 

 

 

 

Register

Data

 

 

 

Explanation

 

 

 

 

 

 

 

 

 

D100 low byte

‘: ’

 

3A H

STX

 

 

 

D101 low byte

‘0’

 

30

H

ADR 1

 

Address of AC motor

 

D102 low byte

‘1’

 

31

H

ADR 0

 

drive: ADR (1,0)

 

D103 low byte

‘0’

 

30 H

CMD 1

 

Command code:

 

D104 low byte

‘3’

 

33

H

CMD 0

 

CMD (1,0)

 

D105 low byte

‘0’

 

30

H

 

 

 

 

D106 low byte

‘7’

 

37

H

Starting data address

 

D107 low byte

‘0’

 

30

H

 

 

 

 

 

 

D108 low byte

‘8’

 

38

H

 

 

 

 

D109 low byte

‘0’

 

30

H

 

 

 

 

D110 low byte

‘0’

 

30

H

Number of data (words)

 

D111 low byte

‘0’

 

30

H

 

 

 

 

 

 

D112 low byte

‘6’

 

36

H

 

 

 

 

D113 low byte

‘E’

 

45 H

LRC CHK 0

 

Error checksum: LRC

 

D114 low byte

‘7’

 

37 H

LRC CHK 1

 

CHK (0,1)

 

D115 low byte

CR

 

D H

END

 

 

 

D116 low byte

LF

 

A H

 

 

 

 

 

 

 

The error checksum LRC CHK (0, 1) can be calculated by LRC instruction (8-bit mode, M1161 = ON).

M1000

LRC

D101

K12

D113

3 - 2 9 1

Page 407
Image 407
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual 08 0006 E7 CR LF, Register Data Explanation