PLCs, DCSs & Controllers


PC-based control - it is time to change

February 2011 PLCs, DCSs & Controllers

Due to the modular structure of the extended runtime and the interfaces already predefined for many applications, TwinCAT 3 from Beckhoff offers the possibility to instance the different controllers among the machine units together on the machine’s central control hardware. These can be created independently of one another and in different programming languages. A large selection of already existing or self-developed basic modules thereby forms an automation kit, from which new applications can be easily created.

History

The approach of implementing traditional automation devices such as programmable logic controllers (PLCs) and motion controllers in software on powerful standardised hardware has been state-of-the-art for many years and is an approach now pursued by many suppliers. There are many different advantages, but the most important advantage is surely that the software is independent of the hardware to the largest extent, allowing the performance of the hardware to be adapted to suit the application. In addition, the application automatically benefits from the further development of the hardware. This applies in particular to PC hardware, where increases in performance still continue at a dramatic rate. The relative independence from a supplier, which is also the result of this separation of software and hardware, is also important to the user.

Modularisation

In order to master the complexity of modern machines and at the same time to reduce the necessary engineering expenditures, many machine manufacturers have begun to modularise their machines. Individual functions, assemblies or machine units are thereby regarded as modules, which are as independent as possible and are embedded into the overall system via uniform interfaces. Ideally a machine is then structured hierarchically, whereby the lowest modules represent the simplest, continually re-usable basic elements. Joined together they form increasingly complex machine units, up to the highest level where the entire machine is created.

Different approaches are followed in the implementation of machine modularisation from the point of view of control. They can be roughly subdivided into a local approach and a rather more central approach. In the local approach, each machine module is given its own controller, which determines the PLC functions and possibly also the motion functions of the module. The individual modules can be put into operation and maintained separately from one another and scaled relatively independently. The necessary interactions between the controllers are coordinated via communication networks (fieldbuses or Ethernet) and standardised via appropriate profiles.

The central approach concentrates the control functions of all modules in the common controller and uses very little pre-processing intelligence in the local I/O devices. The interactions can take place much more directly within the central controller, as a result of which the communication routes become considerably shorter, dead times are eliminated and the common use of the control hardware lowers the total cost.

However, the central method also has the disadvantage that the necessary modularisation of the control software is not automatically specified. At the same time, the possibility of accessing any information from other parts of the program in the central controller obstructs the module formation and the re-usability of this control software in other applications. Since no communication channel exists between the control units, an appropriate profile formation and standardisation of the control units frequently fall by the wayside.

The best of both worlds

The ideal controller for modular machines borrows from both the local and the central control architecture. A central, powerful and as-general-as-possible computer platform is ‘naturally’ used as the control hardware. The advantages of central control technology: lower total costs and the possibility to access all of the information from the overall system without communication losses are crucial arguments.

The advantages of the local approach can also be put into practice in the central controller by means of appropriate modularisation of the control software. Instead of allowing a large, complex PLC program and an NC with many axes to run, many small ‘controllers’ can co-exist in a common runtime on the same hardware with relative independence from one another. The individual control modules are encapsulated and offer their functions to the outside via standardised interfaces or use appropriate functions of other modules or the runtime. A meaningful profile formation takes place by the definition of these interfaces and the standardisation of the appropriate parameters and process data. Since the individual modules are implemented within one runtime, direct calls to other modules are also possible via appropriate standardised interfaces. The modularisation can therefore take place at meaningful limits, without having to give consideration to communication losses.

During the development or commissioning of individual machine modules, the associated control modules can be created and tested on any control hardware with the appropriate runtime. Missing connections to other modules can be emulated during this phase. On the complete machine they are then instanced together on the central runtime, which only needs to be dimensioned such that the requirements of all instanced modules (memory, tasks and computing power) are fulfilled.

TwinCAT 3 modules

A TwinCAT module consists of a series of formally defined properties, which are partly prescribed and partly optional. The properties are formalised to the extent that general use becomes possible, both among themselves and from the outside. Each module includes a module description file (XML format) for the configuration of the modules and their relationships to one another. If a module is instanced in the TwinCAT runtime, then it registers itself with a central system instance, the module manager. This makes it reachable and parameterisable for other modules and also for general tools.

Modules can be compiled independently of one another and therefore also developed, tested and maintained independently of one another. They can be structured very simply and contain, for example, only one small function such as a low-pass filter; however, they can also be internally very complex and contain, for example, the complete controller of a machine unit. There are many different applications for modules; all of the tasks of an automation system can be and are packed into modules. As a result, no distinction is made between whether the modules primarily represent the basic functions of an automation system, such as real-time tasks, fieldbus drivers or a PLC runtime system, or user and application specific algorithms for the control or regulation of a machine unit.

System modules

The TwinCAT runtime also makes a set of so-called system modules available, which provide the basic services of the runtime to other modules. These system modules possess a fixed, constant object ID and can thus be reached by other modules. One example of a system module is the real-time system, which makes the basic services of the real-time system available via its ITcRTime interface – eg, the generation of real-time tasks. The ADS router is likewise implemented as a system module, so that other modules can register their ADS port there.

Creation of modules

Modules can be created both in C++ and in IEC 61131-3. The object oriented extensions of the PLC integrated in TwinCAT 3 are used for this. Modules from both worlds can interact via interfaces in exactly the same way as pure C++ modules with one another. With the aid of the object oriented extensions in the PLC, the same interfaces are used as in C++. The PLC modules also register themselves with the module manager and are accordingly reachable via it. The complexity of the modules is also variable in the PLC modules; it makes no difference whether only a small filter module is generated or whether a complete PLC program is packed into a module.

