2 Instructions
2-322
CP1E CPU Unit Instructions Reference Manual(W483)
Sample program
When CIO 0.00 turns ON in the following programming example, PULS(886) sets the number of output
pulses for pulse output 0. An absolute value of 5,000 pulses is set. SPED(885) is executed next to start
pulse output using the pulse + direction method in the clockwise direction in independent mode at a tar-
get frequency of 500 Hz. .
Operation Purpose Application Frequency changes Description
Procedure/
instruction
Stopping
pulse output
To stop pulse
output (Num-
ber of pulses
setting is not
preserved.)
Immediate stop Stops the pulse output
immediately and clears
the number of output
pulses setting.
PULS(886)
↓
SPED(885)
(Independent)
↓
INI(880)
Stop pulse
output (Num-
ber of pulses
setting is not
preserved.)
Immediate stop Stops the pulse output
immediately and clears
the number of output
pulses setting.
PULS(886)
↓
SPED(885)
(Independent)
↓
SPED(885),
(Independent,
Target fre-
quency of 0 Hz)
Pulse frequency
Present
frequency
Execution of
SPED(885)
Execution
of INI
(
880
)
Time
Pulse frequency
Present frequency
Execution of
SPED(885)
Execution of
SPED(885)
Time
@PULS
#0000
#0000
D100
1388
0000
0.00
@SPED
#0000
#0101
D110
D100
D101
01F4
0000
D110
D111
Number of output pulses: 5,000
Pulse output: 0
Pulse type: Relative
Pulse output: 0
Pulse + direction output
Direction:
CW in independent mode
Target frequency: 500 Hz
Time
5,000 pulses
Target frequency:
500 Hz
Pulse frequency
PULS(881) and the
SPED(885) executed.