Omron CP1E-E@@D@-@ Computer Hardware User Manual


 
2 Instructions
2-330
CP1E CPU Unit Instructions Reference Manual(W483)
Switching from Continuous Mode Speed Control to Independent Mode Positioning
Sample program
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
deceleration point, the pulse output is decelerated at a rate of 250 Hz every 4 ms starting until the start-
ing speed of at 200 Hz is reached, at which point pulse output is stopped.
Example application Frequency changes Description
Procedure/
instruction
Change from speed control to fixed
distance positioning during operation
PLS2(887) can be executed during a
speed control operation started with
ACC(888) to change to positioning oper-
ation.
ACC(888)
(Continuous)
PLS2(887)
Fixed distance feed interrupt
Pulse frequency
Target
frequency
Outputs the number of
pulses specified in
PLS2(887) (Both relative
and absolute pulse
specification can be used.)
Execution of
ACC(888)
(continuous
mode)
Execution of
PLS2(887)
Time
Pulse
frequency
Present
frequency
Execution of
ACC(888)
(continuous
mode)
Execution of PLS2(887)
with the following settings
Number of pulses =
number of pulses until stop
Relative pulse specification
Target frequency = present
frequency
Acceleration rate = 0001 to
07D0 hex
Deceleration rate = target
deceleration rate
Time
@PLS2
#0000
#0100
D100
D110
01F4
00FA
C350
0000
86A0
0001
00C8
0000
0.00
D100
D101
D102
D103
D104
D105
D110
D111
Pulse type: Relative
Pulse output: 0
Pulse output method:
Pulse + direction output
Direction: CW
Acceleration rate: 500 Hz/4 ms
Time
100,000 pulses
T
arget frequency
50 kHz
Start frequency
200 Hz
Pulse frequency
PLS2(887) executed.
Start frequency: 200 Hz
Pulse output amount: 100,000 pulses
Target frequency: 50 kHz
Deceleration rate: 250 Hz/4 ms