MC_ExtSetPointGenFeed
The MC_ExtSetPointGenFeed function is used to feed set values from an external set value 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 set value generator is usually a PLC block that calculates cyclic set values for an axis and can therefore substitute the internal set value generator in an NC axis.
See also: MC_ExtSetPointGenEnable and MC_ExtSetPointGenDisable
Inputs
VAR_INPUT
Position : LREAL;
Velocity : LREAL;
Acceleration : LREAL;
Direction : DINT;
END_VAR
Position |
Set position from an external set value generator |
Velocity |
Set velocity from an external set value generator |
Acceleration |
Set acceleration from an external set value generator |
Direction |
Set direction from an external set value generator. ( -1 = negative direction, 0 = standstill, 1 = positive direction) |
Inputs/outputs
VAR_IN_OUT
Axis : AXIS_REF;
END_VAR
Axis |
Axis data structure |
The axis data structure of type AXIS_REF addresses an axis uniquely within the system. Among other parameters it contains the current axis status, including position, velocity or error status.