GearBox()

GearBox() 1:

This method can be used to configure a rotary transmission factor of the gearbox.

GearBox() 2:

Effects on the actual position

The gear methods are used to determine the moment of inertia and the encoder weighting. Check the resulting EncoderWeighting to ensure that it matches the NC.

Syntax:

METHOD GearBox : I_SimAxGear
VAR_INPUT
    fRatioIn:    LREAL;
    fRatioOut:   LREAL;
END_VAR

GearBox() 3: Return value

Name

Type

Description

GearBox

I_SimAxGear

Gear interface on the axis to configure a chaining of gearboxes.

GearBox() 4: Inputs

Name

Type

Description

fRatioIn

LREAL

Number of teeth of the gearbox input.

fRatioOut

LREAL

Number of teeth of the gearbox output.

GearBox() 5:

Mathematical relationship of the inputs

fRationIn and fRatioOut can be regarded as the numerator and denominator of a mathematical fraction. This allows the transmission ratio to be specified as a fraction.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.55

PC or CX (x64, x86)

Tc3_PlasticFunctions (>= v3.12.5.0)

Tc3_PlasticNc (>= v3.12.5.0)