Chapter 7
133
UM10350_PCNC770_Manual_0916A
Programming
Intended Usage
Numbered parameters in the range #31-#5000, named global, and local parameters are available
for general-purpose storage of oang-point values, like intermediate results, ags, etc., throughout
program execuon. They are read/write (can be assigned a value). Subroune parameters,
numbered parameters #1-#30, and system parameters are read-only and not available for general
use. Subroune parameters are used to hold the actual parameters passed to a subroune.
Numbered parameters in the range of #1-#30 are used to access osets of coordinate systems.
System parameters are used to determine the current running version and are read-only.
7.9.2 Parameter Types
7.9.2.1 Numbered Parameters
A numbered parameter is recognized by the pound symbol (#) followed by an integer between 1
and 5399. The parameter is referred to by this integer, and its value is whatever number is stored in
the parameter. A value is stored in a parameter with the (=) operator.
Example: #3 = 15 (set parameter 3 to 15)
A parameter seng does not take eect unl aer all parameter values on the same line have been
found. For example, if parameter 3 has been previously set to 15 and the line:
#3=6 G01 X#3
is interpreted, a straight move to a point where X = 15 occurs before the value of parameter 3 is set to 6.
The # symbol takes precedence over other operaons. For example, #1+2 means the number found
by adding 2 to the value of parameter 1, not the value found in parameter 3. Of course, #[1+2] does
mean the value found in parameter 3.
The # character may be repeated; for example ##2 means the value of parameter whose index is
the (integer) value of parameter 2. PathPilot maintains a number of read-only parameters. Only
parameters for the relevant axes are maintained: (X Y Z A) for mill and (X Z) for mill. The remaining
parameters for unused axes are undened.