Reference Manual
PMAC 2 Software Reference
318 PMAC Program Command Specification
INC
X30 Y40 Z10 F100
Vector distance is SQRT(30
2
+ 40
2
) = 50 mm. At a speed of 100 mm/sec, move time (unblended)
is 0.5 sec. X-axis speed is 30/0.5 = 60 mm/sec; Y-axis speed is 40/0.5 = 80 mm/sec; Z-axis speed
is 10/0.5 = 20 mm/sec.
Z20
Vector distance is SQRT(0
2
+0
2
) = 0 mm. Move time (unblended) is 0.0 sec, so Z-axis speed is
limited only by acceleration parameters.
FRAX(X,Y,Z)
INC
X-30 Y-40 Z120 F65
Vector distance is SQRT(-30
2
+ -40
2
+120
2
) = 130 mm. Move time is 130/65 = 2.0 sec. X-axis
speed is 30/2.0 = 15 mm/sec; Y-axis speed is 40/2.0 = 20 mm/sec; Z-axis speed is 120/2.0 = 60
mm/sec.
See Also
I-variables Ix87, Ix88, Ix89, Ix90
On-line command FRAX
Program commands F, LINEAR, CIRCLE, {axis}{data}.
G{data}
Function
Preparatory Code (G-Code)
Type
Motion program
Syntax
G{data}
where:
• {data} is a floating-point constant or expression in the range 0.000 to 999.999,
specifying the program number and the line label to jump to
Remarks
PMAC interprets this statement as a CALL 10n0.({data’}*1000) command,
where n is the hundreds’ digit of {data}, and {data’} is the value of {data}
without the hundred’s digit (modulo 100 in mathematical terms). That is, this statement
causes a jump (with return) to motion program 10n0, and the specified line label.
(Programs 10n0 are usually used to implement the preparatory codes as the system
designer sees fit.) The value of {data’} can be from 0.0 to 99.999, corresponding to
line labels N0 to N99999.
If the specified program and/or line label do not exist, the G command is ignored, and the
program continues as if it were not there. No error is generated.
This structure permits the implementation of customizable G-code routines for machine-
tool style applications by the writing of subroutines in motion programs 10n0.
Arguments can be passed to these subroutines by following the G-code with one or more
sets of {letter}{data}, as in CALL and READ statements.
Most users will have G-codes only in the range 0-99, which permits the use of PROG
1000 only, and allows {data’} to equal {data} for direct specification of the line
label.
Example
G01 jumps to N1000 of PROG 1000
G12 jumps to N12000 of PROG 1000
G115 jumps to N15000 of PROG 1010
See Also
Program commands CALL{data}, D{data}, M{data}, T{data}, RETURN