AxisGetOverridePercent
AxisGetOverridePercent determines the axis override from the cyclic axis interface from the PLC to the NC, and returns it as a percentage value in the function result.
FUNCTION AxisGetOverridePercent : LREAL
VAR_INPUT
nOverride : DWORD;
END_VAR
nOverride : nOverride from the cyclic axis interface from the PLC to the NC
Function result: Axis override as a percentage
Example
PROGRAM MAIN
VAR
PlcToNc1 AT %QB1000 : PLCTONC_AXLESTRUCT;
NcToPlc1 AT %IB1000 : NCTOPLC_AXLESTRUCT;
fOverride : LREAL;
END_VAR
fOverride := AxisGetOverridePercent( PlcToNc1.nOverride );
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 |