Chapter 2 Syntax
2-21
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
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷
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
Summary of Contents for NT2021XA
Page 4: ... Safety Instructions ...
Page 8: ... Contents ...
Page 10: ...Chapter 1 Outline of EzSQ ...
Page 14: ...1 4 Chapter 1 Outline of EzSQ ...
Page 16: ...Chapter 2 Syntax ...
Page 68: ...2 52 Chapter 2 Syntax ...
Page 70: ...Chapter 3 Interface with the Inverter ...
Page 80: ...3 10 Chapter 3 Interface with the Inverter ...