Project structure

The individual components of the project tree are discussed in more detail below.

System > License

Project structure 1:

Licenses may be excluded from the project under the following conditions:

Number

Context

Exclusion option

TC1200

PLC project

/

TF2000

TwinCAT HMI

Removing manually from the license list

TF5000

Electric NC axes

Removing NC task under MOTION

TF5050

Electric NC transformer axes

Removing NC transformer axes from the PLC

TF5810

Hydraulic axes

Removing Tc3_PlasticHydraulics reference and axes from PLC

The Tc3_PlasticBaseApplicationElectric library avoids a required reference

TF8540

Temperature control

/

TF8550

HMI Plastic Controls

Removing NuGet packages and controls in HMI

TF8560

Plastic technology functions

/ (used consistently in the Plastic Application)

System > Tasks

Project structure 2:

The four created tasks follow the following strategies:

Notice

Correct cycle time for temperature control

The cycle time of the temperature control should be asynchronous to the frequency of the AC supply voltage. A synchronous cycle time promotes instability of the control!

System > Real-Time

Project structure 3:

In principle, systems from TwinCAT 3 platform level 50 Performance Plus are the minimum requirement for the PlasticApplication. The PLC tasks can be split according to the number of cores and the single core performance of the CPU. For development systems, the project configuration can be adopted; for end devices, the following configurations have been tested in the field:

CP/ IPC / CX

Restrictions on blow molding application

CP2219-1025-0030 (video)

None

C6030 (Basis)

CX2043

CX2033

Restricted use:

  • Integration of further axes not recommended
  • High ADS query rates not recommended

CX5340

CX5240

Limited recommended for extruder applications.

System > Type System

Project structure 4:

The Type System contains the used EventClasses. These EventClasses contain the respective events that are used in the Plastic Application.

Motion

Project structure 5:

All exemplarily implemented NC axes (electrical) are created in the NC task. The designations of the axes are based on the manufacturing significance.

PLC > Version

Project structure 6:

The currently used version of the project can be determined in two ways:

PLC > Library references

Project structure 7:

The following libraries are installed in the project in addition to some general libraries from the general TwinCAT pool:

Project structure 8:

Error despite existing library

For compatibility and maintenance purposes, the versions of the included libraries are fixed. If you have already worked with the mentioned libraries in past versions, you have to install the updated versions. These can be found in the delivered project folder at Dependencies.

Notice

Adaptation to an older version not permitted

Do not change the library versions set in the project to an older version. Incompatibilities and unpredictable behavior of the software may occur!

PLC > Code

Project structure 9:

The control code is divided into three main folders.

> _Tasks: Instantiation of the runtime and definition of the task calls

> Application: Application programs

> Version: Automatically generated GVL with the used project version

Project structure 10:

Further information about the PLC code

PLC > SimPlc

Project structure 11:

In the second PLC (SimPlc) a machine simulation is implemented. This can be connected to the main control via mapping (comparable to the I/O of a machine). This allows the PLC to be implemented without including simulation elements. In addition, simulation can also be extended with the elements of PLC programming. This offers the advantage that the control PLC from project preparation does not have to be adapted to operation with a real machine. Only the mapping to I/O components is required.

I/O > Devices > CP22xx_1025

Project structure 12:

The I/O part of the project includes the mapping of the operating elements of the BlowMolding Beckhoff panel CP2219-1025-0030. The following figure shows how the FB_CP22xx_1025 must be connected to the I/O.

Project structure 13: