PLCopen part 4 blurs the lines among PLCs, robotic, and motion control

Inside Machines: The PLCopen working group for motion control has standardized and logically defined all aspects of machine control programming, providing one of the best attempts of integrating PLC, robot, and motion control in an easy-to-understand language common among many manufacturers.


The PLCopen motion standard includes part four, contains function blocks for kinematic transformations. Typically, such transformations have to be supplied by the vendor, so for most manufacturers, if the motion controller doesn’t support it, it cannot beMore end users are asking for robots, motion controllers, and programmable logic controllers (PLCs) to be programmed in familiar PLC languages, which are easier for machine builder programmers to understand, and for end users' service personnel to maintain. To reduce the complexity and harmonize the look, feel, and function of three separate platforms, the PLCopen working group for motion control has come up with a set of standardized tools to allow coordinated motion to be run directly from a PLC-like programming environment.

Traditionally, industrial robots have been programmed in complex proprietary languages that are difficult for anyone but robot programmers to understand. Motion controllers are wide and varied, and are usually programmed using a PC library or another proprietary language, while PLCs tend to be programmed in ladder logic. In today's automation environment, PLCs, motion controllers, and robots must be tightly integrated. Many elements are incorporated into the machine design with each requiring the programming strengths exhibited by a proprietary language. 

PLC programming

Since their inception in 1968 through a request by General Motors (to come up with a way to replace hardwired relays), PLCs have been programmed in ladder logic. They can easily control processes that require digital and analog devices, but more complex processes that are sequential in nature are more difficult than they would be in programming languages such as BASIC, C, or C#. PLCs have evolved to include programming in BASIC or C, but most still rely on ladder logic [among the IEC 61131-3 programming languages].

Many low-end PLCs support motion control via step and direction outputs. Some higher level motion control can be achieved through expensive dedicated modules that must be added to the basic system. Even though most devices are programmed in ladder logic, most require an intimate knowledge of the programming environment, which changes from manufacture to manufacture, and their higher level functions are usually achieved through specialized function blocks.

Motion controllers

Motion controllers for the general market typically include interpolated motion (linear and circular), coordinated motion, gearing, camming, and event triggered motion (where a sensor and position latch are used). Older controllers used dedicated inputs and outputs per axis. Motion inputs such as enable, over travel limits, and encoder inputs (one or two per axis) and motion outputs like servo command (normally +/- 10 V analog) and/or stepper command (step and direction) were provided. Most controllers also have some general purpose I/O capability. New controllers rely on digital networks like EtherCAT [EtherCAT Technology Group] or Mechatrolink [Mechatrolink Members Association] to pass control signals to the drives and receive and transmit the digital IO connection, which is wired directly to the drive.

When dealing with the motion on linked axes, the typical motion controller cannot compete with robot controllers. With typical motion controllers, if the end effector had to move to a specific point, it was necessary to figure out the correct positions for each of the axes. Inverse kinematics is needed for robots and other machines with mechanically linked mechanisms. The use of inverse kinematics requires formulas to translate the specific point in world space to the individual positions that each joint (or axis) needs to be at to move the mechanically connected mechanisms to the end point. Again, as these systems are wide and varied, most require an intimate knowledge of a specific programming environment. 

Robotic controllers

Robot controllers have been engineered to achieve the best control of specific complex mechanisms. Most controllers are manufactured for a specific device and are programmed in a specialized language created by the manufacturer that varies greatly from platform to platform. Robot controllers are very efficient when controlling the library of devices for which they were designed; however, most are not the best in terms of communications, integration, or programming power.

Goal of the PLCopen standard is to allow programming independent of the hardware or specific manufacturer. When hardware vendors support the same underlying code, and behave in the same manner, the programmer is free from learning proprietary languages associated with each manufacturer.

