![Omron CJ1M-CPU21 Operation Manual Download Page 131](http://html1.mh-extra.com/html/omron/cj1m-cpu21/cj1m-cpu21_operation-manual_742493131.webp)
102
PULSE OUTPUT: PLS2(887)
Section 5-7
Flags
Precautions
• An error will occur if PULS(886) is executed when pulses are already
being output. Use the differentiated version (@PULS(886)) of the instruc-
tion or an execution condition that is turned ON only for one scan to pre-
vent this.
• The calculated number of pulses output for PULS(886) will not change
even if INI(880) is used to change the PV of the pulse output.
• The direction set for SPED(885) or ACC(888) will be ignored if the num-
ber of pulses is set with PULS(881) as an absolute value.
• It is possible to move outside of the range of the PV of the pulse output
amount (
−
2,147,483,648 to 2,147,483,647).
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-7
PULSE OUTPUT: PLS2(887)
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 the CJ1M-CPU21/CPU22/CPU23 CPU Units
only.
Name
Label
Operation
Error Flag
ER
ON if the specified range for P, T, or N is exceeded.
ON if PULS(886) is executed for a port that is already out-
putting pulses.
ON if PULS(886) is executed in an interrupt task when an
instruction controlling pulse output is being executed in a
cyclic task.
@PULS
#0000
#0000
D00100
000000
@SPED
#0000
#0001
D00110
1388
0000
D00100
D00101
01F4
0000
D00110
D00111
Number of output pulses: 5,000
Target frequency: 500 Hz
Pulse output 0
Pulse type: Relative
Pulse output 0
Method: CW/CCW
Direction: CW
Mode: Independent
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...