Chapter 2 Syntax
- Sample program :
Program to make the inverter alternately repeat forward rotation of the motor at 60 Hz and reverse
rotation of the motor at 10 Hz
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
㩷
U(00)=
㩷
㩷
1000
㩷
㩷
: The output frequency for reverse rotation
is 10 Hz.
㩷
ACCEL=
㩷
㩷
1000
㩷
㩷
: Set the acceleration time to 10 seconds.
㩷
DECEL=
㩷
㩷
1000
㩷
㩷
: Set the deceleration time to 10 seconds.
LOOP SET-Freq=
㩷
㩷
6000
㩷
㩷
㩷
FW= 1
㩷
㩷
㩷
: Accelerate the forward rotation speed up
to 60 Hz.
㩷
wait RUN
= 1
㩷
㩷
: Wait until the motor operates at 60 Hz.
㩷
delay off
FW
TD(0)
15.00
㩷
㩷
: Start the 15-second timer counter.
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
: Turn the FW terminal off after 15 seconds
elapse.
㩷
wait RUN
= 0
㩷
㩷
: Wait until the motor stops.
㩷
delay on
RV
TD(0)
1.00
㩷
㩷
: Start reverse rotation after 1 second
elapses.
㩷
SET-Freq=
㩷
㩷
1000
㩷
㩷
: Accelerate the reverse rotation speed up
to 10 Hz.
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
wait FM
=
U(00)
㩷
㩷
: Wait until the output frequency reaches
10 Hz.
㩷
RV= 0
㩷
㩷
㩷
㩷
: Decelerate and stop the motor.
㩷
Wait RUN
= 0
㩷
㩷
: Wait until the motor stops.
㩷
goto LOOP
㩷
㩷
㩷
㩷
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
- Example of operation (timing chart)
delay on Y (00) TD (0) 1000
delay off Y (00) TD (0) 1500
TC (0)
TD (0)
timer off TD (0)
Comparison
for matching
1500
1000
Y (00)
2^31-1
2^31-1
Timing chart for operation using the delay on and delay off instructions
2-26
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 ...