TwinCAT Supports Critical IoT Data Exchange Formats
Standardised IoT communication simplifies implementation of Industrie 4.0 concepts, says Sven Goldstein.
BECKHOFF Automation Pvt Ltd.
To simplify the implementation of cloud-based manufacturing concepts.
As information technology and automation technology continue to converge, cloud-based communication services are increasingly used in industrial control projects. As a result, PC-based control technology is gaining in importance as well. The TwinCAT automation software platform from Beckhoff supports relevant communication standards for this purpose, such as OPC UA, MQTT and AMQP, simplifying the implementation of cloud-based manufacturing concepts.
Pioneering automation solutions can be created today that extend the scope of conventional control systems through the implementation of big data, data mining as well as condition and power monitoring. Industrie 4.0 and Internet of Things (IoT) strategies, however, place new challenges on the communication among devices and services. In terms of the classic communication pyramid, a large-scale data exchange between sensors and higher-level layers is involved. Moreover, horizontal communication between devices continues to play an important role in all modern production facilities.
PC-based control integrates cloud services and message brokers
PC-based control provides key technologies for advanced communication scenarios and has become an integral part of many present day automation projects. The cloud is increasingly assuming the role of an IoT project enabler. Cloud service providers deliver their infrastructures and services in an abstracted manner for customers globally and thus minimise the complexities of system configuration.
Such cloud services can provide basic storage functions such as SQL or noSQL databases in addition to complex machine-learning algorithms that are hosted and executed on the cloud provider's infrastructure. When communicating with services in a public cloud, a message broker is frequently used for data ingestion. From the perspective of the transport protocol, the message broker represents a secure and standardised end point for distributing messages to the cloud, and serves as a means to access and use other cloud services (Figure 1). Popular examples of such broker services in public clouds include Microsoft Azure™ IoT Hub, Amazon Web Services IoT, IBM Watson IoT and Google IoT.
The IoT communication protocol: MQTT
The underlying transport protocol is the common denominator for all of these platforms. A protocol for data transport became established quite early on in the form of the Message Queuing Telemetry Transport (MQTT) protocol and was adopted by all major public cloud systems. Simplicity and low overhead make this protocol attractive even for applications where small embedded systems have to exchange data over unstable communication lines – either with the cloud or among each other.
Unlike conventional client/server applications, as familiar for many years in the area of automation, MQTT is based on the publisher/subscriber principle. As a result, integration in existing IT infrastructures is simplified because of the purely outbound data connections. In addition, established security mechanisms such as TLS can be used to secure the transport channel and implement device authentication mechanisms.
From an application perspective, this makes further processing of the data extremely difficult. Fortunately, the OPC Foundation has addressed the advantages of cloud-based communication based on publisher/subscriber principles in its Unified Architecture (UA) communication protocol. A corresponding working group within the OPC Foundation is extending the OPC UA specification based on publisher/subscriber mechanisms. MQTT was chosen as a transport protocol since the transport channel in OPC UA is exchangeable and the need to develop a transport channel for publisher/subscriber mechanisms can be avoided as a result. In this way, a high level of compatibility is achieved with existing systems, which is further supported by the increasing adoption of MQTT within cloud systems.
Seamless integration of standard IoT protocols in TwinCAT
With new IoT products and concepts, the TwinCAT 3 engineering and control software provides the ideal technological foundation for Industrie 4.0 concepts and IoT communication. What's more, new I/O components from Beckhoff, such as the EK9160 IoT Bus Coupler, enable seamless and easily configurable integration in public and private cloud applications.
For these purposes, the TwinCAT automation platform is enriched with the TwinCAT OPC UA and TwinCAT IoT supplementary products through the inclusion of standardised and secure communication paths (not only) for the cloud. The platform provides both MQTT publisher/subscriber and OPC UA functionalities such as classic client/server communication, historical access, alarms and conditions, as well as various mechanisms for communication with and access to the control logic contents. Communication can be carried out in this way using popular cloud systems, such as Microsoft Azure™, Amazon Web Services, IBM Watson, Google IoT, as well as private cloud scenarios within the respective corporate or machine network. Beckhoff systems can be connected to the cloud in this way using OPC UA and via third-party systems. Through the continual cooperation of Beckhoff in the corresponding working groups of the OPC Foundation, the first OPC UA publisher/subscriber prototypes have been successfully implemented even before the specification extensions were finalised.
Further information: www.beckhoff.com/twincat-iot
Beckhoff_01: Message broker as a connectivity service and gateway to different cloud ecosystems. Picture credits: Beckhoff
Beckhoff_02: TwinCAT IoT and TwinCAT OPC UA support implementation of standardised communication up to the cloud. Picture credits: Beckhoff
He is the Product Manager TwinCAT, Connectivity & IoT, BECKHOFF Automation Pvt Ltd. Email: email@example.com