Hitachi NT2021XA Instruction Manual page 37

Easy-sequence programming software
Table of Contents

Advertisement

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])
Label
Mnemonic
entry
SET-Freq=
ACCEL=
DECEL=
Yw=
FW=
LOOP
if
if
if
if
if
if
if
LBL1
Yw=
goto
LBL2
Yw=
goto
LBL3
Yw=
goto
LBL4
Yw=
goto
LBL5
Yw=
goto
LBL6
Yw=
LBL7
goto
LBL2
FW=
Wait
end
(Data area [Data Window])
U (00) = 1000
U (01) = 2000
U (02) = 3000
U (03) = 4000
U (04) = 5000
U (05) = 6000
parameter1
parameter2
parameter3
6000
3000
3000
0
1
FM
<
U(00)
FM
<
U(01)
FM
<
U(02)
FM
<
U(03)
FM
<
U(04)
FM
<
U(05)
FM
=
U(05)
1
LBL7
2
LBL7
3
LBL7
4
LBL7
5
LBL7
6
LOOP
0
RUN
=
0
2-21
parameter4
parameter5
: Set the output frequency to 60 Hz.
: Set the acceleration time to 30 seconds.
: Set the deceleration time to 30 seconds.
: Start forward rotation of the motor.
then
LBL1
: When the output frequency is less than 10 Hz
then
LBL2
: When the output frequency is less than 20 Hz
then
LBL3
: When the output frequency is less than 30 Hz
then
LBL4
: When the output frequency is less than 40 Hz
then
LBL5
: When the output frequency is less than 50 Hz
then
LBL6
: When the output frequency is less than 60 Hz
then
LBL8
: When the output frequency is 60 Hz
: Output "1" to Yw.
: Output "2" to Yw.
: Output "3" to Yw.
: Output "4" to Yw.
: Output "5" to Yw.
: Output "6" to Yw.
: Decelerate and stop the motor.
Chapter 2 Syntax

Advertisement

Table of Contents
loading

Table of Contents