ItpSetOverridePercent
from library version 4.0
The ItpSetOverridePercent function writes the axis channel override to the cyclic interface to the NCI. The override is passed as a percentage.
Interface
FUNCTION ItpSetOverridePercent
VAR_INPUT
fOverridePercent : LREAL;
END_VAR
VAR_IN_OUT
sPlcToNci : NciChannelFromPlc;
END_VAR
Input | Data type | Description |
---|---|---|
fOverridePercent | LREAL | Axis channel override as a percentage |
Input & output | Data type | Description |
sPlcToNci | NciChannelFromPlc | The structure of the cyclic channel interface from the PLC to the NCI |
Data type | Description |
---|---|
BOOL | always TRUE |
Sample
VAR
sPlcToNci: NciChannelFromPlc;
fOverride: LREAL;
END_VAR
fOverride := 47.11;
ItpSetOverridePercent( fOverride, sPlcToNci );
Requirements
Development Environment |
Target System |
PLC libraries to include |
---|---|---|
TwinCAT v2.7.0 |
PC (i386) |
TcNciItp.lib |
TwinCAT v2.8.0 |
PC (i386) |
TcNci.lib |