MC_ExtSetPointGenFeed

MC_ExtSetPointGenFeed 1:

The MC_ExtSetPointGenFeed function is used to feed set values from an external setpoint generator into an axis. The function copies the data instantaneously into the cyclic axis interface (fExtSetPos, fExtSetVelo, fExtSetAcc and nExtSetDirection). The function result of MC_ExtSetPointGenFeed is not used and therefore always FALSE.

An external setpoint generator is usually a PLC function block that calculates cyclic set values for an axis and can therefore substitute the internal setpoint generator in an NC axis.

See also: MC_ExtSetPointGenEnable and MC_ExtSetPointGenDisable

MC_ExtSetPointGenFeed 2: Inputs

VAR_INPUT
    Position     : LREAL;
    Velocity     : LREAL;
    Acceleration : LREAL;
    Direction    : DINT;
END_VAR

Name

Type

Description

Position

LREAL

Set position from an external setpoint generator

Velocity

LREAL

Set velocity from an external setpoint generator

Acceleration

LREAL

Set acceleration from an external setpoint generator

Direction

DINT

Set direction from an external setpoint generator. ( -1 = negative direction, 0 = standstill, 1 = positive direction)

MC_ExtSetPointGenFeed 3: Inputs/outputs

VAR_IN_OUT
    Axis : AXIS_REF;
END_VAR

Name

Type

Description

Axis

AXIS_REF

Axis data structure that unambiguously addresses an axis in the system. Among other parameters it contains the current axis status, including position, velocity or error state.

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v3.0.0

PC or CX (x86 or x64)

Tc2_MC2