NCI POUs

The TwinCAT library Tc2_NCI contains function blocks for operating the NC interpreter from the PLC.

The following function blocks are included in the library Tc2_NCI.

Function Block

Description

ItpConfirmHsk

Acknowledges an M-function of type handshake

ItpDelDtgEx

Triggers “Delete Distance to go” in the NC

ItpEnableDefaultGCode

Executes a user-defined standard G-Code before the start of each NC program

ItpEStopEx

Triggers the NCI EStop

ItpGetBlockNumber

Provides the block number of the NC program for the cyclic interface

ItpGetBottleNeckLookAheadEx

Provides the value of the look-ahead for bottleneck detection

ItpGetBottleNeckModeEx

Provides the response mode for bottleneck detection

ItpGetChannelId

Provides the channel ID

ItpGetChannelType

Provides the channel type of the cyclic interface

ItpGetCyclicLRealOffsets

Provides the index offset of the LREAL variables used in the cyclic channel interface

ItpGetCyclicUdintOffsets

Provides the index offset of the UDINT variables used in the cyclic channel interface

ItpGetError

Provides the error number

ItpGetGeoInfoAndHParamEx

Reads information of the currently active segment and past and future segments.

ItpGetGroupAxisIds

Provides the axis IDs that were configured for the group

ItpGetGroupId

Provides the group ID

ItpGetHParam

Provides the current H-parameter from the NC

ItpGetHskMFunc

Provides the current M-function number of type handshake

ItpGetItfVersion

Provides the current version of the cyclic interface

ItpGetOverridePercent

Provides the channel override in percent

ItpGetSetPathVelocity

Returns the current set path velocity

ItpGetSParam

Provides the current S-parameter from the NC

ItpGetStateInterpreter

Provides the current interpreter status

ItpGetTParam

Provides the current T-parameter from the NC

ItpGoAheadEx

Triggers the GoAhead function (decoder stop with external trigger event)

ItpHasError

Determines whether an error is present

ItpIsFastMFunc

Determines whether the M-function number provided is present in the form of a fast M-function

ItpIsEStopEx

Determines whether an EStop is executed or pending

ItpIsHskMFunc

Determines whether an M-function of type handshake is present

ItpLoadProgEx

Loads an NC program using program names

ItpReadCyclicLRealParam1

Reads the first LReal parameter from the cyclic channel interface

ItpReadCyclicUdintParam1

Reads the first UDINT parameter from the cyclic channel interface

ItpReadRParamsEx

Reads calculation parameters

ItpReadToolDescEx

Reads the tool description from the NC

ItpReadZeroShiftEx

Reads the zero shift from the NC

ItpResetEx2

Carries out a reset of the interpreter or of the NC channel

ItpResetFastMFuncEx

Resets a fast signal bit

ItpSetBottleNeckLookAheadEx

Sets the value of the look-ahead for bottleneck detection

ItpSetBottleNeckModeEx

Sets the response mode when bottleneck detection is switched on

ItpSetCyclicLRealOffsets

Sets the index offsets of the LREAL variables used in the cyclic channel interface

ItpSetCyclicUdintOffsets

Sets the index offsets of the UDINT variables used in the cyclic channel interface

ItpSetOverridePercent

Sets the channel override in percent

ItpSetSubroutinePathEx

Optionally sets the search path for subroutines

ItpSetToolDescNullEx

Sets all tool parameters (including number and type) to zero

ItpSetZeroShiftNullEx

Set all zero shifts to null

ItpSingleBlock

Enables or disables the single block mode in the NCI.

ItpStartStopEx

Starts or stops the interpreter (NC channel)

ItpStepOnAfterEStopEx

Enables further processing of the parts program after an NCI EStop

ItpWriteRParamsEx

Writes calculation parameters

ItpWriteToolDescEx

Writes the tool description into the NC

ItpWriteZeroShiftEx

Writes the zero shift into the NC

Block search (for description of the functionality see Blocksearch)

ItpBlocksearch

Sets the interpreter to a user-defined location, so that NC program execution continues from this point.

ItpGetBlocksearchData

Reads the current state after an NC program interruption.

ItpStepOnAfterBlocksearch

Starts the motion after a block search.

Retrace

ItpEnableFeederBackup

Enables the backup list for retracing

ItpIsFeederBackupEnabled

Reads whether the backup list for retracing is active

ItpIsFirstSegmentReached

Reads whether the start position is reached during retracing

ItpIsFeedFromBackupList

Reads whether feeder entries were sent from the backup list

ItpIsMovingBackwards

Reads whether backward movement occurs on the current path

ItpRetraceMoveBackward

Performs a backward movement on the path

ItpRetraceMoveForward

Performs a forward movement on the path. This is called to cancel retracing.

Requirements

Development environment

Target platform

PLC libraries to be linked

TwinCAT v3.1.0

PC or CX (x86 or x64)

Tc2_NCI