AxisSetOverridePercent
AxisSetOverridePercent returns the corresponding NC-conform integer value for a percentage override value in fOverridePercent.
FUNCTION AxisSetOverridePercent: DWORD
VAR_INPUT
fOverridePercent : LREAL;
END_VAR
fOverridePercent : Speed override as a percentage
Function result: NC-conform override value
Example
PROGRAM MAIN
VAR
PlcToNc1 AT %QB1000 : PLCTONC_AXLESTRUCT;
NcToPlc1 AT %IB1000 : NCTOPLC_AXLESTRUCT;
END_VAR
PlcToNc1.nOverride := AxisSetOverridePercent(100);
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v2.7.0 | PC (i386) | TcNcUtilities.Lib |
TwinCAT v2.8.0 | PC (i386) | TcNC.Lib |