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:

PC-based control for a food capsule and pod packaging machine
Beckhoff Automation Editor's Choice
For TME, a machine builder specialising in the packaging of powdered foods, Beckhoff’s PC-based control technology offers unlimited opportunities when it comes to performance and innovative capacity in terms of flexibility, scalability and openness.

Read more...
Multi-touch panel generation in a smart design
Beckhoff Automation Operator Interfaces, Switches & Relays
Following over 25 years of successful in-house panel production and 12 years of expertise in multi-touch design, Beckhoff is bringing out a new smart panel design, the Next multi-touch panel generation.

Read more...
Next-generation PLC technology with advanced chatbot functionality
Beckhoff Automation IT in Manufacturing
Beckhoff is taking automation technology to the next level with TwinCAT PLC++. Both engineering and runtime are noticeably faster, without compromising on TwinCAT’s signature strengths of seamless integration, compatibility and openness.

Read more...
German Chancellor visits Beckhoff at Hannover Messe
Beckhoff Automation News
As part of the traditional Hannover Messe opening tour, Federal Chancellor of Germany, Olaf Scholz visited German company, Beckhoff Automation. Hans Beckhoff, managing director and owner of Beckhoff Automation, presented his company and its comprehensive expertise in the field of software and AI.

Read more...
PC-based control for fertiliser
Beckhoff Automation Editor's Choice Fieldbus & Industrial Networking
On a farm in the USA, valuable ammonia is extracted from slurry and processed into ammonium sulphate. NSI Byosis has transformed this complex process into a flexible modular system. This modular approach requires an automation solution with flexible scalability in both hardware and software, which this Dutch company has found in PC-based control from Beckhoff.

Read more...
New modules for distributed integration of intrinsically safe signals
Beckhoff Automation IS & Ex
Beckhoff provides a compact acquisition solution for intrinsically safe signals up to zone 0/20 with the IP67-protected EtherCAT Box modules of the EPX series.

Read more...
PC-based automated production system for photo calendars
Beckhoff Automation Fieldbus & Industrial Networking
Producing up to 1800 photo calendars per hour using more than 90 servo axes, Durrer Spezialmaschinen develops a wide variety of special-purpose machines from the design phase to commissioning. A new production system for photo calendars proves the importance of comprehensive motion control expertise, with AM8000 servomotors and AX5000 servo drives from Beckhoff used for over 90 dynamically controlled axes.

Read more...
Beckhoff’s TwinCAT Vision functionality extended
Beckhoff Automation Fieldbus & Industrial Networking
The Beckhoff TwinCAT 3 Vision software portfolio offers additional image processing functions and extra options for camera integration.

Read more...
Get started with machine vision right away
Beckhoff Automation Fieldbus & Industrial Networking
The VUI2000 series from Beckhoff is being joined by four new vision units.

Read more...
TwinCAT Vision functionality extended
Beckhoff Automation IT in Manufacturing
The image processing and camera integration capabilities of Beckhoff’s TwinCAT 3 Vision software have been expanded.

Read more...