
887
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-6 SET PULSES: PULS(886) (CJ1M-CPU21/22/23 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 CJ1M-CPU21/22/23 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
01F4
0000
D00110
D00111
Number of output pulses: 5,000
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 SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...