![Omron CJ1G-CPUxx Instructions Manual Download Page 807](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491807.webp)
786
High-speed Counter/Pulse Output Instructions
Section 3-21
Flags
Example
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.
3-21-5 SET PULSES: PULS(886) (CJ1M-CPU22/CPU23 Only)
Purpose
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 the CJ1M-CPU22/CPU23 CPU Units only.
Ladder Symbol
Variations
Name
Label
Operation
Error Flag
ER
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.
@PULS
#0000
#0000
D00100
1388
0000
000000
@SPED
#0000
#0001
D00110
D00100
D00101
Number of output pulses: 5,000
01F4
0000
D00110
D00111
Target frequency: 500 Hz
Time
5,000 pulses
Target frequency:
500 Hz
Pulse frequency
PULS(881) and the
SPED(885) executed.
PULS(886)
P
T
N
P: Port specifier
T: Pulse type
N: Number of pulses
Variations
Executed Each Cycle for ON Condition
PULS(886)
Executed Once for Upward Differentiation
@PULS(886)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Not supported
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...