Samples

Basic OOP sample

Description

This PLC sample illustrates some of the basic functions of object-oriented programming (OOP). It features the following elements/functions:

  • Function blocks (FBs)
  • Methods
  • Properties
  • FB inheritance/extension
  • Interface (ITF) implementation and use

Sample project

TC3_PlcSample_OOPBasicSample.zip

Further information

In the documentation PLC: Object-oriented programming

Extended OOP sample

Description

This PLC sample contains an object-oriented program for controlling a sorting system. The application can be controlled via an integrated visualization.

Sample project

TC3_PlcSample_OOPExtendedSample.zip

Further information

In the documentation PLC: Object-oriented program for controlling a sorting plant