890
High-speed Counter/Pulse Output Instructions Section 3-21
3-21-7 PULSE OUTPUT: PLS2(887) (CJ1M-CPU21/22/23 Only)
Purpose PLS2(887) outputs a specified number of pulses to the specified port. Pulse
output starts at a specified startup frequency, accelerates to the target fre-
quency at a specified acceleration rate, decelerates at the specified decelera-
tion rate, and stops at approximately the same frequency as the startup
frequency. Only independent mode positioning is supported.
PLS2(887) can also be executed during pulse output to change the number of
output pulses, target frequency, acceleration rate, or deceleration rate.
PLS2(887) can thus be used for sloped speed changes with different acceler-
ation and deceleration rates, target position changes, target and speed
changes, or direction changes.
This instruction is supported by CJ1M-CPU21/22/23 CPU Units only.
Ladder Symbol
Variations
Applicable Program Areas
Operands P: Port Specifier
The port specifier indicates the port.
M: Output Mode
The content of M specifies the parameters for the pulse output as follows:
PLS2(887)
P
M
S
F
P: Port specifier
M: Output mode
S: First word of settings table
F: First word of starting frequenc
Variations Executed Each Cycle for ON Condition PLS2(887)
Executed Once for Upward Differentiation @PLS2(887)
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
03478
111215
M
Relative/absolute specifier
0 hex: Relative pulses
1 hex: Absolute pulses
Direction
0 hex: CW
1 hex: CCW
Pulse output method (See note.)
0 hex: CW/CCW
1 hex: Pulse + direction
Always 0 hex.
Note: Use the same pulse output method when using both pulse outputs 0 and 1.