15. COMPENSATION FUNCTION
If the offset amount is negative (–), distribution is made for a figure in
which G41’s and G42’s are all replaced with each other on the program.
Consequently, if the tool center is passing around the outside of the
workpiece, it will pass around the inside, and vice versa.
The figure below shows one example. Generally, the offset amount is
programmed to be positive (+).
When a tool path is programmed as in ((1)), if the offset amount is made
negative (–), the tool center moves as in ((2)), and vice versa.
Consequently, the same tape permits cutting both male and female
shapes, and any gap between them can be adjusted by the selection of the
offset amount. Applicable if start–up and cancel is A type. (See II– 15.6.2
Fig. 15.5 (d) Tool Center Paths when Positive and
Tool center path
Assign a cutter compensation values to the D codes on the CRT/MDI
panel. The table below shows the range in which cutter compensation
values can be specified.
mm input inch input
Cutter compensation value 0 to ±999.999mm 0 to ±99.9999inch
1 The cutter compensation value corresponding to offset No.
0, that is, D0 always means 0. It is impossible to set D0 to
any other offset amount.
2 Cutter compensation C can be specified by H code with
parameter OFH (No. 5001 #2) set to 1.
The offset vector is the two dimensional vector that is equal to the cutter
compensation value assigned by D code. It is calculated inside the control
unit, and its direction is up–dated in accordance with the progress of the
tool in each block.
The offset vector is deleted by reset.
Specify a cutter compensation value with a number assigned to it. The
number consists of 1 to 3 digits after address D (D code). The D code is
valid until another D code is specified. The D code is used to specify the
tool offset value as well as the cutter compensation value.
D Positive/negative cutter
compensation value and
tool center path
D Cutter compensation
D Specifying a cutter