In the past, often only the dedicated robot controllers supported kinematics and inverse kinematics. Now, it's a lot more common for many motion controllers to offers some subset of robot-type commands, especially in controllers targeted for packaging automation. The lines are being blurred between robot controllers and motion controllers, but it is still up to the programmer to coordinate between these different systems, with each programmed in a different language usually designed for a specific purpose.

PLC and motion together

The PLCopen working group for motion control has standardized and logically defined all aspects of machine control programming. This is one of the best attempts of marrying PLC, robot, and motion control in one easy-to-understand language that is common among many manufacturers.

Many of the function blocks are basic; for example, relative and absolute moves are function blocks which are easily understood in any motion control system. The standardization and common look and feel of multiple control systems is an advantage when the difficulty of the required motion increases. For example, it is easy to string relative or absolute moves together when each individual move stops before the next move begins. But imagine a more complex set of movements where the axis is required to transition to the next move at some nonzero velocity, blending the individual moves into one fluid motion throughout the entire path of the axis. PLCopen Motion Control defines standard blending operations to allow the programmer to achieve this fluid motion with common blending and transition modes that a manufacturer can implement.

One of the basic issues when moving multiple axes together with a mathematical model that controls mechanically linked axes, is that it is not always clear which axes are critical to move in synchronization. So when a fault occurs, the motion controller cannot always tell which other axes are affected. PLCopen addresses this by defining a motion group, so that the controller can generate a proper error response when one of the grouped axes has an error. This grouping concept allows the programmer freedom to concentrate on the specific task required of the machine and have the controller take care of the function of the group through implementation of the group state machine shown in the diagram.

The PLCopen motion standard includes part four, which contains function blocks for coordinated motion. They define a standardized set of function blocks for the complex control of movement within 3D space that includes blocks for kinematic transformations. Typically, these transformations have to be supplied by the vendor, so for most manufacturers, if the motion controller doesn't support it, it cannot be added.

There are the basic supported mechanisms like SCARA and delta, but in addition to these, any programmer is allowed to write his own kinematic transformations. Specialized functions are available to call these kinematic routines whenever a world position needs to be converted into joint space, or vice versa.

This standard is now creating a bridge between the once separate worlds of PLCs, computer numerical controls (CNCs), robotics, and motion. It is now possible to program the complete control of the machine from one PLC-like system. This standard has allowed robots and motion controllers to become integral parts of a control system, rather than independent systems. They integrate motion control and logic control, the two primary requirements for modern machine control. There are definitive advantages to having motion control and logic control in the one package, including, but not limited to, practically unlimited exchange of data between the logic and motion engines, without the latency, which can limit performance in traditional systems. In fact, it is now possible to perform perfect synchronization between a robot and additional servo axes using a machine controller, a feat which was previously possible purely in the robot controller domain. 

Programming independence

Ultimately, the goal of the PLCopen standard is to allow the program code to be independent of the hardware or specific manufacturer. When different hardware vendors support the same underlying code, and behave in the same manner, the programmer is free from learning proprietary languages associated with each manufacturer. This results in allowing complex complete machine control systems with improved accuracy and throughput to be developed in a shorter time to market. PLCopen has allowed this development by reducing engineering complexity and the specialized training required so that the overall system is more familiar to wide array of existing PLC programmers.

- Jamie Solt is senior motion product engineer at Yaskawa America Inc. Edited by Mark T. Hoske, content manager, CFE Media, Control Engineering,

ONLINE April has more information and links to related articles.

Key concepts

  • PLCopen motion standard part four contains function blocks for coordinated motion.
  • The standard integrates PLC, robot, and motion control in an easy-to-understand language common among many manufacturers.
  • When automation vendors support the standard, the programmer is free from learning proprietary languages associated with each manufacturer.

Consider this

Can this standard make software interoperate with any hardware used for motion control? 

ONLINE extra

Read related articles on programming and robotics, below.

Jim , AZ, United States, 03/19/14 05:55 PM:

