วันอาทิตย์ที่ 30 กันยายน พ.ศ. 2550

Motion Control System-Introduction

Introduction

Motion control system is, ability to control how objects move. In mechanical points of views, is ability to control position, velocity and acceleration of an object. In modern industrial machine, it has ability to control derivative of acceleration of an object.

To control object acceleration, we have to have a method to control its velocity. To control object velocity, we have to have ability to control its position. Therefor, a position control is a basic and key of motion control.

To control a position of an object. We can use a simple feedback control system. In face, it is not the best method to control an object. To control an object with optimum
efficiency, we can use an state equation to control an object. The state equation is, a mathematic model use to drescript an object. Unfortunately, it is inconvenient to determine equation for any object. The simple feedback control so, is widely used in industrial machine.

The feedback control system control an object by attempts to correct the error between a measured process variable and a desired setpoint by calculating and then outputting a corrective action that can adjust the process accordingly.

PID Controller.

There are three term for this kind of controlling.
  1. Proportional term
  2. Integral term
  3. Derivative term
This kind of controlling usually call PID Controller.

A model of controlling is shown below.




Equation in continuous form,



Equation in discrete form,



To calculate this equation, we use a microprocess, or integrate circuit, for example Micro controller, FPGA, CPLD, DSP or even a personal computer.

Please note that, from equation, we need to have a precise sampling timer. To accomplish this, we use a chip or computer with real-time operating system.

Motor

To move an object. We use energy transformation. For a machine, electric energy is more reasonable more than any kind of energy because its flexibility. Another device use to move an object include pneumatic or hydraulic system.

Motor is a device use to convert electrical to mechanical energy. There two (major) of motor.
  1. DC Motor, use DC electric current to rotate motor.
  2. AC Motor, use AC electric current to rotate motor.
  3. Pulse Motor, use pulse shape electric current to rotate motor.
Controller and Driver device.

Topically, we need a large size of motor, depend on how large machine is and how good we like motor to move. To control a motor, we need a control circuit, to calculate a control signal. To calculate a control signal, we need a measuring unit, to read a real position of motor. A desire position and real position will be compute together and result in a control signal.

A control signal is small level of amplitude. We heed to scale it up to be able to rotate a motor.

Servo motor, Servo drive.

Because widely use of motion control machine. There is a new set of position controller, which include motor, controller , driver and feedback device. This kind of device is called servo motor.

Actually, for a modern servo motor, it has ability to do motion control as well. But for a machine, let a machine controller generates a position command is more effective.



Motion kinematics

Because machine has a large size. A movement of objects is something have to be take care. We apply a large size of force, a movement can damage a device because its inertia. Movement of object is shown below;




From picture, we like a small number of response time of machine to reach a destination, a little steady-state error and overshoot.

Typically, getting all of above need a fine tune of a controller. Sometime, we have to compromise all of them.

Position command generation

As I mention above, to get a desire object acceleration, we have to have ability to control object 's velocity. To get a desire object's velocity, we have to ability to control object position.

In reverse, to control machine acceleration, we have to control its velocity. To control object velocity, we have to control its position.

In mathematic point of view, an acceleration is derivative of velocity and velocity is derivative of position. In reverse case, a position is integral of velocity and velocity is integral of acceleration.

For machine, it has a code that operator can use to control a machine. A code will be translated to position command and send to movement device.

Motion profile.

A motion profile is relative of position and velocity and acceleration at a given time. For a market machine, a third order polynomial is widely used to generate a motion profile. For a high-precision machine, a five order polynomial is used to gain a more smooth and more accurate of movement.

Below is motion profile graph,

Third order, Tapezoidal velocity profile



Fifth order, S-curve velocity profile

0 ความคิดเห็น:

This website is about cnc (Computer Numerical Control). There are many subjects on cnc, motion control is the basic of this kind of this machine. The motion control is consists of command intrepreter, path generation and motion control. In order to build some motion control system,you need a real-time system including another non-realtime work together , graphic user interface, file handling, Input/ Output control. A system that meet these requirement may be a group of many processor module running it job, and work together, or you can build this system using single cpu and real-time operating system

The author would like to share knowledge about cnc technology. In the beginning of learning, it very hard to find any reference for cnc development. The real-time os play an important role in electronic and computing industrial. You can reserse real-time behavious for time-critical and display the system status in the same time using only single cpu ;) Today, professional embedded system is mainly implemented using rtos (or embedded operating system) .