beautypg.com

Smithy CNC Mills User Manual

Page 23

background image

SmithyCNC Programmer’s Reference Manual:G Codes

SmithyCNC Programmer’s Reference Manual: G-Codes

2-8

2.10 G38.2: Straight Probe

Program G38.2 X- Y- Z- A- B- C- to perform a straight probe operation. The axis

words are optional, except that at least one of them must be used. The tool in the

spindle must be a probe.

It is an error if:

* the current point is the same as the programmed point.

* no axis word is used

* cutter radius compensation is enabled

* the feed rate is zero

In response to this command, the machine moves the controlled point (which

should be at the end of the probe tip) in a straight line at the current feed rate

toward the programmed point. In inverse time feed mode, the feed rate is such that

the whole motion from the current point to the programmed point would take the

specified time. If the probe does not trip during the move, an error is signalled.

After successful probing, parameters 5061 to 5066 will be set to the coordinates of

the location of the controlled point at the time the probe tripped.

A comment of the form (PROBEOPEN filename.txt) will open filename.txt and store

the coordinate of each successful straight probe in it. The file must be

closed with (PROBECLOSE).

2.11 G40, G41, G42: Cutter Radius Compensation.

G41,-G42:>

To turn cutter radius compensation off, program G40. It is OK to turn compensation

off when it is already off.

Cutter radius compensation may be performed only if the XY-plane is active.

To turn cutter radius compensation on left (i.e., the cutter stays to the left of the

programmed path when the tool radius is positive), program G41 D- . To turn

cutter radius compensation on right (i.e., the cutter stays to the right of the pro-

grammed path when the tool radius is positive), program G42 D- . The D word is

optional; if there is no D word, the radius of the tool currently in the spindle will be

used. If used, the D number should normally be the slot number of the tool

in the spindle, although this is not required. It is OK for the D number to be zero; a