37
Pulse Output Function (CPM1A Only) Section 1-4
Beginning Pulse output 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.
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.
1-4-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.
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
1-4-5 Stopping Pulse Output
When pulses are output in the independent mode, the pulse output will auto-
matically 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.
Using SPED(64) The first method is to use SPED(64) to stop the pulse output by setting the
frequency to 0. For details, refer to 1-4-4 Changing the Frequency.
Using INI(61) The second method is to use INI(61) to stop the pulse output, as follows:
@SPED(64)
M
P
F
@SPED(64)
M
P
F
@INI(61)
003
000
000