What PLC's can LCopen be used with?
KHAMMONH , Non-US/Not Applicable, Thailand, 04/03/14 02:50 AM:

In my point of view ,theoretically we can do almost every thing by software but in practical point of view there are a lot of factors to consider. For example in a simultaneous multiaxes motion where one axis has very small distance but other has very large distance in this case software alone won't solve the problem if the hardware bit resolution isn't high enough on the other hand each kinematic link could have a gap and/or backlash to compensate so to blend such motion isn't easy job. Moreover in a 3D space motion from one point to other there is a lot of alternative especially for those links that has more degree of freedom says robot arm. If we take inertia into account a S-curve profile would needed thus add more complexity to program algorithm . I think it is hard to build a function block (canned program)as a build in motion control in PLC. It is better to have a special motion control hardware do all computational job optimize motion than send a step and direction pulse (S-curve profile) to PLC or Motion drive.
The Top Plant program honors outstanding manufacturing facilities in North America. View the 2015 Top Plant.
The Product of the Year program recognizes products newly released in the manufacturing industries.
The Engineering Leaders Under 40 program identifies and gives recognition to young engineers who...
Prescriptive maintenance; Hannover Messe 2017 recap; Reduce welding errors
Safety standards and electrical test instruments; Product of the Year winners; Easy and safe electrical design
Safer human-robot collaboration; 2017 Maintenance Survey; Digital Training; Converting your lighting system
Mobility as the means to offshore innovation; Preventing another Deepwater Horizon; ROVs as subsea robots; SCADA and the radio spectrum
Future of oil and gas projects; Reservoir models; The importance of SCADA to oil and gas
Big Data and bigger solutions; Tablet technologies; SCADA developments
Automation modernization; Predictive analytics enable open connectivity; System integration success; Automation turns home brewer into brew house
Commissioning electrical systems; Designing emergency and standby generator systems; Paralleling switchgear generator systems
Natural gas for tomorrow's fleets; Colleges and universities moving to CHP; Power and steam and frozen foods

Annual Salary Survey

Before the calendar turned, 2016 already had the makings of a pivotal year for manufacturing, and for the world.

There were the big events for the year, including the United States as Partner Country at Hannover Messe in April and the 2016 International Manufacturing Technology Show in Chicago in September. There's also the matter of the U.S. presidential elections in November, which promise to shape policy in manufacturing for years to come.

But the year started with global economic turmoil, as a slowdown in Chinese manufacturing triggered a worldwide stock hiccup that sent values plummeting. The continued plunge in world oil prices has resulted in a slowdown in exploration and, by extension, the manufacture of exploration equipment.

Read more: 2015 Salary Survey

Maintenance and reliability tips and best practices from the maintenance and reliability coaches at Allied Reliability Group.
The One Voice for Manufacturing blog reports on federal public policy issues impacting the manufacturing sector. One Voice is a joint effort by the National Tooling and Machining...
The Society for Maintenance and Reliability Professionals an organization devoted...
Join this ongoing discussion of machine guarding topics, including solutions assessments, regulatory compliance, gap analysis...
IMS Research, recently acquired by IHS Inc., is a leading independent supplier of market research and consultancy to the global electronics industry.
Maintenance is not optional in manufacturing. It’s a profit center, driving productivity and uptime while reducing overall repair costs.
The Lachance on CMMS blog is about current maintenance topics. Blogger Paul Lachance is president and chief technology officer for Smartware Group.
Featured articles highlight technologies that enable the Industrial Internet of Things, IIoT-related products and strategies to get data more easily to the user.
Compressed air plays a vital role in most manufacturing plants, and availability of compressed air is crucial to a wide variety of operations.
This digital report will explore several aspects of how IIoT will transform manufacturing in the coming years.
Maintenance Manager; California Oils Corp.
Associate, Electrical Engineering; Wood Harbinger
Control Systems Engineer; Robert Bosch Corp.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
click me