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.

ItpGetOverridePercent 2:/ItpGetOverridePercent 3: Inputs/Outputs

VAR_IN_OUT
    sPlcToNci        : PLCTONC_NCICHANNEL_REF;
END_VAR

Name

Type

Description

sPlcToNci

PLCTONC_NCICHANNEL_REF

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

ItpGetOverridePercent 4: Return value

Name

Type

Description

ItpGetOverridePercent

LREAL

Override in percent

Example

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