Overview of the Programming Framework
The application example is based on a programming framework which represents a generic implementation for machine control.
The programming framework consists of three categories of components:
Component |
Description |
---|---|
MainMachine |
The MainMachine provides the framework for the process of the machine control. It implements the typical steps like for example, initialization, reading and processing of the inputs, writing the outputs, and the operating mode selection. |
Device/Module Handler |
The Device/Module Handler implements the control logic of the specific module or device. It provides an interface which is processed in the single steps of the MainMachine. Further, each module implements a generic exception handler to publish module exceptions and to receive reactions requested because of external exceptions generated by other devices in the machine control. |
Reaction Dispatcher |
The Reaction Dispatcher monitors exceptions and distributes the reactions based on the rules specified in the Device/Module Handler. |
For the interaction of the components inside the programming framework, different shared objects like for example, function blocks, structures, or interfaces are required.
These shared objects in the application example are contained in a folder with name To be moved to Library. To apply the introduced programming framework concept for other applications, outsource these objects to a library and reference it in your projects.