3. Instructions
Flags
Name
Label
Error Flag
P_ER
Function
SPED(885) starts pulse output on the port
specified in P using the method specified in
M at the frequency specified in F. Pulse
output will be started each time SPED(885)
is executed. It is thus normally sufficient to
use the differentiated version
(@SPED(885)) of the instruction or an
execution condition that is turned ON only
for one scan.
In continuous mode, pulse output will continue until stopped from the program. In independent mode,
pulse output will stop automatically when the number of pulses set with PULS(886) in advance have
been output.
An error will occur if the mode is changed between independent and continuous mode while pulses are
being output.
Continuous Mode Speed Control
When continuous mode operation is started, pulse output will be continued until it is stopped from the
program.
Note Pulse output will stop immediately if the CPU Unit is changed to PROGRAM mode.
Operation
Purpose
Application
Starting
To output
Changing the
pulse output
with
speed
specified
(frequency) in
speed
one step
Changing
To change
Changing the
settings
speed in
speed during
one step
operation
752
• ON if the specified range for P, M, or F is exceeded.
• ON if ACC(888), PLS2(887), ORG(889) or IFEED(892) is already being executed to control pulse output for the
specified port.
• ON if SPED(885) is used to change the mode between continuous and independent output during pulse output.
• ON if SPED(885) is executed in an interrupt task when an instruction controlling pulse output is being executed in a
cyclic task.
• ON if SPEC(885) is executed in independent mode with an absolute number of pulses and the origin has not been
established.
• ON if SPED(885) is executed in independent mode and the number of pulses is not set.
• For a CJ2M CPU Unit, ON for any function that uses I/O on the Pulse I/O Module even if a Pulse I/O Module is not
mounted.
• OFF in all other cases.
Frequency changes
Pulse frequency
Target frequency
Execution of SPED(885)
Pulse frequency
Target frequency
Present frequency
Execution of
SPED(885)
Operation
Pulse frequency
Target frequency
SPED(885) executed.
Outputs pulses at a
specified frequency.
Time
Changes the
frequency (higher or
lower) of the pulse
output in one step.
Time
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Procedure/
Description
instruction
SPED(885)
(Continuous)
SPED(885)
(Continuous)
SPED(885)
(Continuous)
Time
Need help?
Do you have a question about the CJ - INSTRUCTIONS and is the answer not in the manual?