3. Instructions
754
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Example Programming
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 CW/CCW method in the clockwise direction in independent mode at a target
frequency of 500 pps.
Operation Purpose Application Frequency changes Description
Procedure/
instruction
Stopping
pulse output
To stop pulse
output
(Number 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
(Number 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),
ACC(888)
(Independent,
Ta rg et
frequency of
0 pps)
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
#0001
D110
D100
D101
#01F4
#0000
D110
D111
Number of output pulses: 5,000
Pulse output: 0
Pulse type: Relative
Pulse output: 0
Direction:
CW in independent mode
Target frequency: 500 pps
Time
5,000 pulses
Target frequency:
500 pps
Pulse frequency
PULS(881) and the
SPED(885) executed.