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:
- ItpPpgAppendGeoLine adds a linear motion.
- ItpPpgAppendGeoCircleByRadius adds a circle with radius specification.
- ItpPpgAppendGenericBlock inserts a self-defined line, such as activation of rounding or M-functions.
Once the parts program is complete, it is closed with the routines ItpPpgCloseMain or ItpPpgCloseSubroutine.
The following function blocks can be used:
Function Block |
Description |
---|---|
Appends a generic NC line to a specified parts program | |
Adds a circle to a specified parts program | |
Adds a linear motion to a specified parts program | |
Closes a previously opened parts program | |
Closes a previously opened subroutine | |
Opens or generates a parts program | |
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 |