ItpGetBlockNumber
from library version 6.1.32
ItpGetBlockNumber is a function that returns the block number of the NC program for the cyclic interface.
Interface
Function ItpGetBlockNumber
VAR_IN_OUT
sNciToPlc : NciChannelToPlc;
END_VAR
Input & output | Data type | Description |
---|---|---|
sNciToPlc | NciChannelToPlc | The structure of the cyclic channel interface from the NCI to the PLC. This structure is only accessed for reading. |
Return value
Data type | Description |
---|---|
UDINT | Block number of the active geometry segment |
Sample
VAR
nBlockNumber : UDINT;
sNciToPlc : NciChannelToPlc;
END_VAR
nBlockNumber := ItpGetBlockNumber(sNciToPlc);
Prerequisites
Development environment |
Target system |
PLC libraries to include |
---|---|---|
TwinCAT v2.10.0 |
PC (i386) |
TcNci.lib |