3S-Smart Software Solutions is launching in Israel a software platform suited to tomorrow's automation technology environment – the result of research the company conducted among machine builders around the world

Roland Wagner, CTO of CODESYS
Engineering costs are at the top of the list of items that machine and equipment manufacturers need to optimize. Many companies in the machine and equipment manufacturing sector are now examining which ideas or paradigms they should use as they look for the control software of the future. After all, value is increasingly created through software. At the same time, users expect further growth in networking capabilities and complexity, and even demand better capabilities for mastering this complexity.
This is the finding of a recent study by the VDMA (autumn 2011, "The requirements of machine manufacturers", quoted in the journal Computer & Automation, WEKA, 01/2012).
Roland Wagner summarizes the findings he gathered not only from his own research but also from discussions with many customers and users of CODESYS, which complies with the IEC 61131-3 standard. He divides these findings into two trends:
- Encapsulating complexity in modules from which complete machines or equipment items are produced.
- Integrating proven functions from the IT world into automation systems
These trends and their implementation are described below on the basis of CODESYS.
Addressing Modules in the Production of Machines or Equipment
The questions that visionaries striving for progress among today's automation technology manufacturers are asking are:
- "Do we need new programming concepts or standards to master the ever-increasing requirements?"
- "Should we move to new paradigms? Can we assess all the costs and risks involved in moving to other programming approaches?"
- "Does the move justify the costs involved?"
- "Can a significant leap in productivity be achieved through PLC programming without leaving IEC 61131-3?"
This is possible, especially in machine building, if a regularly recurring software component can be used – whether for standard machines that require adaptation of different options and customer-specific changes, or for specifically assembled machines based on regularly recurring functional units and components. Applications such as these define the daily work of application programmers. On the one hand they offer enormous rationalization potential for project engineers, and at the same time they offer high potential for minimizing errors.
Another answer to the question of the future of programming in automation technology is based precisely on this approach. If the complexity of machines or equipment is encapsulated in modules, the IEC 61131-3 application code can be generated from them automatically. 3S-Smart Software Solutions has developed a new product family based on this approach: CODESYS Application Composer.
System Overview: CODESYS Application Composer
Unlike other ideas currently on the table, the application programmer does not need to leave the familiar IEC 61131-3 development environment to benefit from Application Composer: this familiar tool has been extended with the module concept, on the basis of which the application is "composed".
The term "composition" already implies that application programming no longer has to be done by a software developer. In fact, a technologist, a project engineer or even a customer consultant can do the engineering. To do so, they need to know and understand the machine and its functions, but they do not also need to be software developers. To make this possible, the functional units mentioned earlier are encapsulated in modules that implement the parts of the machines and equipment.
On the one hand, these modules can be mechatronic components such as pneumatic cylinders, tool changers, temperature controllers, feed units and so on. On the other hand, the modules can also include software functions such as part management, user management, sequence control, etc. The decisive point is this: these modules contain all the engineering aspects of CODESYS:
- IEC 61131-3 programming code for the units, structured as libraries
- Physical input and output data with which the unit communicates
- The ability to use application-dependent values that must be expressed as parameters
- Visualization screens for assigning roles or for operation
The user creates ("composes") a module tree from the modules, which ultimately represents the machine. The modules know their own interfaces and therefore know at which point in the tree they can be inserted, that is, which "parent modules" or "child modules" they can have. The project engineer can therefore compose and configure the machine within the framework defined by the modules.
Because the modules know their interrelationships within the module tree, the need for parameter configuration is also reduced to the essential settings only, which are made in the module tree editor. With a graphical mapping tool, the user can conveniently link the input and output nodes "requested" by the modules in use to a real process image.
If the machines or equipment require chronological sequence control for their module tree, this sequence is created with modules called "program sequence modules". To illustrate this, a dedicated graphical sequence editor is available, compliant with DIN 66001/ISO 5807.
A Complete IEC 61131-3 Application at the Click of a Button
With a single command, the integrated generator creates a complete, well-structured IEC 61131-3 application from the module tree, including the visualization option. This application can be compiled immediately with CODESYS and loaded into the controller. This means the user does not need to write a single line of IEC 61131-3 code themselves – all the information is taken from the modules and the libraries behind them and properly embedded in the project structure.
The generated source code can be displayed and edited directly when needed. In this way, users can understand the concept of object-oriented code generation. The application runs in line with the controller's operation – no additional steps are required.
If the application needs to be changed due to an equipment change or a customer-specific adaptation, the application developer changes the parameters, the I/O mapping or the sequence in the required modules only.
Available Modules and Application-Specific Modules
This convenient approach naturally requires the appropriate modules to be available. As the manufacturer of CODESYS, 3S-Smart Software Solutions defines itself as a technology provider and therefore focuses on supplying application-related modules, for example for state machines, persistent data management, communication or network management of distributed applications, machine configurations, recipe/subprogram management, alarm and error management, and data logging.
In other words, machine and equipment manufacturers usually create their own specific modules for use with CODESYS Application Composer – tailored specifically to their applications or products. In addition, component suppliers will provide suitable modules for their products to ease part of the effort for customers.
Specific module descriptions such as these can be created with the CODESYS Application Composer Toolkit. In addition, the generator that automatically creates the IEC 61131-3 application code in Structured Text from the modules can also be adapted according to needs or extended requirements. This option is useful when additional artifacts must be created when the generator runs, for example information for an ERP system or a visualization outside the CODESYS system.
Programming and Composing Systems
From all of the above, it is clear that skilled application programmers will not be left idle as a result of using CODESYS Application Composer. In fact, the bar is only raised for programmers who were not challenged in the previous programming environment of standard machines: they can concentrate on developing modules and system blocks and fully realize their potential. They can make use of the powerful tools integrated into the additional tools for CODESYS Professional Developer Edition presented above.
On the other hand, users can now do the composition themselves and thereby generate the program code for the controllers. To do so, they need to know only the process, the sequence or the technology of the machine – no programming knowledge is required.
In any case, application development becomes more efficient, because every developer involved in the project engineering process can focus on their own field. In addition, errors caused by "copy and paste" are avoided in principle.
Object-Oriented Programming (OOP) for Automation Control in IEC 61131-3
Introducing the original OOP paradigm as a programming option in the context of the CODESYS V3 programming tool, based on IEC 61131-3, has already closed a large gap between IT programming and control programming. Appropriately trained users can therefore program system blocks, for example, with object-oriented programming. They can use interfaces, methods and inheritance, dynamically link program parts, load service operations and define properties – exactly as they know from high-level languages.
However, in doing so they do not stop using IEC 61131-3; that is, the service operations and the calls to these operations can be programmed in IL, FBD, LD or, typically, in Structured Text. The blocks created can then be used with a simple function call. Users who know only functional programming can access the system blocks this way as before, and do not need to deal with OOP.
At the initiative of 3S-Smart Software Solutions, the concept was brought before the IEC 61131-3 standardization committee and is about to be published in the context of the third edition of the standard.
UML: A "Guide" and a "Common Language"
In a complex OOP project, the programmer can very easily lose control of the dependencies between the various blocks. With the UML class diagram, the most important structural diagram, they can display the dependencies between classes, objects, service operations and interfaces, or specifically plan and create these dependencies. Overall, mastering OOP therefore becomes easier. Introducing the UML class diagram is the logical next step after introducing OOP in an IEC 61131-3 tool. The class diagram is seamlessly integrated into CODESYS as a structural aid.
But this is certainly not the end of the story for UML! Of the 14 different defined diagrams, the assessment in the context of a research project is that the activity diagram and the state diagram will also benefit the field of automation. Both diagrams were similarly implemented as new editors in the CODESYS IEC 61131-3 interface. Users can now describe the application and even generate corresponding IEC-compliant application code.
Process or application technicians who master the process sequence of the plant or machines (known as "technologists") are familiar with these diagrams. However, this does not mean that they master their implementation in software. In the IEC 61131-3 programming system, these diagrams have become the means of communication or the "common language" with which it is possible to "untangle the Babylonian confusion of languages that causes communication breakdowns between the world of machine building and the world of software", as Dr.
Hutterer of Trumpf Maschinen Austria described it at the "Benchmark Forum Intelligent Engineering" (Munich, March 2012). Technologists use these diagrams to describe processes, functions and calls to these functions for application programmers. The integration into CODESYS allows both sides to save the cost of transferring these diagrams from other tools and naturally also to reduce the error rate.
Increasing Productivity with Additional Tools
Apart from OOP and UML, there are several other tools from desktop applications from which programmers in an automation technology environment can benefit.
Especially in complex projects, the days when an application engineer programmed the entire machine or equipment alone are over. According to today's common rule of thumb, application teams agree to store reusable application parts in libraries, which can then be used independently of the application. Whether these parts are intended for libraries or for program blocks created within the application, version control is required.
Apache Subversion (SVN) has established itself in the IT world as the answer to this requirement. The programmer can now store their program blocks and libraries in SVN through export/import mechanisms. However, this function must be integrated into IEC 61131-3 to avoid significant disruptions to the natural programming flow. The CODESYS system therefore now offers an SVN connection seamlessly integrated into the "Professional Developer Edition".
This connection naturally covers the central data repository as well as code access management and source code version management (known as "configuration management"), so that delivered versions can be recreated at any time, for example. This is a very common requirement, especially in machine and equipment manufacturing.
With static code analysis, the programmer shortens development time by identifying and correcting logical errors in their application code before loading the code into their controller. "CODESYS Static Analysis" provides exactly this function, with several dozen check rules. Among other things, this tool includes checks for concurrent access to variables, multiple writes to output variables, variables that were declared but not used, and empty program blocks in the project.
The user can enable or disable any of the check rules for the entire project and can apply very precise exception rules through pragmas in the application code.
Additional tools will be included in CODESYS Professional Developer Edition – all of them originating in the IT world: for example, a profiler for runtime calculations and application code optimization, or a test manager with which automated application tests can be run directly in the IEC 61131-3 interface.
Summary
How will automation components be programmed in the future? When this question is examined, one answer emerges:
IEC 61131-3 will continue to serve as the standard for creating most applications, but the tools will support the application programmer's work more comprehensively than before. However, exactly how this support is delivered can vary widely, depending on the group of application programmers.
On the one hand, there are system programmers who implement the machine components and tasks in software using their extensive programming knowledge. They are supported by the new methods and integrated tools that have proven themselves in desktop application programming in the IT sector. Thanks to the integration of these technologies under the roof of IEC 61131-3, this user group can perform its tasks much more efficiently without leaving the familiar interface. Many system programmers are indeed looking forward to extensions such as these.
On the other hand, there are technologists and application programmers who know the specific functionality and characteristics of the machines and equipment. In the future, they will be able to focus even more on their core skills and compose their machines from modules prepared by the system programmers, automatically generating the entire control application from them. All without having to write a single line of code themselves!
Finally, the entire machine and equipment manufacturing sector will benefit from the further developments presented above. By focusing on its specific field, each user group will perform its tasks faster and with lower error rates. These innovations have already been introduced in the market-leading programming system, CODESYS, which complies with the IEC 61131-3 standard – so the future of programming is already here!

