Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 771

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

High-speed Counter/Pulse Output Instructions
Example
application
Change from speed
control to fixed dis-
tance positioning
during operation
Fixed distance feed
interrupt
Flags
Example
738
Switching from Continuous Mode Speed Control to Independent Mode
Positioning
Frequency changes
Outputs the number of
pulses specified in
PLS2(887) (Both relative
and absolute pulse
specification can be used.)
Pulse frequency
Target
frequency
Execution of
ACC(888)
(continuous
Execution of
mode)
PLS2(887)
Pulse
frequency
Present
frequency
Execution of
ACC(888)
(continuous
Execution of PLS2(887)
mode)
with the following settings
Number of pulses = num-
ber of pulses until stop
Relative pulse specification
Target frequency = present
frequency
Acceleration rate = 0001 to
07D0 hex
Deceleration rate = target
deceleration rate
Name
Label
Error Flag
ER
When CIO 0.00 turns ON in the following programming example, PLS2(887)
starts pulse output from pulse output 0 with an absolute pulse specification of
100,000 pulses. Pulse output is accelerated at a rate of 500 Hz every 4 ms
starting at 200 Hz until the target speed of 50 kHz is reached. From the decel-
eration point, the pulse output is decelerated at a rate of 250 Hz every 4 ms
starting until the starting speed of at 200 Hz is reached, at which point pulse
output is stopped.
Description
PLS2(887) can be
executed during a
speed control opera-
tion started with
ACC(888) to change
to positioning opera-
tion.
Time
Time
Operation
ON if the specified range for P, M, S, or F is exceeded.
ON if PLS2(887) is executed for a port that is already out-
putting pulses for SPED(885) or ORG(889).
ON if PLS2(887) is executed in an interrupt task when an
instruction controlling pulse output is being executed in a
cyclic task.
ON if PLS2(887) is executed for an absolute pulse output
but the origin has not been established.
Section 3-20
Procedure/
instruction
ACC(888) (Con-
tinuous)
PLS2(887)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents