MotionParams

MotionParams 1:

This Corefunction is used to display a range of parameter values for a motion unit.

MotionParams 2:

Support of the parameters depends on the technology

Some parameters are only available for specific drive technologies. Please note the comments in the "Choice" column!

MotionParams 3:

Function is asynchronous

An implementation of runtime switching via this function block must always take the state of the function block into account. A written parameter does not become active immediately.

  • The BusyState can be checked by setting it to FALSE
MotionParams 4:

Axes must be disabled

Some parameters cannot be written while an axis is enabled.

Syntax:

FUNCTION_BLOCK FB_MotionParams EXTENDS FB_Corefunction

MotionParams 5: Properties

Name

Type

Access

Selection

Description

ActuatorBase

I_ActuatorParamsH

Get

MotionParams 6:

Access to parameters for the base position of an actuator.

ActuatorWork

I_ActuatorParamsH

Get

MotionParams 7:

Access to parameters for the working position of an actuator.

AsymTargeting

BOOL

Get, Set

MotionParams 8:

TRUE if the parameters for the target approach are direction-dependent. Otherwise, the parameters for the negative direction are ignored and the parameters for the positive direction are used regardless of the direction.

AutoBrakeCalculation

BOOL

Get, Set

MotionParams 9:

TRUE if the braking distance is determined automatically.

AxisIsNc

BOOL

Get

/

TRUE, if the axis is operated with TwinCAT NC.

BrakeDistanceM

LREAL

Get, Set

MotionParams 10:

The braking distance time in negative direction.

See also AsymTargeting.

BrakeDistanceP

LREAL

Get, Set

MotionParams 11:

The braking distance time in positive direction.

CreepDistanceM

LREAL

Get, Set

MotionParams 12:

The creep distance in negative direction.

See also AsymTargeting.

CreepDistanceP

LREAL

Get, Set

MotionParams 13:

The creep distance in positive direction.

CreepSpeedM

LREAL

Get, Set

MotionParams 14:

The creep speed in negative direction.

CreepSpeedP

LREAL

Get, Set

MotionParams 15:

The creep speed in positive direction.

CycleTime

LREAL

Get

/

The cycle time of the task in which the real-time functions of the axis are executed.

DriveIsCoE

BOOL

Get

/

TRUE, if the axis has a CoE interface.

DriveIsServo

BOOL

Get

/

TRUE if the axis is a servo drive.

DriveIsSimulated

BOOL

Get

/

TRUE if the drive of the axis is simulated.

DriveIsSoE

BOOL

Get

/

TRUE, if the axis has a SoE interface.

DriveReversed

BOOL

Get, Set

MotionParams 16:MotionParams 17:MotionParams 18:MotionParams 19:

TRUE if the drive of the axis is inverted.

Notice The outputs are swapped for actuators.

DriveType

UDINT

Get

/

A numeric identifier for the type of the connected drive.

Notice The meaning of the constants is defined in the Tc2 NC or the Tc2_Hydraulics library.

EncoderInterpolation

LREAL

Get, Set

MotionParams 20:MotionParams 21:MotionParams 22:

The divider for the encoder evaluation. It specifies the number of increments corresponding to the distance specified by EncoderWeighting.

EncoderIsAnalog

BOOL

Get

/

TRUE if the encoder of the axis uses an analog input.

EncoderIsSimulated

BOOL

Get

/

TRUE if the encoder of the axis is simulated.

EncoderMask

UDINT

Get

/

Encoder mask for encoder value overflow

EncoderMode

UDINT

Get

/

Operation mode of the encoder

EncoderReversed

BOOL

Get, Set

MotionParams 23:MotionParams 24:MotionParams 25:MotionParams 26:

TRUE if the encoder / feedback of the axis is inverted.

Notice The feedback inputs are swapped for actuators.

EncoderType

UDINT

Get

/

A numeric identifier for the type of the connected encoder.

Notice The meaning of the constants is defined in the Tc2 NC or the Tc2_Hydraulics library.

EncoderWeighting

LREAL

Get, Set

MotionParams 27:MotionParams 28:

The factor for encoder evaluation. It specifies the distance corresponding to a number of increments specified by EncoderInterpolation.

EncoderZeroShift

LREAL

Get, Set

MotionParams 29:MotionParams 30:

The zero offset shift of the encoder.

HasAutoLimiting

BOOL

Get

/

TRUE if the axis uses an internal automatic limiting function.

LagControlled

BOOL

Get

/

TRUE if the axis has a position controller.

LagCtrlKp

LREAL

Get, Set

MotionParams 31:MotionParams 32:

The kP factor of the position controller.

LagFilter

