Chapter 2 Syntax
2-20
- Sample program
Sample 1 : Program to turn terminals Y (00) to Y (05) on sequentially while the output frequency is increased in 10-Hz steps.
(The inverter operation is the same as that programmed in sample 2.)
(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,
㩷
Y(00)= 1
㩷
㩷
㩷
: turn Y (00) on.
㩷
if
FM
<
U(01)
then
LBL1
: When the output frequency is less than 20 Hz,
㩷
Y(01)= 1
㩷
㩷
㩷
: turn Y (01) on.
㩷
if
FM
<
U(02)
then
LBL1
: When the output frequency is less than 30 Hz,
㩷
Y(02)= 1
㩷
㩷
㩷
: turn Y (02) on.
㩷
if
FM
<
U(03)
then
LBL1
: When the output frequency is less than 40 Hz,
㩷
Y(03)= 1
㩷
㩷
㩷
: turn Y (03) on.
㩷
if
FM
<
U(04)
then
LBL1
: When the output frequency is less than 50 Hz,
㩷
Y(04)= 1
㩷
㩷
㩷
: turn Y (04) on.
㩷
if
FM
<
U(05)
then
LBL2
: When the output frequency is less than 60 Hz,
㩷
Y(05)= 1
㩷
㩷
㩷
: turn Y (05) on.
LBL1 goto
LOOP
㩷
㩷
㩷
㩷
LBL2 FW=
0
㩷
㩷
㩷
㩷
Wait RUN
= 0
㩷
㩷
: Decelerate and stop the motor.
㩷
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 ...