D - Chap 7 - Positioning Control Using PLC
D - Chap 7 - Positioning Control Using PLC
Positioning Control
using PLC
2
What is positioning control?
The positioning controller, together with the programmable logic controller,
personal computer and operator interface, is one of the four main units of FA
(factory automation).
Positioning is all about motion, and motion often involves speed and precision.
And since speed can be directly related to productivity, positioning is an area of
much development.
3
Actuators for positioning
The options available for positioning control depend on the type of actuator
driving the system. An actuator is a mechanical device that moves or controls a
specific element or a series of elements within a system.
4
Actuators for positioning
Pneumatic
Stepping motor
AC servo system
Brake motor
DC servo system
General purpose
inverter and
general purpose
motor
Clutch brake
5
6
7
Actuators for positioning
8
Actuators for positioning
9
Actuators for positioning
10
Actuators for positioning
11
Actuators for positioning
12
Actuators for positioning
13
Actuators for positioning
14
Positioning method type
• In general, there are two methods to control the movement of a
workpiece: speed control and position control.
15
Positioning method type
❑ Speed control
Control
Description Schematic drawing
method
Two limit switches are provided
in places where a system’s
moving part passes. At the first
limit switch, the motor speed is
(1) reduced. At the second limit
Limit switch, the motor turns off and
switch the brake turns on to stop the
moving part.
method
In this method, because position
controllers are not required, the
system configuration can be
realized at reasonable cost.
Guideline of stopping precision: Approximately ±1.0 to 5.0 mm
(The stop precision shows a value in a case where the low speed is 10 to 100 mm/s.)
16
Positioning method type
❑ Speed control
Control
Description Schematic drawing
method
A position detector (such as a
pulse encoder) is set up in a
motor or rotation axis. The pulse
number generated from the
(2) position detector is counted by a
Pulse high-speed counter. When the
count pulse number reaches the preset
method value, the moving part stops.
In this method, because limit
switches are not used, the stop
position can be easily changed.
Guideline of stopping precision: Approximately ±0.1 to 0.5 mm
(The stop precision shows a value in a case where the low speed is 10 to 100 mm/s.)
17
Positioning method type
❑ Speed control
• With the limit switch method, a system operates without any
feedback to the controller to indicate the location of the
workpiece.
• With the pulse count method, the speed can be changed and the
stop command can be executed at specific distances (at specific
timings) according to the feedback from the pulse generator
connected to the motor.
• Both the limit switch method and the pulse count method,
however, are subject to a loss in stop precision due to the
dispersion of distance that occurs for workpieces at different
speeds.
18
Positioning method type
❑ Speed control
The moving part continues by a coasting Dispersion in the stop distance changes,
distance until it completely stops affected by the speed and speed reduction
time delay after stop.
19
Positioning method type
❑ Speed control
In actual operation to improve the stop precision, the motor speed can be
reduced from a high speed to a low speed before the motor is stopped, as shown
below.
20
Positioning method type
❑ Position control
Control
Description Schematic drawing
method
An AC servo motor which
rotates in proportion to the
input pulse number is used as
the drive motor.
Pulse When the pulse number
command corresponding to the movement
method distance is input to the servo
amplifier of the AC servo motor,
positioning can be performed at
high speed in proportion to the
pulse frequency.
Using the pulse command method with a servo amplifier, the weak points described
above for speed control are improved.
A pulse encoder is attached to the servo motor to detect the motor rotation quantity
(workpiece movement distance) and feed the information directly to the servo
amplifier in order to continuously and directly control the high-speed positioning
operation to the target position.
This method allows the workpiece to stop with better precision and eliminates the
coasting and dispersion distance at stop.
Furthermore, limit switches to stop normal positioning operations, along with
counting methods from the PLC are not needed.
22
Positioning by AC Servo System
23
Advantages for using an AC servo system
24
Advantages for using an AC servo system
25
Example of AC Servo System
26
Example of AC Servo System
Type of
Description Schematic drawing
machine
27
Example of AC Servo System
Type of
Description Schematic drawing
machine
28
Example of AC Servo System
Type of
Description Schematic drawing
machine
• To punch insulation material or
leather, etc., as the same shape at
a high yield, positioning is carried
out with the X axis and Y axis
servos.
(3) • After positioning the table with
the X axis servo, the press head is
Punch positioned with the Y axis servo,
press and is then punched with the
press.
• When the material type or
shape changes, the press head die
is changed, and the positioning
pattern is changed.
29
Example of AC Servo System
Type of
Description Schematic drawing
machine
• The ATC tool magazine for a
compact machining center is
(4) positioned.
Auto • The relation of the magazine's
tool current value and target value is
changer calculated, and positioning is
carried out with forward run or
(ATC)
reverse run to achieve the
shortest access time.
30
Example of AC Servo System
Type of
Description Schematic drawing
machine
• During the aging process of
Braun tubes, storage onto the
rack is carried out by
positioning with the AC servo.
(5) • The up/down positioning of
Lifter the lifter is carried out with the
1-axis servo, and the horizontal
position of the aging rack is
positioned with the 2-axis
servo.
31
Example of AC Servo System
Type of
Description Schematic drawing
machine
32
Components of Positioning
Control and their Roles
• Positioning controller
• Servo amplifier
• Servo motor
• Drive mechanism
33
Components of Postioning Control
34
Positioning controller
35
Positioning controller
❑ Command pulse control method
36
Positioning controller
❑ Command pulse control method
• During forward run, the forward run feed pulse (PULSE F) will be output.
• During reverse run, the reverse run feed pulse (PULSE R) will be output.
37
Positioning controller
❑ Command pulse control method
38
Positioning controller
❑ Command pulse control method
39
Positioning controller
❑ Basic parameter settings
To send a series of pulses (a pulse train) to a servo amplifier, positioning
controllers use a specified feed quantity, which is proportional to the number of
pulses. A feed speed must also be specified to control the number of pulses
output per second.
a) Feed quantity
The feed quantity determined by the target address tells the servo system how
far to move the workpiece. So, for example, if a servo motor encoder generates
8,192 pulses for one rotation, the command pulse number “8,192” can be output
to rotate the servo motor by 1 rotation.
b) Feed speed
The feed speed defines the amount of travel per unit of time for the workpiece.
When a servo motor encoder generates 8,192 pulses for one rotation, the
command pulse frequency (speed) “8,192 pulses/s” should be output to rotate
the servo motor by 1 rotation per second. Decrease the pulse frequency to rotate
the servo motor at a lower speed. Increase the pulse frequency to rotate the
servo motor at a higher speed. 40
Positioning controller
❑ Basic parameter settings
c) Acceleration/deceleration time
When the start command is given, acceleration, operation at constant speed, and
deceleration are performed for positioning. Set the acceleration time and the
deceleration time in the controller’s parameters
41
Positioning controller
❑ Zero point return function
42
Positioning controller
❑ Zero point return function
When the servo system uses an incremental or relative type encoder, the current
value of the address stored in the position controller is not “remembered” or
maintained when the power is turned off. This means that the address is set to
zero every time the power is cycled, which can be disadvantageous in an
application.
43
Positioning controller
❑ Zero point return function
44
Positioning controller
❑ Zero point return function
The zero point return function does not actuate movement to a physical zero
address. Instead, the zero point return function causes movement in a specified
direction (positive or negative) in order to define the physical zero address after
contact with a DOG switch.
45
Positioning controller
❑ Zero point return function
46
Positioning controller
❑ Zero point return function
❖ NOTE:
• Creep speed: The stopping accuracy is poor when the machine suddenly
stops from high speeds. To improve the machine's stopping accuracy, its
must change over to a low speed before stopping.
• Dog signal: The near-point dog of the machine zero point return.
47
Positioning controller
❑ Zero point return function
❖ NOTE:
• Dwell time: This is the time taken immediately after the positioning is
completed to adjust for the droop pulses in the deviation counter. The
positioning will not be accurate if this time is too short.
48
Positioning controller
❑ Zero point return function
❖ NOTE:
• Home offset (Zero point shift amount): This function offsets the position by
the designated distance from the machine zero point and set that position as
the zero point address
49
Positioning controller
❑ Zero point return function
❖ NOTE:
• Zero point return retry: This function retries
the machine zero point return with the
upper/lower limit switches during machine
zero point return. This allows machine zero
point return to be carried out even if the
axis is not returned to before the near point
dog with JOG operation, etc.
[Operation for zero point return retry function]
1) Movement in the designated zero point return direction starts with the machine
zero point return start.
2) The axis decelerates when the limit switch is detected.
3) After stopping with the limit switch detection, the axis moves in the opposite
direction of the designated zero point return direction at the zero point return
speed.
4) The axis decelerates when the near point dog signal turns OFF.
5),6) After stopping with the near-point dog signal OFF, carries out machine zero
point return in the designated zero point return direction. 50
Positioning controller
❑ Zero point return function
Example 1: Near-point dog method.
51
Positioning controller
❑ Zero point return function
Example 2: Stopper stop method 1.
(1) Start machine zero point return.
(2) Detect the near-point dog ON,
and start deceleration.
(3) Decelerate to Creep speed, and
move with the creep speed. Torque
limit is required. If the torque is not
limited, the servomotor could be
damaged in step (4)
(4) The axis contacts against the
stopper at the Creep speed, and
then stops.
(5) When the near-point dog turns
ON and the dwell time is passed, the
machine zero point return is
completed.
52
Positioning controller
❑ Zero point return function
Example 3: Stopper stop method 2.
(1) Start machine zero point return.
(2) Detect the near-point dog ON, and
start deceleration.
(3) Decelerate to Creep speed, and
move with the creep speed. Torque
limit is required. If the torque is not
limited, the servomotor could be
damaged in step (4)
(4) The axis contacts against the
stopper at the Creep speed, and then
stops.
(5) After stopping with the zero point
signal (a signal issued from an external
device upon detection of contact with
the stopper), the machine zero point
return is completed.
53
Positioning controller
❑ Zero point return function
Example 4: Stopper stop method 3.
54
Positioning controller
❑ Zero point return function
Example 5: Count method 1.
(1) Start machine zero point
return.
(2) Detect the near-point dog
ON, and start deceleration.
(3) Decelerate to Creep speed,
and move with the creep speed.
(4) After the near-point dog
turns ON and the movement
amount after near-point dog ON
has passed with the first zero
point signal. The machine zero
point return is completed.
55
Positioning controller
❑ Zero point return function
Example 6: Count method 2.
(1) Start machine zero point
return.
(2) Detect the near-point dog
ON, and start deceleration.
(3) Decelerate to Creep speed,
and move with the creep speed.
(4) After the near-point dog
turns ON and the movement
amount after near-point dog
ON" has passed. The machine
zero point return is completed.
56
Positioning controller
❑ Manual control
"Manual control" refers to control in which positioning data is not used, and a
positioning operation is carried out in response to signal input from an
external source.
• JOG operation
• Manual pulse generator operation
57
Positioning controller
❑ Manual control
❖ JOG operation
Use the hardware stroke limit function when carrying out JOG operation near
the upper or lower limits.
* If not use, the workpiece may exceed the operating range, causing an accident.
58
Positioning controller
❑ Manual control
❖ Manual pulse generator operation
59
Servo amplifier and servo motor
The servo amplifier controls the movement quantity and the speed according to
the commands given by the positioning controller. The servo motor then transmits
rotation to the drive mechanism after receiving signals from the servo amplifier.
60
Servo amplifier and servo motor
❑ Deviation counter function
• When the accumulated pulse quantity becomes equivalent to or less than a
specified quantity (in-position set value) after command pulses have stopped,
the servo amplifier outputs the positioning complete signal. The servo motor
continues operation even after that. Then, when the accumulated pulse quantity
becomes 0, the servo motor stops.
• The time after the servo motor outputs the positioning complete signal until it
stops is called the stop settling time.
61
Servo amplifier and servo motor
❑ Servo lock function
• The servo motor is controlled so that the accumulated pulse quantity counted in
the deviation counter becomes 0.
• For example, if an external force for forward rotation is applied on the servo
motor, the servo motor performs the reverse rotation operation to eliminate the
accumulated pulses.
62
Servo amplifier and servo motor
❑ Regenerative brake function
• During deceleration, because the servo motor rotates by the load inertia of the
drive mechanism, it functions as a generator and electric power returns to the
servo amplifier. The regenerative resistor absorbs this electric power and
functions as a brake (called a regenerative brake.)
• A regenerative brake is required to prevent regenerative over voltage in the
servo amplifier when the load inertia is large and operations are frequently
performed.
• The regenerative resistor is required when the regenerative power generation
quantity during deceleration exceeds the allowable regenerative electric power
of the servo amplifier.
63
Servo amplifier and servo motor
❑ Dynamic brake function
64
Servo amplifier and servo motor
65
Drive mechanism
66
Drive mechanism
• The servo motor stops with the precision ±Δl , which is within ±1 pulse against
the command pulse.
• The movement quantity of the workpiece is:
[Output pulses from position controller] x [Δl ]
• The moving part speed is:
[f0] x [Δl]
• Either “mm,” “inch,” degree,” or pulse can be selected for the positioning
command unit. Accordingly, when data such as the movement quantity per
pulse, positioning speed, or the positioning address in accordance with the
positioning command unit are set, pulse trains are output for the target
address, and positioning is performed.
67
Drive mechanism
❖ Useful equations:
68
Drive mechanism
❖ Useful equations:
• Number of rotations of motor during quick feed:
Rated number
rev v0
N0 = ≤ of rotations
min ∆S of servo
PLS ∆S
f0 = × (Electronic gear ratio)
S ∆l
During the process, the Electronic gear ratio and Speed reduction ratio can be
adjusted to fit the application’s needs
69
Drive mechanism
❖ Useful equations:
• Number pulse frequency during quick feed:
PLS ∆S 1
f0 = × N0 ×
S ∆l 60
70
Drive mechanism
a) Absolute method:
In this method, a point (absolute address) is specified for positioning while the
zero point is regarded as the reference. The start point is arbitrary.
71
Drive mechanism
b) Incremental method:
72