Smooth Moves

March 22, 2001
Talkative tank-filling systems, servocontrolled veneer slicers, and spline algorithms are just some of the topics covered in this motion-control reference guide

Peter Nachtwey
Delta Computer Systems Inc.
Vancouver, Wash.

Edited by Leland E. Teschler

The controller for a shape sawing machine from USNR Corp., Woodland, Wash., employs a cubic spline calculation to essentially steer a saw blade and arbor through a log being fed into the machine. A computer sizes up the log ahead of time and decides on a strategy that will produce the optimum cut with minimum waste. Chipper and saw blades move through the log according to downloaded spline parameters. The resulting cuts follow the grain and natural curve of the wood. The boards coming off the saw are not straight, but will be after drying.

The RMC100 motion controller from Delta Computer Systems, Vancouver, Wash., is one example of a system able to implement cubic-spline interpolation. It is pictured here with a magnetostrictive displacement transducer from MTS Systems Corp., New Ulm, Minn., which can interface to a synchronous serial interface port on the computer to measure linear position of actuators such as hydraulic cylinders.

The contrasts between a cubic and fifth-order spline become evident in plots of position, velocity, and acceleration for a system accelerating to 10 in./sec in 0.1 sec. One point to note is that system acceleration peaks at a higher value in cubic spline interpolation. This means a cubic interpolation scheme demands more torque than a fifth-order polynomial to follow a trajectory.

Speed and accuracy are both common goals for many motion-control systems. In this regard, some motion-control vendors now incorporate spline functions into their control algorithms. Such functions can simplify system design and tuning. Moreover, spline algorithms can help implement control regimes that involve ramping from one velocity to another.

Spline functions emulate flexible strips of wood that can bend smoothly between fixed points. Controllers that implement these functions are given a few position coordinates, as a function of time or as a function of another axis position, and then produce a spline profile running along these control points.

The controller is simple to program in that the system designer needn't calculate multiple velocities and acceleration rates along the profile.

HMI software typically prevents the user from inadvertently exceeding position, velocity or acceleration limits. System performance improves because a single spline function replaces many point-to-point motion steps.

Splines are particularly appropriate for acceleration feed-forward control regimes. Linear or trapezoidal ramps from one velocity to another shouldn't be used in acceleration feed-forward as there will be step jumps in the control output.

It can also be useful to explore why cubic-spline interpolation is more appropriate for motion control than, say, interpolations involving higher order polynomials. The primary reason is one of computational simplicity. A cubic spline interpolation can be expressed as a system of linear equations configured as what is called a tridiagonal matrix, one having nonzero elements only on the diagonal plus or minus one column. The software algorithm for solving a tridiagonal matrix is well known and relatively straightforward.

The inputs to the routine are the known points on the curve as a function of time or another axis. The basic routine can be enhanced to allow either the accelerations or velocities to be set to zero at the end points of the spline. Velocities at the end points of the spline (corresponding to the end points of the move) are, in fact, zero in most practical applications.

The first part of the routine uses entered positions and time intervals between the positions to calculate the acceleration at each point. The second part of the algorithm calculates a trajectory using the previously constructed table. A time value is used to index into the table. Usually, this time value will lie between two specified points. Another part of the routine calculates a cubic interpolation of position at that time, calculates a second-order interpolation to get speed, and a linear interpolation to calculate the acceleration.

A point to note is that the algorithm calculates the table for the entire spline at once. The amount of memory needed for the table rises arithmetically with the number of entered points. But cubic interpolation is well within the capabilities of most 16-bit microprocessors or DSPs.

One of the benefits of a cubic-spline interpolation is that the interpolation formula is smooth in the first derivative (i.e., no abrupt change in velocity when arriving and departing from a point on the curve) and continuous in the second derivative (acceleration).

One application for spline interpolation is in pouring molten metal from a crucible. If the flow of molten metal is to be kept relatively constant, the pouring motion will be nonlinear. A linear actuator tilts the crucible. The feedback variable in this case is the tilt angle of the crucible. The change in tilt angle with respect to time grows higher as more material pours out.

The typical approach to set up this application is to build a data table by manually jogging or tilting the crucible at specific angles between zero and 90°. At each point the developer records the linear position of the actuator tilting the crucible.

This data goes into defining a spline that converts tilt angles to linear position. When the user wants an angle that lies between two of the programmed points, the controller does a cubic interpolation to calculate the necessary linear actuator position.

Finally, it is interesting to note where interpolations using higher order polynomials have application. The benefit of trajectories specified via higher order polynomials is that they potentially let the developer specify more properties of the boundary conditions and points on the curve.

The cost, however, is computational complexity. For example, fifth-order splines are usually calculated on the fly as each point is passed. The interpolation is good only for the next four points. The algorithm requires less table space than a cubic spline, but more processing. Moreover, it may not be possible to state the equations in the form of a tridiagonal matrix. This is another way of saying the matrix manipulations can be lengthy and time consuming.

Sponsored Recommendations

A closer look at modern design considerations for food and beverage

April 9, 2024
With new and changing safety and hygiene regulations at top of mind, its easy to understand how other crucial aspects of machine design can get pushed aside. Our whitepaper explores...

Condition Monitoring for Energy and Utilities Assets

April 9, 2024
Condition monitoring is an essential element of asset management in the energy and utilities industry. The American oil and gas, water and wastewater, and electrical grid sectors...

Strategizing for sustainable success in material handling and packaging

April 9, 2024
Download our visual factory brochure to explore how, together, we can fully optimize your industrial operations for ongoing success in material handling and packaging. As your...

Fueling the Future of Commercial EV Charging Infrastructure

April 9, 2024
Miguel Gudino, an Associate Application Engineer at RS, addresses various EV charging challenges and opportunities, ranging from charging station design strategies to the advanced...

Voice your opinion!

To join the conversation, and become an exclusive member of Machine Design, create an account today!