Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
12.1 Communication between PLC and Delta VFD-M Series AC Motor Drive
(MODRD/MODWR)
Control Purpose:
z Repeatedly reading the master frequency and output frequency of VFD-M series AC motor
drive then store them in D0 and D1 by MODRD instruction.
z Repeatedly setting the running direction and running frequency by MODWR instruction. For
example, setting the AC motor drive to run forward in 40Hz.
Ú If AC motor drive can not run normally due to improper parameters, users can set P76 = 10
(factory defaults) and then set the parameters according to the above table.
Devices:
Device Function
M0 Executing MODRD instruction to read master and output frequency.
M1 Executing the first MODWR instruction to set the running direction
M2 Executing the second MODWR instruction to set the running frequency
D10 Set value of the drive running direction.
D11 Set value of the drive running frequency.
Control Program:
M1002
Set communication
MOV H86 D1120
format: 9600, 7, E,1l
LD= C0 K3 RST C0
M0
SET M1122 Sending request
M1
M2
M0
MODRD K1 H2102 K2
M1141
C0 counts once
CNT C0 K10 when parameter error
occurs.
.
RST M1141 Reset the flag M1141
M1000
MOV D1050 D0
MOV D1051 D1
Program Description:
z Initialize PLC RS-485 communication port and set the communication format as MODBUS
ASCII, 9600, 7, E, 1. The RS-485 communication format of AC motor drive should be the
same with PLC.
z There are only 4 situations for MODBUS communication: flag M1127 for normal
communication and M1129, M1140, M1141 for communication errors. Counter C0 counts
once when any of the 4 flags is ON. Therefore, the program assures the communication
reliability by monitoring the On/Off status of the 4 flags and performs 3 MODBUS
instructions in order by the value in counter C0.
z When M0 = ON, [MODRD K1 H2102 K2] instruction will be executed. PLC will read the
master frequency and output frequency of AC motor drive, store them in D1073~1076 in
ASCII format, and automatically convert the content in D1073~1076 into hexadecimal
values to D1050 and D1051.
z When M1 = ON, [MODWR K1 H2000 D10] instruction will be executed. D10 = H12 and the
drive will run forward. The running direction can be changed by the content in D10.
z When M2 = ON, [MODWR K1 H2001 D11] instruction will be executed. D11 = K4000 and
the drive running frequency will be 40Hz. The frequency can be changed by the content in
D11.
z On the bottom of this program, [MOV D1050 D0] instruction stores the master frequency of
the drive in D0, and [MOV D1051 D1] instruction stores the output frequency of the drive in
D1.
z Once PLC starts running, the read/write actions for AC motor drive will be performed
repeatedly according to [LD=] instructions.
12.2 Communication between PLC and Delta VFD-B Series AC Motor Drive
(MODRD/MODWR)
Control Purpose:
z Repeatedly reading the master frequency and output frequency of VFD-B series AC motor
drive by MODRD instruction.
z Start AC motor drive in reverse direction when Start is pressed. Increase 1Hz per second
until it reaches 50Hz. Maintain the frequency at 50Hz. (MODWR instruction)
z Stop AC motor drive by when Stop is pressed. (MODWR instruction)
Ú If AC motor drive can not run normally due to improper parameters, users can set P00-02 =
10 (factory defaults) and then set the parameters according to the above table.
Devices:
Device Function
Control Program:
M1002
Set communication
MOV H99 D1120 format: 19200, 8, N, 2
RST D2 Reset D2
M1013 M11 M10
ADD D2 K100 D2
LD= C0 K3 RST C0
M0
SET M1122 Sending request
M1
M2
M0
MODRD K1 H2102 K2
Program Description:
z Initialize PLC RS-485 communication port and set the communication format as MODBUS
RTU, 19200, 8, N, 2. The RS-485 communication format of AC motor drive should be the
same with PLC.
z There are only 4 situations for MODBUS communication: flag M1127 for normal
communication and M1129, M1140, M1141 for communication errors. Counter C0 counts
once when any of the 4 flags is ON. Therefore, the program assures the communication
reliability by monitoring the On/Off status of the 4 flags and performs 3 MODBUS
instructions in order by the value in counter C0.
z When M0 = ON, [MODRD K1 H2102 K2] instruction will be executed. PLC will read the
master frequency and output frequency of AC motor drive, store them in D1073~1076 in
ASCII format, and automatically convert the content in D1073~1076 into hexadecimal
values to D1050 and D1051.
z When M1 = ON, [MODWR K1 H2000 D10] instruction will be executed. D10 = H22 and the
drive will run in reverse. If D10 = H1, the drive will be stopped.
z When M2 = ON, [MODWR K1 H2001 D2] instruction will be executed. The frequency can be
changed by the content in D2.
z Once PLC starts running, the read/write actions for AC motor drive will be performed
repeatedly according to [LD=] instructions.
12.3 Communication between PLC and Delta VFD-V Series AC Motor Drive
(MODRD/MODWR)
Control Purpose:
z Repeatedly reading the master frequency and output frequency of VFD-V series AC motor
drive by MODRD instruction.
z Setting the drive to run forward in 30Hz by MODRW instruction when X0 is pressed.
z Setting the drive to run in reverse in 20Hz by MODRW instruction when X1 is pressed.
z Stopping the drive by MODWR instruction when X2 is pressed.
Ú If AC motor drive can not run normally due to improper parameters, users can set P00-02 =
10 (factory defaults) and then set the parameters according to the above table.
Devices:
Device Function
X0 Forward
X1 Reverse
X2 Stop
M0 Executing MODRD instruction to read master and output frequency
M1 Executing MODWR instruction to set running direction and frequency
Control Program:
M1002
Set communication
MOV H86 D1120 format: 9600, 7, E , 1
X0
MOV H12 D0
Run forward in 30Hz
when X0 = ON
MOV K3000 D1
X1
MOV K22 D0
Run in reverse in 20Hz
when X1 = ON
MOV K2000 D1
X2
MOV H1 D0
Stop when X2 = ON
RST D1
LD= C0 K2 RST C0
M0
SET M1122 Sending request
M1
M0
MODRD K1 H2102 K2
M1140
C0 counts once
CNT C0 K10 when data receiving
error occurs.
Program Description:
z Initialize PLC RS-485 communication port and set the communication format as MODBUS
RTU, 19200, 8, N, 2. The RS-485 communication format of AC motor drive should be the
same with PLC.
z Reset D0 and D1 when PLC is powered up so as to ensure the drive is in the Stop status
z When X0 is activated, the drive will run forward (D0 = H12) in 30Hz (D1 = 3000).
z When X1 is activated, the drive will run in reverse (D0 = H22) in 20Hz (D1 = K2000)
z When X2 is activated, the drive will stop. (D0 = H1, D1 = 0)
z There are only 4 situations for MODBUS communication: flag M1127 for normal
communication and M1129, M1140, M1141 for communication errors. Counter C0 counts
once when any of the 4 flags is ON. Therefore, the program assures the communication
reliability by monitoring the On/Off status of the 4 flags and performs 2 MODBUS
instructions in order by the value in counter C0.
z The master frequency and output frequency stored in D1050 and D1051 will be sent to D2
and D3.
z Once PLC starts running, the read/write actions for AC motor drive will be performed
repeatedly according to [LD=] instructions.