29
Pulse Output Function (CQM1 Only) Section 1-3
The following diagram shows the frequency of pulse outputs from port 1 as
the program is executed.
!Caution Be sure that the pulse frequency is within the motor’s self-starting frequency
range when starting and stopping the motor.
Example 3: PLS2(– –) The following example shows PLS2(––) used to output 100,000 CW pulses
from port 1. The frequency is accelerated to 10 kHz at approximately 500 Hz/
4 ms and decelerated at the same rate.
Five seconds after the CW pulses have been output, another PLS2(––)
instruction outputs 100,000 CCW pulses with the same settings.
The following diagram shows the frequency of pulse outputs from port 1 as
the program is executed.
Frequency
Time
1.5 kHz
1.0 kHz
05000
goes ON
00005
goes ON
00006
goes ON
00007
goes ON
@PLS2(––)
000
001
05000
DM 0000
TIM 000
#0050
When 05000 goes ON, PLS2(––) star ts CW pulse output
from port 1.
Acceleration rate: Approx. 500 Hz/4 ms
Target frequency: 10 kHz
Number of pulses: 100,000
A 5 s timer is started when AR 0514 (the Pulse Output Com
pleted flag) is ON.
SET 05000
00000
05000 is turned ON when 00000 is ON.
AR 0514
@PLS2(––)
001
001
TIM 000
DM 0000
When TIM 000 times out, PLS2(––) star ts CCW pulse out-
put from port 1.
Acceleration rate: Approx. 500 Hz/4 ms
Target frequency: 10 kHz
Number of pulses: 100,000
RSET 05000 05000 is turned OFF when TIM 000 times out.
DM 0000 0050
DM 0001 1000
DM 0002 0000
DM 0003 0010
Frequency
Time
10 kHz
05000