Modification and extension by inheritance

In the vertical division of the project structure into Plastic Base Application and Sample Code, the extension is implemented using IEC 61131-3 inheritance. This means that the machine-specific part (Sample Code) is freely adaptable, but can build on the implemented algorithms of the Plastic Base Application.

Modification and extension by inheritance 1:

The consistent use of inheritance for changes to the machine controller also enables updates to the Plastic Base Application to be applied directly by Beckhoff Automation.

Modification and extension by inheritance 2:

Editing the Plastic Base Application not recommended

Editing the Plastic Base Application is quite possible. However, the option of support from Beckhoff Automation in terms of adaptations and extensions is thereby forfeited. Normally, you only edit the machine-specific part (Sample Code) and use the Plastic Base Application as a library.

Modification and extension by inheritance 3:

Concept of object-oriented programming

It is recommended to deal in detail with the concept of object-oriented programming according to IEC 61131-3 in order to be able to use the advantages effectively. Further information on object-oriented programming can be found in the documentation for TwinCAT 3 PLC programming

In Plastic Application, there are a total of four cases where an inheriting class (EXTENDS) can extend, modify or remove the inherited class: