![Omron CJ1M-CPU21 Operation Manual Download Page 129](http://html1.mh-extra.com/html/omron/cj1m-cpu21/cj1m-cpu21_operation-manual_742493129.webp)
100
SET PULSES: PULS(886)
Section 5-6
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.
5-6
SET PULSES: PULS(886)
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-CPU21/CPU22/CPU23 CPU Units
only.
Ladder Symbol
Variations
Applicable Program Areas
Operands
P: Port Specifier
The port specifier indicates the port. The parameters set in D and N will apply
to the next SPED(885) or ACC(888) instruction in which the same port output
location is specified.
@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
PULS(881) and the
SPED(885) executed.
Target frequency:
500 Hz
Pulse output 0
Pulse type: Relative
Method: CW/CCW
Direction: CW
Mode: Independent
Pulse output 0
Pulse frequency
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
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
P
Port
0000 hex
Pulse output 0
0001 hex
Pulse output 1
Summary of Contents for CJ1M-CPU21
Page 1: ...Cat No W395 E1 03 CJ series Built in I O CJ1M CPU21 22 23 CJ1M CPU Units...
Page 2: ...CJ series Built in I O CJ1M CPU21 22 23 CPU Units Operation Manual Revised August 2004...
Page 3: ...iv...
Page 19: ...xx...
Page 79: ...50 Wiring Examples Section 3 3...
Page 217: ...188 Origin Search and Origin Return Functions Section 6 3...
Page 220: ...191 Built in Outputs Section 7 1...
Page 247: ...218 Built in Outputs Section 7 1...
Page 251: ...222 Combinations of Pulse Control Instructions Appendix A...
Page 255: ...226 Using Pulse Instructions in other CPU Units Appendix B...
Page 263: ...234 Index...
Page 265: ...236 Revision History...