FB_AxisNcTrafoBase

This FB creates a transforming axis operated with the Tc2_MC2 and Tc2_MC2_Camming libraries. This requires two NC axes, each of which must be configured as either the drive side or the load side. A transformation table then converts, for example, a rotary drive position into a virtual linear position (load position) characterized by a calibration curve. During operation, this allows the axis to be controlled to the virtual linear position. For further details on how the transformation axes work, please refer to the Section on transformation.
This axis type requires the TF50x0 NC PTP license and the TF5050 NC Camming license.
Syntax:
- Runtime-based:
fbNcTrafoAxis: FB_AxisNcTrafoBase('', 0, 0, 0, 0, 0, 0);
// Initialization code
fbNcTrafoAxis.Name := 'NcTrafoAxis'
fbNcTrafoAxis.PtpPoints := 10;
fbTrafoTable.SetPoints(181); // FB_CammingLookUp
// ... (further init steps of the trafo table)
fbNcTrafoAxis.Transformation.Table := fbTrafoTable;- Declarative (outdated):
fbNcTrafoAxis: FB_AxisNcTrafoBase
(
AxisName := 'NcTrafoAxis',
nPtpPoints := 10,
nTrafoPoints := 181,
iProcessHandler := 0,
iPosCamLookup := 0,
iVeloCamLookup := 0
);
Connection options (I/Os)
Name | Type | Description |
|---|---|---|
fbDriveAxis.AxisRef | Mapping interface to the drive side as a TwinCAT NC axis. | |
fbLoadAxis.AxisRef | Mapping interface to the load side as a TwinCAT NC axis. | |
fbActualsNc.nDataIn1 | UINTARR2 | Mapping interface to the encoder input on the load side as a TwinCAT NC axis. This provides the simulated position of the load side. Tree path: Enc > Inputs > In > nDataIn1 |
fbActualsNc.nState4 | USINT | Mapping interface to the encoder input on the load side as a TwinCAT NC axis. This provides the simulated status of the load side. Tree path: Enc > Inputs > In > nState4 |
PressureControl.Supervisor.Sensor | Interface to a pressure sensor for pressure control. | |
Limiting.Output | Interface for the connection of limit outputs (e.g., torque or pressure). |
![]() | Some of the connection options are not available as properties The respective AxisRef values and the encoder mappings on the load side are listed here for the sake of completeness; however, they cannot be accessed directly via a property. |
Initialization parameters of the FB_init constructor
Name | Type | Description |
|---|---|---|
AxisName | STRING | The text-based name of the axis. Used for messages and file names, among other things. The name can also be set via |
nPtpPoints | INT | Number of usable points in the PTP function. The number of points can also be set via . |
nTrafoPoints | INT | Number of usable transformation points in the transformation table. Outdated implementation! This value should be set to 0, since the number of points is automatically retrieved from the transformation table being used. |
iProcessHandler | I_ProcessHandler | A function block for handling pressures and other process variables. Outdated implementation! This input must be set to zero, since the availability of pressure control is already high in PressureControl.Supervisor without requiring an external assignment. |
iPosCamLookup | An interface to an external instance with a position cam plate. Outdated implementation! This input must be set to zero, since a cam plate is already available at Camming.Pos.LookUp without an external assignment. | |
iVeloCamLookup | An interface to an external instance with a speed cam plate. Outdated implementation! This entry must be set to “zero” because a cam plate is already available at Camming.Velo.LookUp without an external assignment. |
Requirements
Development environment | Target platform | PLC libraries to include |
|---|---|---|
TwinCAT v3.1.4024.35 | PC or CX (x64, x86) | Tc3_PlasticFunctions v3.12.4.26 or higher Tc3_PlasticNc v3.12.4.26 or higher |
