ItpSetOverridePercent

ItpSetOverridePercent 1:

The function ItpSetOverridePercent writes the axes channel override into the cyclic interface of the NCI. The override is passed as a percentage.

VAR_INPUT

FUNCTION ItpSetOverridePercent

VAR_INPUT
    fOverridePercent : LREAL;
END_VAR

fOverridePercent: Axis channel override as a percentage

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

ItpSetOverridePercent: always TRUE

Sample

VAR
    sPlcToNci AT%Q*: PLCTONC_NCICHANNEL_REF;
    fOverride      : LREAL;
END_VAR
fOverride := 47.11;
ItpSetOverridePercent( fOverride, sPlcToNci );

Requirements

Development environment

Target platform

PLC libraries to be linked

TwinCAT v3.1.0

PC or CX (x86 or x64)

Tc2_NCI