In fact, by means of automatism, every PLC program is a module in the sense of TwinCAT 3 modules. Each classic PLC program is automatically packed into a module and registers itself with the module manager and with one or more task modules. Access to the process data of a PLC module (eg, mapping to a fieldbus driver) takes place likewise via the defined data areas. This behaviour remains invisible to the PLC programmer until they decide to explicitly define parts of the PLC program as TwinCAT modules in order to use them with appropriate flexibility.

TwinCAT 3 runtime

The TwinCAT runtime offers a software environment in which TwinCAT modules are loaded, implemented and managed. It offers additional basic functions so that the system resources can be used (memory, tasks, fieldbus and hardware access etc). The individual modules do not have to be created using the same compiler and can therefore be independent of one another and can originate from different manufacturers.

A series of system modules is automatically loaded at the start of the runtime, so that their properties are available to other modules. However, access to the properties of the system modules takes place in the same way as access to the properties of normal modules, so that it is unimportant to the modules whether the respective property is made available by a system module or a normal module.

Expandability

TwinCAT 3 has itself been developed internally in the form of modules. Properties such as fieldbus drivers or motion functions have been created in accordance with the same rules and conventions that also apply to more application-oriented modules. New functions, algorithms and also the support of additional communication protocols can be easily added as a result and can supplement or replace the modules that exist in the standard scope.

The support of proprietary hardware (fieldbus card, frame grabber etc) can be facilitated with appropriate driver modules and is then equal to, and available in addition to the existing drivers in TwinCAT 3. (http://instrumentation.co.za/+C14673)

For more information contact Kenneth McPherson, Beckhoff Automation, +27 (0)11 795 2898, [email protected] , www.beckhoff.co.za



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Innovative separation of recyclable materials
Beckhoff Automation Fieldbus & Industrial Networking
A plant built by Belgian specialist machine builder, Absolem Engineering features an innovative process for separating recyclable materials. Using PC-based control from Beckhoff, a major problem has been elegantly solved - the generation of different signal sequences for the exact synchronisation of different camera systems.

Read more...
ABB updates distributed control system
ABB South Africa PLCs, DCSs & Controllers
Leveraging 30 years of continuous innovation and reliability, ABB’s updated Freelance 2024 distributed control system (DCS) offers greater plant adaptability, faster and more reliable device communication, improved system security, and seamless data exchange.

Read more...
Four ways modern operations control can boost sustainability and efficiency
PLCs, DCSs & Controllers
With the growing importance of digital transformation, HMIs and scada have evolved from control panels to vast operational hubs. Next-gen HMI/scada can bring together data, personalisation, and advanced insights to successfully achieve organisational goals, it is important to think about HMI/scada holistically within the operations ecosystem.

Read more...
Open control system for retrofit of conveyor control system
Beckhoff Automation Editor's Choice
For every online retailer, warehouse logistics is part of the critical infrastructure. An Australian office equipment supplier has retrofitted the warehouse logistics installation of its central warehouse, and replaced the proprietary decentralised controllers of the conveyor lines with PC-based control from Beckhoff, based on powerful EtherCAT communication.

Read more...
The convergence of intelligence: DCS, SCADA and TLC
Schneider Electric South Africa PLCs, DCSs & Controllers
In the early days of industrialisation, control systems were primarily mechanical, and relied on manual intervention and simple feedback loops to manage processes. Now, in the 21st century, industrial process automation systems are mind-blowingly intelligent, and provide almost unparalleled control and monitoring capabilities, making them integral to modern industrial systems.

Read more...
PC-based control for advanced hydrogen storage technology
Beckhoff Automation Editor's Choice PLCs, DCSs & Controllers
The proportion of renewable energies from solar, wind and water is rising continuously. However, sufficient storage options are of the essence to use these energies as efficiently as possible. GKN Hydrogen offers a particularly compact and safe option, low-pressure metal hydride hydrogen storage systems with PC-based control from Beckhoff.

Read more...
ABB modernises key board mill
ABB South Africa PLCs, DCSs & Controllers
ABB has secured a landmark contract to modernise Smurfit Kappa’s Paper Machine 5 at its corrugated cardboard mill near Mexico City. ABB will provide Smurfit Kappa with DCS, accompanied by a comprehensive paper machine drives system, encompassing some of the market’s most advanced drives and motors meticulously designed to optimise PM5’s performance.

Read more...
The synapses of the distributed control system
Schneider Electric South Africa PLCs, DCSs & Controllers
Industrial operations require a distributed control system (DCS) to coordinate and control their process subsystems in real time. Like the brain, a DCS is a multitasking maestro, controlling and coordinating complex processes in a myriad of industrial setting such as large manufacturing plants, providing valuable top-down control.

Read more...
Modular assembly platform for clean manufacturing
Beckhoff Automation PLCs, DCSs & Controllers
JR Automation delivers custom automated solutions for numerous industries. It has done this through its scalable, modular automation platform, FlexChassis, which speeds up time to market while cutting costs. The company chose the XTS linear transport system from Beckhoff because of its speed, and modular design that allows for multiple configurations.

Read more...
Automation of a thermoforming machine for recyclable packaging
Beckhoff Automation IT in Manufacturing
Renewable cellulose is an excellent alternative, which is why Hamer has joined forces with Beckhoff to develop a thermoforming machine for water-based cellulose pulp.

Read more...