ItpSetOverridePercent
The function ItpSetOverridePercent writes the axes channel override into the cyclic interface of the NCI. The override is passed as a percentage.
Inputs
FUNCTION ItpSetOverridePercent
VAR_INPUT
fOverridePercent : LREAL;
END_VAR
Name | Type | Description |
---|---|---|
fOverridePercent | LREAL | Axis channel override as a percentage |
/ 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) |
Return value
Name | Type | Description |
---|---|---|
ItpSetOverridePercent | BOOL | always TRUE |
Example
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 |