ItpGetOverridePercent

ItpGetOverridePercent 1:

The ItpGetOverridePercent function returns the axis channel override as a percentage. It is essential to remember that this is not a value from the NC. The value, which is transferred as set value to the NC, is evaluated.

VAR_IN_OUT

VAR_IN_OUT
    sPlcToNci        : PLCTONC_NCICHANNEL_REF;
END_VAR

sPlcToNci: Structure of cyclic channel interface between PLC and NCI (type: PLCTONC_NCICHANNEL_REF)

Return value

ItpGetOverridePercent: Override in percent

Sample

VAR
    sPlcToNci AT%Q*: PLCTONC_NCICHANNEL_REF;
    fOverride      : LREAL;
END_VAR
fOverride := ItpGetOverridePercent( sPlcToNci ); 

Requirements

Development environment

Target platform

PLC libraries to be linked

TwinCAT v3.1.0

PC or CX (x86 or x64)

Tc2_NCI