Parts program generator

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.

Parts program generator 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

Requirements

Development environment

Target platform

PLC libraries to be linked

TwinCAT v3.1.0

PC or CX (x86 or x64)

Tc2_NCI