Microcomputer Application in Motion Control
Microcomputer Application in Motion Control
ISSN No:-2456-2165
Abstract:- This paper briefly examines the microcomputer This paper focuses on the roles of the microcomputer
both as a control element and as a feedback-signal both as a control element and as a feedback-signal synthesizer
processor in modern closed-loop motion-control systems. in a closed-loop electric drive system.
Problems of interfacing, effective data-acquisition and
real-time control are briefly highlighted. II. INTERFACING
The IBM PCs and compatibles can only function as the computer’s expansion slots. A typical board, like the
effective tools in a data-acquisition / control context if they PC30A, includes 16 analogue input lines, 2 analogue output
are extended by the addition of appropriate expansion lines, 24 programmable I/O lines and usually a counter timer.
boards. Such boards are designed to plug directly into any of
The digital computer can play a variety of roles in The output equation for a PID controller is given by
motion control systems based on the strategy adopted. Thus
in Computer Supervisory Control, the controllers are de
essentially analogue with the computer accessing the drive v o K p e K i edt K d (1)
variables and generating driving signals for establishing the dt
desired set point.
where e is the error, vois the output and Kp, Ki and Kd
In Direct Digital Control, the computer directly are the proportional, integral and derivative coefficients of the
controls all the loops of the system. Thus the computer controller. The precise value of constants Kp, Ki and Kd
directly sets the driving power of each loop-actuator, loop by determine the quality of control of the system. Implementing
loop. A serious setback in this type of system is that the PID controller in a microcomputer requires the conversion
whenever the computer ‘goes down’ or ‘crashes’, all the of Equation 1 into a corresponding difference equation. First,
loops become open thereby making the system ‘runaway’. An both sides of the equation are differentiated with respect to
effective but rather expensive remedy is to have a stand-by time to obtain
computer acting as a monitor ready to take-over control when
things go wrong with the main machine.
(2)
Microprocessor control is a distributed type computer
control strategy, in which each loop of the system has its own Since computer implementation is discrete in nature, the
microprocessor or single-chip microcomputer. This method equation must now be transformed into the discrete mode
guarantees stability, self-tuning, remote re-programmability byreplacing continuous time with discrete time as follows:
and ease of implementation of complex algorithms for
compensating dead time delays and enhances the application
of feedforward control. (3)
In Integrated Computer Control, several Here, Ts is the cycle time, vois the change in output
microcomputer-based single-loop controllers are individually and e is error change. Thus
connected to a central computer referred to as a cell (4)
supervisor. The cell supervisor provides displays, keeps
records and issues commands to the individual loop (5)
controllers. In some cases, the supervising computer itself
reports to a higher-level management computer system.
The difference equation for the PID controller implies
Compatibility of physical, electrical and data structures in
that we compute the present value of the output based on the
such a system must be ensured by the adoption of standards
previous output, the present error, previous errors, the
such as the Manufacturing Automation Protocol (MAP)[3].
sampling time and the controller constants.
VII. IMPLEMENTING DIGITAL COMPENSATORS
IX. SOFTWARE CONSIDERATIONS
The block diagram of Fig.2 represents a
The PID equation can easily be implemented using a
microcomputer-based position control system. The
high-level language like C, Pascal, FORTRAN PL/M, and so
discontinuous nature of the power converter that usually feeds
on. Alternatively, an assembly language can be used for this
the motor is often neglected for the purpose of analysis. The
purpose. High-level implementation has the following
system is characterized by Multirate sampling, i.e. the various
advantages:
loops have different sampling times. Thus, the speed loop,
which usually has a large bandwidth, is characterized by a Possibility of using floating point arithmetic
smaller sampling time than that of the outer position loop. Automatic handling of negative numbers
Possibility of utilizing a math co-processor
In the position loop, the microcomputer samples the
command position , feedback position and updates the Assembly language programming would require the
separation of the PID equation into several smaller steps that
speed command * through the PI position controller all at are definable in the assembly language of the host processor.
a sampling rate of 1 . In the speed loop, the
T s1
Computer implementation of PID controllers, whether
software- or hardware-based, can lead to unstable response
microcomputer samples the speed command *, the for some specific combinations of the proportional gain Kp
feedback speed , and generates the q-axis current and the sampling time Ts especially in second-order systems.
Another setback is the fact, that derivative computations in a
I 1
*
command at a sampling rate of
sq
T s2
sampled-data system can produce unpredictable output jerks
due to the introduction of DAC related delays. This
XII. CONCLUSION
REFERENCES