![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268927.webp)
888
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
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...