Instantiation

FB_AxisNcBase, FB_AxisHydraulicBase and FB_AxisInvBase can be instantiated. Below you will find sample code for creating instances of these axis types. The input variables of these FBs are all defined in the method FB_init(). FB_init() is always called implicitly when initializing an instance of a FB. For a detailed description see FB_init().

Some input variables of FB_init() must be assigned mandatory, while others are optional and can be 0. The following table shows the requirements of FB_AxisNcBase, FB_AxisHydraulicBase, FB_AxisInvBase and FB_ActuatorBase when assigning their input variables. For a detailed explanation of each input variable, see METHOD FB_init().

The open source project TF85xx - Plastic Application, which is based on TF8560 - TwinCAT 3 Plastic Technology Functions, has designed common machine axes and their motion tasks in blow molding and other types of plastics machines. This includes axes such as clamp, blow pin, wall thickness control, injection unit, etc. Customers can use the Plastic Application as the basis for their control system or as a tutorial for TF8560 TwinCAT 3 Plastic Technology Functions as required. The code for the Plastic Application is available here.

Designation

Description

FB_AxisHydraulicBase

Hydraulic axes, operated with the Tc2_Hydraulics library.

FB_AxisNcBase

Servo axes, operated with the Tc2_MC2 library.

FB_AxisNcTrafoBase

Transforming servo axes, operated with the Tc2_MC2 library.

FB_AxisInvBase

Inverter axes

FB_ActuatorBase

Digital linear actuators