FB_AxisNcTrafoBase

FB_AxisNcTrafoBase 1:

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:

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;
fbNcTrafoAxis: FB_AxisNcTrafoBase
               (
                   AxisName        := 'NcTrafoAxis', 
                   nPtpPoints      := 10,
                   nTrafoPoints    := 181,
                   iProcessHandler := 0,
                   iPosCamLookup   := 0,
                   iVeloCamLookup  := 0
               );

FB_AxisNcTrafoBase 2: Connection options (I/Os)

Name

Type

Description

fbDriveAxis.AxisRef

AXIS_REF

Mapping interface to the drive side as a TwinCAT NC axis.

fbLoadAxis.AxisRef

AXIS_REF

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

I_InputBase

Interface to a pressure sensor for pressure control.

Limiting.Output

I_LimitingOutput

Interface for the connection of limit outputs (e.g., torque or pressure).

FB_AxisNcTrafoBase 3:

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.

FB_AxisNcTrafoBase 4: 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 .Name.

nPtpPoints

INT

Number of usable points in the PTP function.

The number of points can also be set via .PtpPoints

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

I_CammingLookup

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

I_CammingLookup

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