Chapter 7
87
UM10350_PCNC770_Manual_0916A
Programming
7. Programming
This chapter denes the languages (G-codes, etc.) that are understood and interpreted by the
PathPilot
®
operang system, and is intended for reference purposes. If you want to learn about the
principles of the control language so you can write programs by hand from rst principles, consult
an introductory textbook on G-code programming.
7.1 Definitions
The following terms are dened as follows:
PathPilot
This is the Tormach moon controller.
PathPilot Operang System (OS)
This is the PathPilot controller operang system.
Coordinate System
A coordinate system idenes the posion of geometric features like points, lines, etc., in space. The
default coordinate system in PathPilot is a standard right-hand coordinate system. This coordinate
system is also known as a Cartesian coordinate system.
Linear Axes
The X-, Y- and Z-axes are the orthogonal lines that dene a Cartesian Coordinate System. Posion is
measured in the acve unit length specied by G20 (inches) or G21 (millimeters).
Origin
An origin is the locaon in a coordinate system where the posion of each axis is equal to zero (X0
Y0 Z0). Each coordinate system can have only one origin.
Acve Plane
There is always an acve plane, which must be the XY-plane, the YZ-plane or the XZ-plane of the
machining system. The Z-axis is perpendicular to the XY-plane, the X-axis to the YZ-plane and the
Y-axis to the XZ-plane. Changing the acve plane changes the interpretaon of certain G-codes.
Units
The length units used to describe a posion along the X-, Y- and Z-axes may be measured in either
inches (G20 mode) or millimeters (G21 mode). Units for all other quanes involved in mill control
cannot be changed. Dierent quanes use dierent specic units. Spindle speed is measured in
revoluons per minute; rotaonal axes posions are measured in degrees; feed rates are expressed
in current length units per minute, or in degrees per minute, as described above.