2-6
Section
CPM1A Pulse Output Functions
133
With SPED(64), set the bit location for pulse outputs (IR 01000 or IR 01001), the
output mode (independent, continuous), and the pulse frequency to begin the
pulse output.
@SPED(64)
M
P
F
P (3 digits BCD)
000: Outputs to IR 01000
010: Outputs to IR 01001
M (3 digits BCD)
000: Independent mode
001 Continuous mode
F (4 digits BCD)
For the beginning pulse output frequency, specify a
constant or word contents. The specified value and set
frequency are as follows:
Specified value:
0002 to 0200
Set frequency:
20 to 2,000 Hz
Note
1. Pulses can be output from only one bit at a time.
2. When pulse output is begun in independent mode, the number of pulses is
read when SPED(64) is executed. PULS(65) cannot be used to change the
number of pulses while pulses are being output.
2-6-4 Changing the Frequency
To change the frequency during pulse output, change the frequency setting with
SPED(64). At that time, set the operands other than the frequency to the same
settings as at the beginning of pulse output.
@SPED(64)
M
P
F
P (3 digits BCD)
Same as at beginning of pulse output.
M (3 digits BCD)
Same as at beginning of pulse output.
F (4 digits BCD)
For the changed pulse output frequency, specify a
constant or word contents. The specified value and set
frequency are as follows:
Specified value:
0002 to 0200
Set frequency:
20 to 2,000 Hz
2-6-5 Stopping Pulse Output
When pulses are output in the independent mode, the pulse output will automati-
cally stop after the number of pulses specified with PULS(65) has been output.
When pulses are output in the continuous mode, either of the following two
methods can be used to stop the pulse output.
1. Use SPED(64) to set the frequency to 0.
2. Use INI(61) to stop the pulse output.
The first method is to use SPED(64) to stop the pulse output by setting the fre-
quency to 0. For details, refer to
2-6-4 Changing the Frequency
.
The second method is to use INI(61) to stop the pulse output, as follows:
@INI(61)
003
000
000
Beginning Pulse Output
Using SPED(64)
Using INI(61)