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 pulse
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
PPort
0000 hex Pulse output 0
0001 hex Pulse output 1