LREAL

Get, Set

MotionParams 33:MotionParams 34:

The filter time of the lag error monitoring.

LagLimit

LREAL

Get, Set

MotionParams 35:MotionParams 36:

The threshold value of the lag error monitoring.

LagMonitored

BOOL

Get, Set

MotionParams 37:MotionParams 38:

TRUE, if the lag error monitoring of the axis is active.

MaxAccApplication

LREAL

Get, Set

MotionParams 39:MotionParams 40:MotionParams 41:

An additional restriction on acceleration.

MaxAcceleration

LREAL

Get, Set

MotionParams 42:MotionParams 43:MotionParams 44:

The maximum permissible acceleration.

Notice A write operation on this parameter is always also applied to MaxAccApplication.

MaxDecApplication

LREAL

Get, Set

MotionParams 45:MotionParams 46:MotionParams 47:

An additional limitation of the deceleration.

MaxDeceleration

LREAL

Get, Set

MotionParams 48:MotionParams 49:MotionParams 50:

The maximum permissible deceleration.

Notice A write operation on this parameter is always also applied to MaxDecApplication.

MaxJerk

LREAL

Get, Set

MotionParams 51:MotionParams 52:

The maximum permissible jerk.

MaxVeloApplication

LREAL

Get, Set

MotionParams 53:MotionParams 54:MotionParams 55:

An additional velocity restriction.

MaxVeloSystem

LREAL

Get, Set

MotionParams 56:MotionParams 57:MotionParams 58:

The maximum velocity of the axis.

Notice This parameter acts as a reference value for the maximum velocity output of the drive interface.

MinVeloApplication

LREAL

Get, Set

MotionParams 59:MotionParams 60:

The minimum velocity of the axis.

Persist

BOOL

Get, Set

MotionParams 61:MotionParams 62:

Enables the persistent saving of parameter write operations of this function block on the target system.

ScalingOilPressure

LREAL

Get, Set

MotionParams 63:

The scaling factor for the actual pressure acquisition.

SoftEndMax

LREAL

Get, Set

MotionParams 64:MotionParams 65:

The maximum software limit switch.

SoftEndMaxEna

BOOL

Get, Set

MotionParams 66:MotionParams 67:

Enable for the maximum software limit switch.

SoftEndMaxSystem

LREAL

Get, Set

MotionParams 68:MotionParams 69:

For the load side of transforming axes: The converted maximum software limit switch of the drive side.

For the drive side of transforming axes: The converted maximum software limit switch of the load side.

For non-transforming axes: A copy of the maximum software limit switch.

SoftEndMin

LREAL

Get, Set

MotionParams 70:MotionParams 71:

The minimum software limit switch.

SoftEndMinEna

BOOL

Get, Set

MotionParams 72:MotionParams 73:

Enable for the minimum software limit switch.

SoftEndMinSystem

LREAL

Get, Set

MotionParams 74:MotionParams 75:

For the load side of transforming axes: The converted minimum software limit switch of the drive side.

For the drive side of transforming axes: The converted minimum software limit switch of the load side.

For non-transforming axes: A copy of the minimum software limit switch.

Valid

BOOL

Get

/

TRUE if all parameters are valid.

VeloMonitored

BOOL

Get, Set

MotionParams 76:

TRUE if the velocity monitoring of the axis is active.

VeloLagLimit

LREAL

Get, Set

MotionParams 77:MotionParams 78:

The tolerance window for triggering velocity monitoring.
Notice For actuators, the limit is interpreted as a time.

BusyState

BOOL

Get

/

TRUE, if the function block writes changed parameters.

ReadyState

BOOL

Get

/

TRUE if the function block has loaded all parameters at least once.

HasTorqueLimiting1

BOOL

Get

Obsolete

Returns the value of HasAutoLimiting.

MinVeloJog1

LREAL

Get, Set

Obsolete

Returns the value of MinVeloApplication.

1Obsolete

Key

MotionParams 79:

TF5810 Hydraulic Positioning
FB_AxisHydraulicBase

MotionParams 80:

TF5000 NC PTP
FB_AxisNcBase

MotionParams 81:

TF8560 Inverter Axis
FB_AxisInvBase

MotionParams 82:

TF8560 Linear Actuator
FB_ActuatorBase

MotionParams 83: Interfaces

Type

Description

I_Corefunction

Standard interface on FB_Corefunction.

I_MotionParams

Standard interface on FB_MotionParams.

Example:

iAxisBase.MotionParams.SoftEndMax := fAxisStroke;

Prerequisites

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.56

PC or CX (x64, x86)

Tc3_PlasticFunctions (>= v12.8.2.0)