Pulse I/O Board
Example 6: Using
ACC(––) to Decelerate the
Frequency at a Specified
Rate and Stop Output
Example 7: Using
ACC(––) to Decelerate the
Frequency at a Specified
Rate
116
The following diagram shows the frequency of pulse outputs from port 2 as
the program is executed.
Frequency
20 kHz
1 kHz
IR 00000
turns ON
The following example shows Mode 2 of ACC(––) used decrease the fre-
quency of a pulse output from port 1. The 2-kHz pulse output is already in
progress in independent mode and stops automatically when the number of
pulses is reached.
DM 0000 0050
DM 0001 0001
00000
The following diagram shows the frequency of pulse outputs from port 1 as
the program is executed.
Frequency
2 kHz
1 kHz
Note The pulse output can be stopped by executing ACC(––) Mode 2 with a target
frequency of 0. However, since the pulse output cannot be stopped at the cor-
rect number of pulses, this method should not be used except for emergency
stops.
The following example shows Mode 3 of ACC(––) used to decrease the fre-
quency of a pulse output from port 1. The 20-kHz pulse output is already in
progress in Continuous Mode.
DM 0000 0100
DM 0001 0500
00000
About 500 Hz/4 ms
IR 00001
turns ON
@ACC(−−)
When IR 00000 turns ON, ACC(−−) begins decelerating the
port 1 pulse frequency at about 500 Hz/4 ms until it reaches
001
the target frequency of 10 Hz. Pulse output stops when the
specified number of pulses is reached.
002
DM 0000
About 500 Hz/4 ms
IR 00000
Specified number
turns ON
of pulses output
@ACC(−−)
When IR 00000 turns ON, ACC(−−) begins decelerating the
port 1 pulse output at about 1,000 Hz/4 ms until it reaches
001
the target frequency of 5,000 Hz.
003
DM 0000
Section 2-2
Time
Time
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?