ItpGetOverridePercent
from library version 4.0
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 involved is that which is passed on to the NC as a set value.
Interface
FUNCTION ItpGetOverridePercent
VAR_IN_OUT
sPlcToNci : NciChannelFromPlc;
END_VAR
Input parameters
Input & output | Data type | Description |
---|---|---|
sPlcToNci | NciChannelFromPlc | The structure of the cyclic channel interface from the NCI to the PLC. This structure is only accessed here for reading. |
Return value
Data type | Description |
---|---|
LREAL | Override in percent |
Sample
VAR
sPlcToNci: NciChannelFromPlc;
fOverride: LREAL;
END_VAR
fOverride := ItpGetOverridePercent( 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 |