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:
- 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. |
Requirements
Development environment |
Target platform |
PLC libraries to be linked |
---|---|---|
TwinCAT v3.1.0 |
PC or CX (x86 or x64) |
Tc2_NCI |