Chapter 5 Instruction Words
5 - 18
Sample 2: Program to output codes sequentially to terminal Yw while the output frequency is
increased in 10-Hz steps. (The inverter operation is the same as that programmed in
sample 1.)
(Code area [Code Window])
entry
SET-Freq= 6000 : Set the output frequency to 60 Hz.
ACCEL= 3000 : Set the acceleration time to 30
seconds.
DECEL= 3000 : Set the deceleration time to 30
seconds.
Yw= 0
FW= 1 : Start forward rotation of the motor.
LOOP if FM < U(00) then LBL1 : When the output frequency is less than
10 Hz
if FM < U(01) then LBL2 : When the output frequency is less than
20 Hz
if FM < U(02) then LBL3 : When the output frequency is less than
30 Hz
if FM < U(03) then LBL4 : When the output frequency is less than
40 Hz
if FM < U(04) then LBL5 : When the output frequency is less than
50 Hz
if FM < U(05) then LBL6 : When the output frequency is less than
60 Hz
if FM = U(05) then LBL8 : When the output frequency is 60 Hz
LBL1 Yw= 1 : Output "1" to Yw.
goto LBL7
LBL2 Yw= 2 : Output "2" to Yw.
goto LBL7
LBL3 Yw= 3 : Output "3" to Yw.
goto LBL7
LBL4 Yw= 4 : Output "4" to Yw.
goto LBL7
LBL5 Yw= 5 : Output "5" to Yw.
goto LBL7
LBL6 Yw= 6 : Output "6" to Yw.
LBL7 goto LOOP
LBL2 FW= 0 : Decelerate and stop the motor.
Wait RUN = 0
end
(Data area [Data Window])
U(00) = 1000
U(01) = 2000
U(02) = 3000
U(03) = 4000
U(04) = 5000
U(05) = 6000