MC_ExtSetPointGenFeed
With the function MC_ExtSetPointGenFeed, the set values of an external set value generator are fed into an axis. The function copies the data instantan into the cyclical axis interface ( fExtSetPos, fExtSetVelo, fExtSetAcc und nExtSetDirection) of the axis. The function result MC_ExtSetPointGenFeed is unused and therefore always FALSE.
VAR_INPUT
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)
VAR_IN_OUT
VAR_IN_OUT
AxisRefOut : PLCTONC_AXLESTRUCT;
END_VAR
Axis : Axis structure
Requirements
Development Environment | Target System | PLC Libraries to include |
---|---|---|
TwinCAT v2.8 | PC (i386) | TcMC.Lib |