High-speed Counter/Pulse Output Instructions
Flags
Example
000000
3-21-6 SET PULSES: PULS(886) (CJ1M-CPU21/22/23 Only)
Purpose
Ladder Symbol
Variations
888
Name
Label
Error Flag
ER
When CIO 000000 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 Hz.
D00100
@PULS
D00101
#0000
#0000
D00110
D00100
D00111
@SPED
Pulse frequency
#0000
#0001
Target frequency:
D00110
500 Hz
PULS(886) is used to set the pulse output amount (number of output pulses)
for pulse outputs that are started later in the program using SPED(885) or
ACC(888) in independent mode.
This instruction is supported by CJ1M-CPU21/22/23 CPU Units only.
PULS(886)
P
T
P: Port specifier
T: Pulse type
N
N: Number of pulses
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Operation
ON if the specified range for P, M, or F is exceeded.
ON if PLS2(887) or ORG(889) is already being executed
to control pulse output for the specified port.
ON if SPED(885) or INI(880) 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.
1388
Number of output pulses: 5,000
0000
01F4
Target frequency: 500 Hz
0000
5,000 pulses
PULS(881) and the
SPED(885) executed.
Section 3-21
Time
PULS(886)
@PULS(886)
Not supported
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?
Questions and answers