User's Manual

PMAC User Manual
Writing Programs for PMAC 185
Turning on Compensation
The compensation is turned on by buffered motion program command CC1 (offset left) or CC2 (offset
right). These are equivalent to the RS-274 G-Codes G41 and G42, respectively. If implementing G-
Code subroutines in PMAC motion program 1000, simply incorporate in PROG 1000:
N41000 CC1 RETURN
N42000 CC2 RETURN
Turning off Compensation
The compensation is turned off by buffered motion program command CC0, which is equivalent to the
RS-274 G- Code G40. If implementing G-Code subroutines in PMAC motion program 1000, simply
incorporate in PROG 1000:
N40000 CC0 RETURN
How PMAC Introduces Compensation
PMAC gradually introduces compensation over the next LINEAR or CIRCLE-mode move following the
CC1 or CC2 command that turns on compensation. This lead-in move ends at a point one cutter radius
away from the intersection of the lead-in move and the first fully compensated move, with the line from
the programmed point to this compensated endpoint being perpendicular to the path of the first fully
compensated move at the intersection.
Note that few controllers can make their lead-in move a CIRCLE-mode move. This capability permits
establishing contact with the cutting surface very gently, important for fine finishing cuts.
Inside Corner Introduction
If the lead-in move and the first fully compensated move form an inside corner, the lead-in move goes
directly to this point. When the lead-in move is a LINEAR-mode move, the compensated tool path will
be at a diagonal to the programmed move path. When the lead-in move is a CIRCLE-mode move, the
compensated tool path will be a spiral.
Line
Line
Line
Line
Programmed
Path
Tool Center
Path
Line
Line
Programmed
Path
Tool Center
Path
Arc
Arc
Line to Line Line to Arc
Arc to Arc
Arc to Line
Line
Line
Programmed
Path
Tool Center
Path
Spiral
Arc
Spiral
Arc
Introducing Compensation – Inside Corner
Programmed
Path
Tool Center
Path
Arc
Arc
rr
rr
CC2
CC2
CC2
CC2
Figure 38 Compensation – Inside Corner