- •16. ADVANCED LADDER LOGIC FUNCTIONS
- •16.1 INTRODUCTION
- •16.2 LIST FUNCTIONS
- •16.2.1 Shift Registers
- •16.2.2 Stacks
- •16.2.3 Sequencers
- •16.3 PROGRAM CONTROL
- •16.3.1 Branching and Looping
- •16.3.2 Fault Detection and Interrupts
- •16.4 INPUT AND OUTPUT FUNCTIONS
- •16.4.1 Immediate I/O Instructions
- •16.4.2 Block Transfer Functions
- •16.5 DESIGN TECHNIQUES
- •16.5.1 State Diagrams
- •16.6 DESIGN CASES
- •16.6.1 If-Then
- •16.6.2 Traffic Light
- •16.7 SUMMARY
- •16.8 PRACTICE PROBLEMS
- •16.9 PRACTICE PROBLEM SOLUTIONS
- •16.10 ASSIGNMENT PROBLEMS
- •17. OPEN CONTROLLERS
- •17.1 INTRODUCTION
- •17.3 OPEN ARCHITECTURE CONTROLLERS
- •17.4 SUMMARY
- •17.5 PRACTICE PROBLEMS
- •17.6 PRACTICE PROBLEM SOLUTIONS
- •17.7 ASSIGNMENT PROBLEMS
- •18. INSTRUCTION LIST PROGRAMMING
- •18.1 INTRODUCTION
- •18.2 THE IEC 61131 VERSION
- •18.3 THE ALLEN-BRADLEY VERSION
- •18.4 SUMMARY
- •18.5 PRACTICE PROBLEMS
- •18.6 PRACTICE PROBLEM SOLUTIONS
- •18.7 ASSIGNMENT PROBLEMS
- •19. STRUCTURED TEXT PROGRAMMING
- •19.1 INTRODUCTION
- •19.2 THE LANGUAGE
- •19.3 SUMMARY
- •19.4 PRACTICE PROBLEMS
- •19.5 PRACTICE PROBLEM SOLUTIONS
- •19.6 ASSIGNMENT PROBLEMS
- •20. SEQUENTIAL FUNCTION CHARTS
- •20.1 INTRODUCTION
- •20.2 A COMPARISON OF METHODS
- •20.3 SUMMARY
- •20.4 PRACTICE PROBLEMS
- •20.5 PRACTICE PROBLEM SOLUTIONS
- •20.6 ASSIGNMENT PROBLEMS
- •21. FUNCTION BLOCK PROGRAMMING
- •21.1 INTRODUCTION
- •21.2 CREATING FUNCTION BLOCKS
- •21.3 DESIGN CASE
- •21.4 SUMMARY
- •21.5 PRACTICE PROBLEMS
- •21.6 PRACTICE PROBLEM SOLUTIONS
- •21.7 ASSIGNMENT PROBLEMS
- •22. ANALOG INPUTS AND OUTPUTS
- •22.1 INTRODUCTION
- •22.2 ANALOG INPUTS
- •22.2.1 Analog Inputs With a PLC
- •22.3 ANALOG OUTPUTS
- •22.3.1 Analog Outputs With A PLC
- •22.3.2 Pulse Width Modulation (PWM) Outputs
- •22.3.3 Shielding
- •22.4 DESIGN CASES
- •22.4.1 Process Monitor
- •22.5 SUMMARY
- •22.6 PRACTICE PROBLEMS
- •22.7 PRACTICE PROBLEM SOLUTIONS
- •22.8 ASSIGNMENT PROBLEMS
- •23. CONTINUOUS SENSORS
- •23.1 INTRODUCTION
- •23.2 INDUSTRIAL SENSORS
- •23.2.1 Angular Displacement
- •23.2.1.1 - Potentiometers
- •23.2.2 Encoders
- •23.2.2.1 - Tachometers
- •23.2.3 Linear Position
- •23.2.3.1 - Potentiometers
- •23.2.3.2 - Linear Variable Differential Transformers (LVDT)
- •23.2.3.3 - Moire Fringes
- •23.2.3.4 - Accelerometers
- •23.2.4 Forces and Moments
- •23.2.4.1 - Strain Gages
- •23.2.4.2 - Piezoelectric
- •23.2.5 Liquids and Gases
- •23.2.5.1 - Pressure
- •23.2.5.2 - Venturi Valves
- •23.2.5.3 - Coriolis Flow Meter
- •23.2.5.4 - Magnetic Flow Meter
- •23.2.5.5 - Ultrasonic Flow Meter
- •23.2.5.6 - Vortex Flow Meter
- •23.2.5.7 - Positive Displacement Meters
- •23.2.5.8 - Pitot Tubes
- •23.2.6 Temperature
- •23.2.6.1 - Resistive Temperature Detectors (RTDs)
- •23.2.6.2 - Thermocouples
- •23.2.6.3 - Thermistors
- •23.2.6.4 - Other Sensors
- •23.2.7 Light
- •23.2.7.1 - Light Dependant Resistors (LDR)
- •23.2.8 Chemical
- •23.2.8.2 - Conductivity
- •23.2.9 Others
- •23.3 INPUT ISSUES
- •23.4 SENSOR GLOSSARY
- •23.5 SUMMARY
- •23.6 REFERENCES
- •23.7 PRACTICE PROBLEMS
- •23.8 PRACTICE PROBLEM SOLUTIONS
- •23.9 ASSIGNMENT PROBLEMS
- •24. CONTINUOUS ACTUATORS
- •24.1 INTRODUCTION
- •24.2 ELECTRIC MOTORS
- •24.2.1 Basic Brushed DC Motors
- •24.2.2 AC Motors
- •24.2.3 Brushless DC Motors
- •24.2.4 Stepper Motors
- •24.2.5 Wound Field Motors
continuous actuators - 24.1
24. CONTINUOUS ACTUATORS
Topics:
•Servo Motors; AC and DC
•Stepper motors
•Single axis motion control
•Hydraulic actuators
Objectives:
•To understand the main differences between continuous actuators
•Be able to select a continuous actuator
•To be able to plan a motion for a single servo actuator
24.1INTRODUCTION
Continuous actuators allow a system to position or adjust outputs over a wide range of values. Even in their simplest form, continuous actuators tend to be mechanically complex devices. For example, a linear slide system might be composed of a motor with an electronic controller driving a mechanical slide with a ball screw. The cost for such actuators can easily be higher than for the control system itself. These actuators also require sophisticated control techniques that will be discussed in later chapters. In general, when there is a choice, it is better to use discrete actuators to reduce costs and complexity.
24.2 ELECTRIC MOTORS
An electric motor is composed of a rotating center, called the rotor, and a stationary outside, called the stator. These motors use the attraction and repulsion of magnetic fields to induce forces, and hence motion. Typical electric motors use at least one electromagnetic coil, and sometimes permanent magnets to set up opposing fields. When a voltage is applied to these coils the result is a torque and rotation of an output shaft. There are a variety of motor configuration the yields motors suitable for different applications. Most notably, as the voltages supplied to the motors will vary the speeds and torques that they will provide.
continuous actuators - 24.2
•Motor Categories
•AC motors - rotate with relatively constant speeds proportional to the frequency of the supply power
induction motors - squirrel cage, wound rotor - inexpensive, efficient.
synchronous - fixed speed, efficient
•DC motors - have large torque and speed ranges
permanent magnet - variable speed
wound rotor and stator - series, shunt and compound (universal)
• Hybrid
brushless permanent magnet - stepper motors
•Contactors are used to switch motor power on/off
•Drives can be used to vary motor speeds electrically. This can also be done with mechanical or hydraulic machines.
•Popular drive categories
•Variable Frequency Drives (VFD) - vary the frequency of the power delivered to the motor to vary speed.
•DC motor controllers - variable voltage or current to vary the motor speed
•Eddy Current Clutches for AC motors - low efficiency, uses a moving iron drum and windings
•Wound rotor AC motor controllers - low efficiency, uses variable resistors to adjust the winding currents
A control system is required when a motor is used for an application that requires continuous position or velocity. A typical controller is shown in Figure 24.1. In any controlled system a command generator is required to specify a desired position. The controller will compare the feedback from the encoder to the desired position or velocity to determine the system error. The controller with then generate an output, based on the system error. The output is then passed through a power amplifier, which in turn drives the motor. The encoder is connected directly to the motor shaft to provide feedback of position.
continuous actuators - 24.3
command generator (e.g., PLC)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
desired position |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||
|
or velocity |
|
|
|
|
|
|
|
|
|
|
|
|
|
amplified |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
encoder |
|||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
voltage/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
voltage/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||
controller |
|
|
|
|
current |
|
|
|
power |
|
current |
|
|
|
|
motor |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Figure 24.1 A Typical Feedback Motor Controller
24.2.1 Basic Brushed DC Motors
In a DC motor there is normally a set of coils on the rotor that turn inside a stator populated with permanent magnets. Figure 24.2 shows a simplified model of a motor. The magnetics provide a permanent magnetic field for the rotor to push against. When current is run through the wire loop it creates a magnetic field.
I
I
magnetic field
axis of rotation ω
continuous actuators - 24.4
Figure 24.2 A Simplified Rotor
The power is delivered to the rotor using a commutator and brushes, as shown in Figure 24.3. In the figure the power is supplied to the rotor through graphite brushes rubbing against the commutator. The commutator is split so that every half revolution the polarity of the voltage on the rotor, and the induced magnetic field reverses to push against the permanent magnets.
motor |
|
shaft |
brushes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Top |
|
|
|
|
split commutator |
|
|
|
|
|
|
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
Front |
|
|
|
split commutator |
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
motor |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shaft |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
brushes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
V+ |
|
power |
V- |
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
supply |
|
|
|
|
|
|
|
|
Figure 24.3 A Split Ring Commutator
The direction of rotation will be determined by the polarity of the applied voltage, and the speed is proportional to the voltage. A feedback controller is used with these motors to provide motor positioning and velocity control.
These motors are losing popularity to brushless motors. The brushes are subject to
continuous actuators - 24.5
wear, which increases maintenance costs. In addition, the use of brushes increases resistance, and lowers the motors efficiency.
ASIDE: The controller to drive a servo motor normally uses a Pulse Width Modulated
(PWM) signal. As shown below the signal produces an effective voltage that is relative to the time that the signal is on. The percentage of time that the signal is on is called the duty cycle. When the voltage is on all the time the effective voltage delivered is the maximum voltage. So, if the voltage is only on half the time, the effective voltage is half the maximum voltage. This method is popular because it can produce a variable effective voltage efficiently. The frequency of these waves is normally above 20KHz, above the range of human hearing.
50% duty cycle |
|
|
|
|
Vmax |
|
|
|
|
V |
|
= |
50 |
|
eff |
--------V |
max |
||
0 |
|
100 |
||
|
|
|
|
|
t |
|
|
|
|
20% duty cycle |
|
|
|
|
Vmax |
|
|
|
|
V |
|
= |
20 |
|
eff |
--------V |
max |
||
0 |
|
100 |
||
|
|
|
|
|
t |
|
|
|
|
100% duty cycle
Vmax
|
|
V |
|
= |
100 |
|
|
|
eff |
--------V |
max |
||
0 |
|
|
|
100 |
||
|
|
|
|
|
|
|
|
|
t |
|
|
|
|
|
|
|
|
|
|
0% duty cycle
Vmax
|
|
|
|
V |
|
= |
0 |
|
|
|
|
|
eff |
--------V |
max |
||
0 |
|
|
|
|
|
100 |
||
|
|
|
t |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Figure 24.4 Pulse Width Modulation (PWM) For Control
continuous actuators - 24.6
ASIDE: A PWM signal can be used to drive a motor with the circuit shown below. The PWM signal switches the NPN transistor, thus switching power to the motor. In this case the voltage polarity on the motor will always be the same direction, so the motor may only turn in one direction.
|
|
|
|
|
|
V+ |
power |
|
|
|
|
|
|
||
V+ |
|
|
|
|
|
supply |
|
|
|
|
|
|
V- |
||
|
|
|
|
||||
|
|
|
|
|
|
|
signal |
DC motor |
|
source |
||
|
||
|
com |
Figure 24.5 PWM Unidirectional Motor Control Circuit