Chapter 7 Second Development Platform VP3000
384
API Instruction code Operand Function
142 FREQ P S
1
, S
2
, S
3
AC motor drive speed control
Type
Operand
Bit devices Word devices
16-bit instruction (7 steps)
FREQ
Continuous
execution
type
FREQP
Pulse
execution
type
32-bit instruction
- - - -
Associated flag: M1015
X Y M K H KnX KnY KnM T C D
S
1
S
2
S
3
Caution for using operand: none
Description
S
1
: frequency command
S
2
: acceleration time
S
3
: deceleration time
S
2
, S
3
: for the setting of acceleration time / deceleration time, the number of decimal places is
determined by Pr.C2-13.
For example, when Pr.C2-13 = 0 (unit: 0.01 second)
See the ladder diagram below, if set S
2
as 50, it means 0.5 seconds; if set S
3
as 60, it means
0.6 seconds.
The FREQ instruction can control AC motor drive’s frequency command, acceleration time and
deceleration time.; and it also can control operation by using special register.
Such as:
1. M1025: control RUN (ON) / STOP (OFF) of AC motor drive
[Note: RUN is valid when servo ON (M1040 = ON).]
2. M1026: control the direction of operation FWD (OFF) / REV (ON) of AC motor drive
3. M1040: control servo ON (ON) / servo OFF (OFF)
4. M1042: trigger quick stop (ON) / do not trigger quick stop (OFF)
5. M1044: pause (ON) / release pause (OFF)
6. M1052: lock frequency (ON) / release lock frequency (OFF)
Example
M1025: control RUN (ON) / STOP (OFF) of AC motor drive
M1026: control the direction of operation FWD (OFF) / REV (ON) of AC motor drive
M1015: frequency reached
When M10 = ON, set AC motor drive’s frequency command K300 (3.00 Hz) with acceleration
time and deceleration time of 0.
When M11 = ON, set AC motor drive’s frequency command K3000 (30.00 Hz) with acceleration
time of 50 (0.5 sec.) and deceleration time of 60 (0.6 sec.). (When Pr.C2-13 = 0)
When M11 = OFF, AC motor drive’s frequency command becomes 0.