30
Pulse Output Function (CQM1 Only) Section 1-3
Example 4 :ACC(––)
Mode 0
The following example shows mode 0 of ACC(––) used to output 10,000 CW
pulses from port 1. The frequency is accelerated to 10 kHz at approximately
1 kHz/4 ms and decelerated to 1 kHz at approximately 250 Hz/4 ms. Deceler-
ation begins after 9,100 pulses have been output.
The following diagram shows the frequency of pulse outputs from port 1 as
the program is executed.
Example 5: ACC(––)
Mode 1
The following example shows mode 1 of ACC(––) used increase the fre-
quency of a pulse output from port 1. The frequency is accelerated from 1 kHz
to 20 kHz at approximately 500 Hz/4 ms.
@PULS(65)
002
001
00000
DM 0000
@ACC(––)
000
001
DM 0004
When 00000 goes ON, PULS(65) sets port 1 for CW pulse
output. The total number of pulses is set to 10,000 and the
deceleration point is set to 9,100 pulses.
Starts CW pulse output from port 1.
Acceleration rate: Approx. 1000 Hz/4 ms
Frequency after acceleration: 10 kHz
Deceleration rate: Approx. 250 Hz/4 ms
Frequency after deceleration: 1 kHz
DM 0000 0000
DM 0001 0001
DM 0002 9100
DM 0003 0000
DM 0004 0100
DM 0005 1000
DM 0006 0025
DM 0007 0050
Frequency
Time
10 kHz
00000
oes ON
1 kHz
9,100
pulses
10,000
pulses
About 1 kHz/4 ms
About 250 Hz/4 ms
@PULS(65)
005
002
00000
000
@SPED(64)
001
002
#0100
When 00000 goes ON, PULS(65) sets port 2 for CCW pulse
output. The number of pulses is not set.
Starts 1 kHz pulse output from port 2 in continuous mode.
DM 0000 0050
DM 0001 2000
@ACC(––)
001
002
DM 0000
When 00001 goes ON, ACC(––) begins acceler ating the
port 2 pulse output at about 500 Hz/4 ms until it reaches the
target frequency of 20 kHz.