PLC Library: NCI Utilities

The function blocks ItpPpg* provide an option for creating a parts program (G-Code file) from the PLC. During program generation a distinction is made between a main program (ItpPpgCreateMain) and a subroutine (ItpPpgCreateSubroutine).

Subsequently ItpPpgAppend* can be used to add various NC lines. The following function blocks are available:

Once the parts program is complete, it is closed with the routines ItpPpgCloseMain or ItpPpgCloseSubroutine.

PLC Library: NCI Utilities 1:

The following function blocks can be used:

Function Block

Description

ItpPpgAppendGenericBlock

Appends a generic NC line to a specified parts program

ItpPpgAppendGeoCircleByRadius

Adds a circle to a specified parts program

ItpPpgAppendGeoLine

Adds a linear motion to a specified parts program

ItpPpgCloseMain

Closes a previously opened parts program

ItpPpgCloseSubroutine

Closes a previously opened subroutine

ItpPpgCreateMain

Opens or generates a parts program

ItpPpgCreateSubroutine

Opens or generates a subroutine

Prerequisites

Development environment

Target platform

PLC libraries to be linked

TwinCAT v2.7.0

PC (i386)

not implemented

TwinCAT v2.8.0 Build >746 TwinCAT v2.9.0 Build >947

PC (i386)

TcNciUtilities.lib