6000i UsersManual Dec09 PDF
6000i UsersManual Dec09 PDF
Section 1 - Introduction
Effectivity Notation ........................................................................................................................... 1-1
Getting Started ................................................................................................................................. 1-2
Programming Concepts.................................................................................................................... 1-3
Programs.......................................................................................................................................... 1-3
Axis Descriptions .............................................................................................................................. 1-3
X-Axis ........................................................................................................................................... 1-4
Y-Axis ........................................................................................................................................... 1-4
Z-Axis ........................................................................................................................................... 1-4
Defining Positions ............................................................................................................................ 1-5
Polar Coordinates ......................................................................................................................... 1-6
Absolute Positioning ..................................................................................................................... 1-6
Incremental Positioning ................................................................................................................ 1-7
Angle Measurement ......................................................................................................................... 1-7
Plane Selection ................................................................................................................................ 1-8
Arc Direction..................................................................................................................................... 1-9
Section 2 - CNC Console and Software Basics
The Console ..................................................................................................................................... 2-1
Keypad ............................................................................................................................................. 2-2
Alphanumeric Keys....................................................................................................................... 2-3
Editing Keys ................................................................................................................................. 2-6
CNC Keyboard (Option) ................................................................................................................... 2-6
Soft Keys (F1) to (F10) ..................................................................................................................... 2-6
Manual Panel ................................................................................................................................... 2-6
Software Basics ............................................................................................................................... 2-7
Pop-Up Menus.............................................................................................................................. 2-7
Clearing Entries ............................................................................................................................ 2-8
Operator Prompts ......................................................................................................................... 2-8
Cursor ........................................................................................................................................... 2-8
Overwrite and Inserting Text......................................................................................................... 2-8
Deleting Text ................................................................................................................................ 2-8
Section 3 - Manual Operation and Machine Setup
Powering On the CNC ...................................................................................................................... 3-1
Shutting Down the CNC ................................................................................................................... 3-5
Emergency Stop (E-STOP) ................................................................................................................ 3-5
Activating/Resetting the Servos ....................................................................................................... 3-5
Manual Panel ................................................................................................................................... 3-6
Manual Panel Keys....................................................................................................................... 3-7
Manual Panel LEDs ...................................................................................................................... 3-8
Manual Mode Screen ....................................................................................................................... 3-9
Machine Status Display Area Labels .......................................................................................... 3-10
Program Area Labels .................................................................................................................. 3-10
Manual Mode Settings ................................................................................................................... 3-11
PLC, OLM, OSC, and SIK Descriptions...................................................................................... 3-13
Shut Down (SHIFT + F10) ............................................................................................................ 3-13
Messages (Msgs) (SHIFT + F1) ................................................................................................... 3-14
Activating Manual Mode Rapid or Feed ...................................................................................... 3-15
Adjusting Rapid Move Speed ..................................................................................................... 3-15
Adjusting Feedrate ..................................................................................................................... 3-15
Absolute Mode............................................................................................................................ 3-16
Section 1 - Introduction
This manual describes the concepts, programming commands, and CNC
programming formats used to program ANILAM CNC products. Use the
Contents and Index to locate topics of interest. In general, topics are
presented in order of complexity. For example, “Section 1” describes
basic CNC topics while later sections describe Drawing Exchange Format
(DXF) converter programming and special programming features that
require a firm grasp of CNC programming.
The following topics are described in this section:
Effectivity Notation
Getting Started
Programming Concepts
Programs
Axis Descriptions
Defining Positions
Angle Measurement
Plane Selection
Arc Direction
Effectivity Notation
Some sections of this manual apply only to specific ANILAM CNC
product(s). In these sections, icons in the left margin identify the
product(s) to which the information applies. Table 1-1 lists the icons for
each CNC product and the number of axes supported by each product.
6000i-3X
6300M
6000i-3X Systems 3
6000i-4X
6400M
6000i-4X Systems 4
Getting Started
Before you start to write a program, determine the work holding device
and the location of Part Zero (the point to which all movement is
referenced). Since absolute positions are defined from Part Zero, try to
select a location that directly corresponds to dimensions provided on the
part print, such as the lower left corner of the work. Then, you can
develop a program using a procedure similar to the one that follows:
1. To enter the Program Manager from the Manual screen, press
Program (F2). Create a program name for the part.
2. Enter the Program Editor (Edit F8) to open the new program and start
writing blocks.
3. The first block of any program is usually a safe start position and tool-
change position (a position away from the work where the axes can
return for safe tool changing). The first block is normally also used to
specify the units of measurement (Inch/MM), mode of operation
(Absolute), move type (Rapid), and to cancel all auxiliary functions
(Tool Offsets, Spindle, and Coolant).
Typical first blocks: G70 G90 G0 G28 Z0
M5
4. Subsequent blocks in the program set Spindle information, call Tool
number, turn on Coolant, and make the initial move toward the work.
5. The remaining blocks in the program describe the required moves,
Canned Cycles, and Tool changes to complete the machining.
6. The next to the last block in the program returns the axes to the Tool
change position, turning off any auxiliary functions (Tool Offsets,
Spindle, and Coolant). The last block (M2) ends the program.
Typical final blocks: M9
M5
G0 G28 Z0
X0 Y0
M2
7. After you write a program, verify it. Run it in Draw Graphics Mode to
troubleshoot for errors. Verify that all programmed moves are safe
and accurate to the part print dimensions.
8. Now, load the stock material into the selected work-holding device.
9. Set the Tool Offsets for each tool in the Tool Page.
10. Before running the part in the Auto Mode, run it in Single-Step Mode
to verify that both the program and the setting of Tool Offsets have
been correctly completed. Single-Step Mode allows you to execute
the program block-by-block.
11. After you test the program, make any necessary corrections.
12. When the finished program is ready for production, back it up on a
USB Memory Stick.
Programming Concepts
This section contains programming concepts for the beginning
programmer. You must master these concepts and be familiar with the
terminology in order to write programs.
Programs
A program is the set of instructions that the CNC uses to direct the
machine movements. Each line of instructions is called a block. Each
block runs independently, thus allowing the program to be stepped along,
one block at a time.
Axis Descriptions
The machine moves along its axes of motion. All movements along an
axis are either in a positive or negative direction. Not all machines use
the same system to identify axes. The descriptions used in this manual
are commonly used to identify 3-axis mills.
X-Axis
Table movement along the X-axis is to the left and right. Positive motion
is table movement to the left; negative motion is table movement to the
right. Refer to Figure 1-1.
Y-Axis
Table movement along the Y-axis is inward and outward. Positive motion
is table movement outward; negative motion is table movement inward.
Z-Axis
Spindle movement along the Z-axis is upward and downward. Positive
motion is tool movement upward (away from the workpiece); negative
motion is tool movement downward (into the workpiece).
Defining Positions
The intersection of the X-, Y-, and Z-axes is the reference point from
which to define most positions. Refer to Figure 1-2. This point is the X0,
Y0, Z0 position.
Most positions are identified by there X, Y, and Z coordinates. A position
two inches left, three inches back, and four inches up has an X coordinate
of X -2.0, a Y coordinate of Y3.0, and a Z coordinate of Z4.0.
The following topics are described:
Polar Coordinates
Absolute Positioning
Incremental Positioning
Polar Coordinates
Polar Coordinates define points that lie only on a single plane. Polar
coordinates use the distance from the origin and an angle to locate
points. Refer to Figure 1-3.
Absolute Positioning
In Absolute Mode, all positions are measured from Absolute Zero.
Absolute Zero is not a fixed position on the machine. It is a selected
point. Refer to Figure 1-4.
Incremental Positioning
Incremental positions are measured from one point to another, or from
the machines present position. This is convenient for performing an
operation at regular intervals. Incremental positions are measured from
the tool’s present position. Refer to Figure 1-5.
Angle Measurement
Angles are measured with the 3 o’clock position as the Zero Degree
Reference. Positive angles rotate counter-clockwise; negative angles
rotate clockwise. Refer to Figure 1-6.
Plane Selection
Circular moves and tool diameter compensation are confined to the plane
you select. Three planes are available: the XY plane (G17), the XZ plane
(G18), and the YZ plane (G19). It is important to view a plane correctly
when you plan a circular move. If a plane is viewed from the wrong side,
arc directions, angle references, and axis signs are displayed reversed.
The standard rule is to view a plane looking in the negative direction
along the unused axis. Refer to Figure 1-7.
Arc Direction
The standard rule is to view arc direction for a plane from the positive
towards the negative direction along the unused axis. From this
viewpoint clockwise (Cw) and counterclockwise (Ccw) arc directions can
be determined. For example, in the XY plane, you view along the Z-axis,
from Z+ toward Z-, to determine Cw/Ccw directions. The Cw/Ccw arc
directions for each plane are shown in Figure 1-8.
The Console
The CNC console consists of a 12.1-inch color, flat-panel liquid crystal
display (LCD), keypad, soft keys, and manual panel (MP 6000M or MP
6001M Manual Panel). Refer to Figure 2-1.
LCD
Keypad
Soft Keys
Manual
Panel
Console6000i
Keypad
The following topics are described:
Alphanumeric Keys
Editing Keys
Refer to Figure 2-2. The keypad to the right of the LCD has the following
areas:
Alphanumeric Keys: This area consists of the letters of the alphabet
listed sequentially from A to W, and also includes
the CLEAR key (lower right), the numerical keypad
(0 through 9), and the SPACE key (lower-left).
Edit Keys: This area contains the SHIFT (left), ENTER (right),
and the cursor control keys (ARROWS).
CLEAR Key
SPACE Key
ENTER Key
ARROW Keys Edit Keys
SHIFT Key
KEYPAD
Alphanumeric Keys
Alphanumeric keys allow you to enter position coordinates (XYZ moves)
and program G, M, S, and T codes. Some keyfaces have two characters,
a large one in the middle of the key, and a smaller one in the upper-left
corner. The large characters are Primary characters. The smaller
characters are SHIFT key characters.
To type a primary character, press the key that contains that character.
To type a SHIFT key character:
1. Press SHIFT and release. You do not need to hold down the key, the
SHIFT condition remains On until you press the next key.
2. Press the key that displays the required character in the upper-left
corner. Refer to Table 2-1.
Letter D Caret
Letter E None
Letter I None
Letter J Apostrophe
Letter M None
Miscellaneous Functions
(Continued…)
Letter Q None
Letter R Underscore
Letter U None
Letter W Colon
Letter X None
X Axis Coordinate
Letter Y None
Y Axis Coordinate
Letter Z None
Z Axis Coordinate
Number One Left Parenthesis
RAPID
Number Two Right Parenthesis
LINE
Number Three Pound or Number Sign
ARC
Number Four Vertical Bar: used to separate
FEED parts of a blueprint-programming
block for angles/chamfers/radii.
Number Five Semi-Colon
TOOL (shortcut key not
enabled)
(Continued…)
Editing Keys
Use the Editing Keys to edit programs and move around the screen.
Refer to Table 2-2.
Table 2-2, Editing Keys
Software Basics
The CNC’s screens change as different modes are activated. Basic
procedures and features of the software remain the same, regardless of
the CNC’s mode.
The following topics are described:
Pop-Up Menus
Clearing Entries
Operator Prompts
Cursor
Overwrite and Inserting Text
Deleting Text
Pop-Up Menus
Pop-up menus are temporary menus that allow you to make additional
selections. Each pop-up menu contains a highlight bar. The ARROWS
move the highlight bar up and down the menu. Press ENTER to activate a
highlighted selection. Press the soft key that activated the pop-up menu
again to deactivate the function. Refer to Figure 2-3.
UTILITIES POP-UP
Clearing Entries
Press CLEAR to clear an entry in an entry field or a character from a
program.
Operator Prompts
The CNC sometimes prompts for required information. Enter numbers
from the keypad.
Cursor
The CNC uses either a cursor or highlight to mark an item for selection or
editing. The highlight displays in the Edit Mode, Program Manager, and
Manual Mode. Use the ARROWS to move the highlight. The software
highlights a selected item in a menu or window. Selected items can be
activated or changed.
For instance, highlight a program block in Edit Mode to edit it. Highlight
an entry field label in a graphic menu to enter a value or toggle between
the available selections.
The cursor displays when the Tool Page activates. The cursor is a white
underline that indicates where letters and numbers are inserted.
Deleting Text
To delete text:
1. Move the cursor to underline the text to be deleted.
2. Press Delete (F7) to delete the selected text.
NOTE: When you power-on the CNC, ensure that the E-STOP switch is
in the in position.
START
3. Reset the servo drive by pressing the sERVO RESET button with the
EMERGENCY STOP button Out.
4. Press Home (F4) and then press (START) to start. The CNC displays
the Manual screen (see Figure 3-2).
MANUAL
SHIFT MANUAL
DISPLAY GAUGE
8. Press the Display Gauge (F1) soft key to display the Gauge
information on the Manual screen (refer to Figure 3-5). Refer to
Table 3-1.
Table 3-1 describes the Display Gauge soft keys.
Table 3-1, Display Gauge Screen Soft Keys
Label Soft Key Function
Display F1 Displays the gauge information selected
Gauge on the Manual screen.
Remove F2 Removes the gauge information field
Gauge and label from the Manual screen.
Cancel F10 Exits the Display Gauges screen and
does not save changes.
Display
Gauge
field
MANUALwithGAUGEInfo
The Display Gauge field is dynamic. When the spindle motor load
increases, the field in the Display Gauge increases.
To reset E-STOP, pull out and turn the rotary switch clockwise in the
direction of the arrows. The switch makes a clicking sound when it
resets.
Resetting E-STOP does not automatically reactivate the servos. The
servos must be reset to move the machine. Press SERVO RESET to reset
the servos.
Manual Panel
Use the keys on the manual panel to move the machine manually. Refer
to Figure 3-6.
Y Z
Axis Select X U
In Manual Mode, selects the axis to be jogged.
AXIS
(Continued…)
Program Area
Program Position
Display
Distance to Go
Area
Machine Status
Display Area
Command Line
History Area
Active Soft Key
(Highlighted)
MANUAL Screen
Active Soft Key Identifies the function of the soft key. Soft key
functions change from screen to screen. A
highlighted label indicates an active mode.
MESSAGE1D
NOTE: The machine builder determines the default rapid rate at setup.
Adjusting Feedrate
You can run the CNC at a percentage of the programmed feedrate by
adjusting the FEEDRATE OVERRIDE switch. Each click of the FEEDRATE
OVERRIDE switch adjusts the feedrate by an increment of ten percent; the
range is 0 to 120%. Set FEEDRATE OVERRIDE to 100 to set the feedrate to
100% of the programmed feedrate.
CAUTION: If the CNC is shut down, the setup file reloads a default
feedrate at the next power-on.
Absolute Mode
In Absolute Mode, all positions are measured from Absolute Zero.
Absolute Zero is X0, Y0, Z0 when the Absolute Mode is active. You can
move Absolute Zero to any convenient location. All absolute XYZ
positions are measured from this point. Refer to G53 and G92 in
“Section 4 - Preparatory Functions: G-Codes” for more information on
setting absolute zero. Setting Absolute Zero to a location on the part is
referred to as setting Part Zero. Refer to Figure 3-9.
NOTE: To determine the Z-axis location of Part Zero, set tool length
offsets for each tool.
CAUTION: If Part Zero is not correctly located, the CNC does not
position correctly in Absolute Mode.
Jog Moves
You can make or change jog moves when:
• The CNC is in Manual Mode, the Teach Mode, or the Tool Page; and
• The servos are on.
The actual rate for each mode is determined at machine setup. Use the
JOG rotary switch to cycle the CNC through the Jog Mode choices. Refer
to Table 3-7 for the available Jog Modes.
Table 3-7, Jog Modes
Mode Description
Rapid Default rapid speed for continuous jogs. Actual speed
determined at machine setup.
Feed Continuous jog at feedrate determined at machine setup.
Jog: 100 Conventional Jog Mode, increment set to 100 times
machine resolution.
Jog: 10 Conventional Jog Mode, increment set to 10 times machine
resolution.
Jog: 1 Conventional Jog Mode, increment set to actual machine
resolution.
You can change the Jog Mode any time the CNC is in Manual Mode.
NOTE: Jog move modes, with the exception of Jog Rapid Mode, are
performed in Feed Mode.
To change the Jog Mode:
1. In Manual Mode, turn the JOG switch to select a jog feed rate.
Selecting an Axis
To select an axis in the Manual Mode:
1. Use the AXIS SELECT rotary switch to cycle through the available axes.
Turn the switch until the indicator points to the required axis.
MDI
Press START to continue. Press Manual (F4) to cancel. MDI moves are
executed only once. To recall a previously commanded block, press UP
ARROW or DOWN ARROW to go to the line that you want. You can execute
from any line on the MDI history page. After you execute, the CNC takes
you to the top line of the history page. You can store up to 150 lines on
the MDI history page (two lines stores above). Use (SHIFT + F2) Clear
MDI to clear the history page.
G0 initiates rapid traverse. The machine builder sets the actual rapid rate
in the Setup Utility. Use rapid to position the tool prior to or after a cut.
Do not use rapid to cut a part. Refer to Figure 4-1.
One to four axes can be included on a block with G0. X, Y, and Z reach
the target simultaneously.
G0 is modal and remains in effect until canceled or changed.
Table 4-2 lists the program blocks required to complete the moves
illustrated in Figure 4-1.
Feed move (G1) initiates straight-line feed motion and is used to cut a
part. Straight-line motion occurs in one or more axes. The block may
contain any combination of available axes. G1 moves can be straight-line
or angular moves.
.5”
(12.7 mm)
2.5”
(63.5 mm)
Any arc of less than 360 degrees is a partial arc. Use Address Words X,
Y, I, J together.
To program a move from P1 to P2, calculate arc centers (I and J) and
endpoints (X and Y). Refer to Figure 4-5.
From P1 to P2, the block format is: G91 G3 X.5559 Y.7244 I-.1941
J.7244
Construct a triangle at a right angle to the given angle (15 deg.). Using
the given angle (15) and the hypotenuse (.75, radius), calculate the
lengths of the unknown sides I (opposite side) and J (adjacent side).
A. Sine (15 deg.) times hypotenuse = I
.2588 x .75 = .1941
Y = J = .7244
NOTE: If the endpoint (P2) does not lie along the arc path, the CNC
displays an error message.
Circles
Since the endpoint and starting point of a circle are the same, you do not
need to program an endpoint for a circle. Position the tool at the required
starting point before you execute the arc move. Refer to
Figure 4-6.
Format: G91 G3 J.5
Since X, Y, and I equal 0, omit these parameters.
Dwell (G4)
Dwell (G4) can be used to program a delay between blocks. A Timed
Dwell is a timed stop. An Infinite Dwell is a stop that can be canceled
only by pressing START. With a dwell activated, the CNC halts motions on
all axes, but other functions (coolant on/off, spindle control) remain active.
Do not program any other commands on a G4 block. T is the time in
seconds that the machine remains at the current location. The range of T
is .1 to 9999.9 seconds.
Example: N21 G4 T0
Block 21 commands an infinite dwell.
The time countdown is displayed in the Machine Status Area of the
Manual screen.
Format: G9
The In-Position Mode is active only for the block containing the G9
command. Use G61 to initiate modal Exact Stop (In-Position Mode).
To determine arc direction, look toward the negative direction of the non-
used axis. Refer to Figure 4-8. (Example: for XY plane, look along Z-.)
The software limits feature creates an envelope that limits the tool’s range
of travel. It is also called the Stored Stroke Limit feature. The X, Y, and Z
limits represent the extreme distance the tool can travel in the positive X,
Y, and Z directions. The I, J, and K limits represent the extreme distance
the tool can travel in the negative X, Y, and Z directions. Refer to Figure
4-9.
Software limits are referenced to Absolute Zero (Machine Home). The
values of the positive and negative limits depend on where you locate
Machine Home.
Format: G30 Xx Yy Zz Uu
xyzu = coordinates X, Y, Z, and U of G29 move. The CNC
commands a move from Machine Home to the G30
coordinates.
Table 4-15, G30 Address Words
Label Address Description
Word
X X G30 move in X
Y Y G30 move in Y
Z Z G30 move in Z
U U G30 move in U
G53 cancels Mirroring (G100), Axis Rotation (G68), and Scaling (G72).
99 offsets (zero shifts) are available. Offsets are stored in a table. To
activate the Fixture Offset Table in Manual Mode, press F9 (Tool) + F1
(Offsets). You can update this table through the program. If you use a
G53 command to change the offsets in the table, the CNC overwrites the
values in the Fixture Offset Table.
The letter O followed by the Fixture Offset Table number (1 to 99) defines
an offset.
The following topics are described:
OFFSET
R defines the radius value for corner rounding. E defines a chamfer size.
Refer to Table 4-16. G59 is modal. It stays active until canceled with a
G60 code. The CNC activates linear interpolation (G1) with G59. You do
not have to program G1 prior to the G59 block.
Corner Rounding Format: G59 Rn
Chamfer Format: G59 En
Dimensions:
3 x 2 IN.
(76.2 X 50.8MM)
R = .375 IN.
(9.53 MM)
G59PROG
G61 is modal and remains in effect until canceled. Use Contouring Mode
(G64) to cancel the G61. Non-modal In-Position Mode (G9) remains
active only for a single block.
Format: G64
NOTE: the machine builder defines the In-Position and Continuous Path
Tolerances in the Setup Utility.
G64 is modal and remains in effect until canceled. Use Exact Stop Check
(G61) to cancel the Contouring Mode. G64 initiates linear interpolation
(G1).
NOTE: Before using macros, you must understand how variables and
parameters are used in a program or subprogram. Refer to
“Section 17 - Advanced Programming Features” for an
explanation of these features.
NOTE: G65 or G66 codes always contain some letter variable(s) (Pn,
An, Bn, etc.) to be passed to the macro (subprogram).
A macro is a group of instructions stored in memory and called by the
main program when needed. Think of macros as sophisticated, flexible
subprograms, which can be modal (G66) or Non-modal (G65). Refer to
Table 4-20.
Macros might consist of:
• Customized canned cycles to simplify the programming of a particular
part or entire programs for similar part production.
• Parameters (Pn, An, Bn, etc.) passed to the subprogram by letter
address, similar to canned cycles.
• Automatic measuring sequences using sensors, such as probes, for
feedback to the CNC.
Table 4-21 lists and describes the Address Words and M-Codes used
with macros.
Table 4-21, Macro Address Words
Address Word Format Description
Pn Pxxxx Used in G65 and G66
commands. Lists macro number
(O) to be called.
Ln Lxxxx Used only in G66. Optional
repeat command. Specify
number of times macro should
repeat (1 to 9999).
On N(block Number) Macro number that occurs in the
Oxxxx first line of the macro; for
identification.
M99 M99 End macro (subprogram) and
return to line following G65 or
G66 in main program.
A subprogram consists of fixed dimensions, but a macro contains
variables and parameters that can change every time the macro is used.
The CNC can pass values to variables in the G65 or G66 command. to
variables
Macros can be stored in the same file as the main program or in a
separate file. Use the File Inclusion feature to call Macros stored in a
separate file.
Refer to “Section 17 - Advanced Programming Features” for a more
detailed explanation of Parameter Passing, Parameter Variables, and File
Inclusion.
Macros stored in the same file as the main program are defined in the
same way as a subprogram; with the O address word followed by a label
number. The macro is terminated with the M99 code and entered into
the Program Listing after the main program. Refer to Table 4-22, Macro
Program List.
If the command contains an L address word, the macro is repeated the
specified number of times before the CNC returns to the main program.
Use the G65 Macro call to call a macro into the main body of the
program. Refer to Table 4-23.
The CNC executes the macro (201) at block 50, with or without repeated
loops, as programmed. When the CNC detects the M99 (End Macro)
Code, it returns to the next line of the main program (N60).
Minimum data entry for G68 rotation is: G68 Cn. If I and J are not given,
the current position is used. S angle is referenced to the original
programmed position. For example: If a slot is programmed at the 90-
degree position, S is referenced from 90 degrees. S should be used only
if L and P are programmed. C must be programmed. P and L are
optional. They enable a loop to be executed, so the subprogram is called
at each angle increment. G17, G18, or G19 must be commanded prior to
programming G68.
The following topics are described:
N21 sets the XY plane and Absolute Mode. N22 enables rotation angle
of 30 degrees, the origin is X1.5 Y.5. N23 executes sub 1001 at the
rotated position. The sub is programmed at the 3 o'clock position. N24
cancels polar rotation.
Example 2: Refer to Figure 4-14 and Table 4-26.
Example 2 uses all variable words of the G68 function. Only the path
from the 12 o'clock position (90 deg.) to the 1:30 position (45 deg.) is
programmed in the subprogram. The G68 loop increments the angle and
recalls the subprogram to complete the shape.
N1 through N4 set program number, modals, position, and tool activation.
N5 and N6 move the tool to the starting position.
N7 moves to the 12 o'clock position one-half of the cutter away from the
part.
Note that cutter compensation cannot be active prior to calling G68. G41
or G42 cutter radius compensation must be activated at the beginning of
the subprogram, and then canceled with a G40 prior to the end of the
subprogram.
N8 calls the G68 rotation function: origin (I,J) at X0 Y0, starting angle (S)
of zero degrees (First call of subprogram will not be rotated), angle
increment (C) of -45 deg. (CW is negative), call subprogram (P) 1, and
loop count (L) equals eight.
N9 returns back to the starting position in the Y axis.
N10 to N12 brings the Z axis to machine home, then move the X and Y
axes to position and ends the program.
N16 to N22 define the 45-degree section for the shape, from 12 o'clock
position to 1:30 position, turning on and off cutter radius compensation for
each iteration of the rotation loop.
NOTE: If you are using S and L format, you do not need to cancel G68.
Scaling (G72)
Use Scaling (G72) to enlarge or reduce patterns commanded by the
program. Refer to Table 4-28. G72 is modal. If a variable word is not
given, it is assumed to be x1 factor. Axes for circular motion must have
the same factor.
Activating Format: G72 Xn Yn Zn
Tool length offsets, diameter offsets, tool wear factors, and cutter
compensation are not affected by G72. No other codes are allowed on a
G72 block.
Activate the Tn command before G72, and then deactivate G72 before
deactivating the Tn command. This applies to all tools (T0 to T99).
Example: G72 X2 Y2 Z1
The CNC scales all X and Y moves to twice their programmed size. Z
moves will not be scaled (times 1). Z could have been omitted.
G92 cancels Mirroring (G100), Axis Rotation (G68), and Axis Scaling
(G72).
Mirroring (G100)
Format:
G100 XYZUVW
G100 programmed with axis (G100 X) activates “mirroring” (ON) for that
axis. Mirroring reverses the sign (+/-) of subsequent numbers. More than
one axis can be mirrored at once (G100 XY). To cancel mirroring,
program G100 on a block by itself. Refer to Table 4-30.
BlockForm (G120)
Format:
G120 Xnn.nnnn Ynn.nnnn Znn.nnnn Inn.nnnn Jnn.nnnn Knn.nnnn
G120 is used to define a window in relation to the part zero. This is used
by the Draw function to present a solid model on the raw stock. Refer to
Table 4-31.
Feedrate (FEED)
Format:
Fn.n
A Feed block sets the feedrate for Line moves, arcs, and cycles that do
not contain specifically programmed feedrates. Feed blocks also set the
feedrate for modal moves. Add Feed blocks whenever necessary. Refer
to Table 4-32.
Canned Cycles
A canned cycle is a preset sequence of events initiated by a single block
of data. Canned cycles are part of the CNC software and cannot be
altered. They simplify the programming of complicated cycles. One block
of data can instruct the CNC to perform the necessary moves to drill a
hole, or mill a pocket.
NOTE: The P entry (return height) is optional, and you do not need to
provide it. If you do not specify P, the CNC sets it to R.
Keep the following in mind for drill cycles:
• P dimension is optional. If it is not given, the retract height is the
same as the Z start height (R dimension).
• F feedrate is optional. If it is not given, the current feedrate is used.
• All start heights (R) and finish heights (P) as well as Z dimensions are
absolute dimensions.
• P must be greater than R, or an alarm is given.
• For all peck drill cycles (G83 and G87), R (start height) must be 0.1"
(or 2 mm) above the work surface.
• G84 (Tapping) uses S word for Spindle Yes/No. Your machine must
be equipped with spindle M-functions to use G84.
• Z-axis depth can be changed by placing a new Z depth on the same
line as the X- and/or Y-axis location of the hole you want the new
depth applied. A Z address on a line of its own causes the control to
drill the new depth at the current location.
The following topics are described:
Address
Label Word Description
ZDepth Z Absolute hole depth. (Required)
StartHgt R Initial Z start point, in rapid. (Required)
Feed F Feedrate
ReturnHgt P Z return point after hole depth, in rapid.
P must be higher than R.
CounterBore Drill Cycle (G82)
Format: G82 Zn Rn Dn Fn Pn
G82 is the counter bore cycle, generally used for counterboring. It feeds
from the R-plane to Z depth, dwells for specified time, then rapids to the
return point. Refer to Figure 7-13, CounterBore Drill Cycle Screen.
Refer to Table 5-2.
Table 5-2, G82 Address Words
Address
Label Word Description
Finish Depth Z Absolute hole depth. (Required)
Start Height R Initial Z start point, in rapid. (Required)
Dwell Time D Dwell time (in seconds). (Required)
Feed Rate F Feedrate
Return Height P Z return point after hole depth, in rapid.
P must be higher than R.
Address
Label Word Description
ZDepth Z Absolute hole depth. (Required)
StartHgt R Initial Z start point, in rapid. (Required)
Feed F Feedrate
ReturnHgt P Z return point after hole depth, in rapid.
G86 is a boring cycle that allows the X-axis to back off the bore surface
after the spindle has stopped and oriented itself. The cycle feeds from
the R-plane to Z depth, dwell for the specified time, stop and orient the
spindle to the specified angle C, back off in X, rapid retract in Z, re-
position in X, and restart the spindle. Refer to Table 5-6.
Address
Label Word Description
Finish Depth Z Absolute hole depth. (Required)
Start Height R Initial Z start point, in rapid. (Required)
Feed Rate F Feedrate
X Backoff I X-axis incremental backoff distance in X
(positive or negative dimension).
Dwell Time D Dwell time (in seconds)
Return Height P Z return point after hole depth, in rapid.
Index Angle C M19 index angle. If no angle is given,
the angle for spindle orientation defaults
to zero.
Address
Label Word Description
ZDepth Z Absolute hole depth. Required.
StartHgt R Initial Z start point, in rapid. Required.
FirstPeck I First peck distance (positive dimension).
Required.
PeckDecr J Amount to subtract from previous peck
(positive dimension). Required.
MinPeck K Minimum peck distance (positive
dimension). Required.
Feed F Feedrate.
ChipBrkInc W Chip break increment (positive dimension).
RetractDep U Incremental depth between full retracts
(positive dimension).
ReturnHgt P Z return point after hole depth, in rapid. P
must be higher than R.
Address
Label Word Description
Finish Depth Z Absolute hole depth. (Required)
Start Height R Initial Z start point (0.1 inch or 2 mm), in
rapid. (Required)
Dwell Time D Dwell time (in seconds). (Required)
Feed Rate F Feedrate
Return Height P Z return point after hole depth, in rapid.
Drilling Example
The following example assumes that the machine has no automatic tool
changer (ATC). If your machine has an ATC, check your machine
manual for proper tool changer programming procedures. Refer to
Figure 5-1 and Table 5-9, Drilling Example, Inch (Metric).
Drilling
Address
Label Word Description
StartAngle A Angle of the first hole. (Required)
#Holes H Number of holes in full bolt circle. (Required)
Diameter D Diameter of bolt circle. Tool normally moves
from hole to hole in a CCW (positive)
direction. For CW direction, D = negative.
(Required)
XCenter X Absolute X center of the bolt-circle. Defaults
to current position.
IndexAngle C Rotates the Polar Coordinate System by
entered angle. Default: 0 degrees (3
o'clock). CCW = positive, CW = negative.
YCenter Y Absolute Y center of the bolt-circle. Defaults
to current position.
EndAngle B Angle of the last hole. If there is no B value,
the CNC executes a full bolt hole circle.
Radial Path R Move from hole to hole on a radius. Set to
1.0 to activate circular path between holes.
Defaults to straight-line path between holes.
POLAR
Address
Label Word Description
X X Absolute X position of start hole. (Required)
Y Y Absolute Y position of start hole. (Required)
#XHoles B Number of holes in X-axis. (Required)
#YHoles E Number of holes in Y-axis. (Required)
XIncr U Increment between holes in X-axis. Can be
used instead of A.
YIncr V Increment between holes in Y-axis. Can be
used instead of D.
Angle C Angle to rotate the hole pattern. Default is 0
degrees (3 o'clock position).
Length A Length of pattern in X-axis. If used, U cannot
be given.
Width D Width of pattern in Y-axis. If used, V cannot
be given.
Perimeter W Pattern or Square. If W is 0, then a matrix
pattern is drilled. If W is 1, then a perimeter
pattern (edges only) is drilled. Refer to
Figure 5-3.
Example:
G81 Z-.1 R.1 F15
G179 X2 Y1 C30 B6 E4 U.5 V.375 W0
G80
These blocks rotate a bolt hole pattern 30 degrees counterclockwise.
Refer to Figure 5-4.
G179
Pocket Cycles
Pocketing cycles eliminate extensive programming. One block of
programming mills out the described pocket. Activate a tool before
programming a pocket cycle. All pockets use the current tool diameter
from the Tool Page.
XY positioning may be necessary prior to programming a pocket cycle.
Programmer is responsible for all Z moves in Hole Mill (G76) cycle.
Cutting direction is reversible in the pocketing cycles.
Always check that tool-to-corner radii do not conflict.
Z and P dimensions are absolute.
On all cycles with variable A (tool stepover), A must be less than the tool
diameter. In G78 and G178, A must be 70% or less of tool diameter.
Alarm messages occur if the CNC detects program errors.
G41 and G42 are not permitted during pocket cycles. Pocket cycles use
"built-in" cutter compensation.
Stock variable #1030 is not permitted and is ignored.
WARNING: When you cut one pocket inside another, make sure to
set P above the highest pocket. At the end of each pocket, the tool
rapids to P, and then rapids to the start position.
For plunge pockets (G177, G178), drill a start hole prior to activating the
pocket; position the axes over the start hole prior to G177 or G178.
The following topics are described:
Example:
This program cuts the draft angle pocket shown in the figure. The
drawing does not show the finish pass. Assume an existing rectangular
pocket (4 in. long x 2 in. wide x 1 in. deep) with a theoretical sharp lower-
left corner at X2 Y2. The following program machines a draft angle onto
the existing pocket. Refer to Figure 5-5 and Table 5-13.
Example:
G75 M3 W1.125 H.1 Z-.375 A.25 B.36 I5 J18 U.25 V.5 C1 S.015 K30 P.1
Figure 5-6 illustrates the moves output by the CNC to mill the frame.
cycle:
NOTE: If X and Y are not provided, position the tool at the center of the
island prior to G75.
1. Tool rapids from position 1 to position 2: X is the center of the inside
corner radius (U), and Y is the corner radius plus tool radius plus
finish stock.
2. Tool feeds -.1 (or 2 mm) in Z to the part surface.
3. Tool performs a ramp-in move to O.D. of frame minus tool radius
minus finish stock (position 3).
4. Tool then moves 360 degrees CCW around frame back to position 3.
5. Tool then steps over calculated amount, and mills CW until position 2
is reached again at depth.
6. Tool then mills 360 degrees CW (climb-milling) around the island.
7. When the frame is completed, the tool rapids first to the P dimension,
then to the center of the island.
Address
Label Word Description
Diameter D Diameter of hole. Negative D = CW direction. The
direction CCW (climb milling) is reversible:
+D dimension = climb (CCW)
-D dimension = conventional (CW)
(Required)
XCenter X X coordinate of the center. Default: Pocket centers at
present position.
YCenter Y Y coordinate of the center. If no coordinate is provided,
default is set to present position.
DepthCut B Z-axis increment used for each pass.
ZDepth Z The absolute depth of the finished pocket.
StartHgt H Absolute Z position to which the CNC rapids before
feeding into the workpiece.
RoughFeed J Rough-pass feedrate. Defaults to last programmed
feedrate.
FinFeed K Finish-pass feedrate. Defaults to last programmed
feedrate.
FinStock S Finish-stock amount per side. If you enter a negative
value, stock is left, but no finish pass occurs. If you do
not enter a value, no finish stock is left.
Example:
G76 D2.5 J12 S.01 K20
4. Tool leaves O.D. tangentially to a point 135 degrees from the center
at half the radius. CCW (position 5).
5. Tool returns to center (position 6).
6. If you have programmed a finish pass, the process repeats at the
finish dimensions.
3,4
5 2
6 1
2.5" Dia.
G76
Example:
G77 X2 Y2 H.1 Z-.25 D3 A.35 B.25 I12 S.01 K20 P.1
In Figure 5-8, the tool performs the following operations:
NOTE: If you do not use X and Y words, you must position the tool at
the center of the pocket before the G78 block.
X
2 X 4 OVERALL G78
Islands (G162)
Format: G162 An Bn Cn Dn En
This cycle allows islands in irregular pockets. Pockets with Islands must
be programmed using subroutines.
More than one G162 Island cycle can be programmed at a time. They
may be strung together, or on separate lines. Islands can be
programmed inside of islands. Five islands can be put on a line. The
subroutine number is used as inputs. Refer to Table 5-19.
Islands that are defined to be avoided on the inside of an irregular pocket
are done so by using the G162 followed by a list of up to 5 subprogram
label names. If more than 5 islands need to be defined, the G162 can be
used to define as many subsequent islands as desired in multiples of 5 up
to as many as needed. As in the following example:
G162 A 2 B 3 C 4 D 5 E 6
G162 A 7 B 8 C 9 D 10 E 11
G162 A 12 B 13 C 14 D 15 E 16
G162 A 17 B 18
and so forth … prior to calling the G169 area clearance or irregular pocket
command.
SUBROUTINES PISLANDS
41 X15
42 Y15
43 X10 Y10
44 M99
45
46 O20 *Subroutine for second island
47 *G41 to indicate cutter path is also outside of the island
48 G41
49 G0 G90 X20 Y12
50 Y15
51 X25
52 Y12
53 X20 Y12
54 M99
6.0
ABS
ZERO 2.5
1.5 .5 R 1.5
G169
17 G91 G1 Y1
18 G90 X0 Y-1.5
19 Y0
20 M99
Example 2:
Use an irregular pocket cycle to cut the pocket shape. Input the
"perimeter" of the pocket into a subprogram. The CNC calculates the
moves to mill out the pocket. Input a 3/8" diameter tool in the Tool Page.
This part program consists of a main program and a subprogram. Refer
to Figure 5-12 and Table 5-22.
Rad. 1.25"
Rad. 0.75"
X0,Y0 X5,Y0
G169_2
Execution begins one tool radius from the D and E (start point). The
selected stepover determines the approach axes. Refer to Figure 5-13.
Facing cycles can start in any corner of the surface and cut in any
direction, depending on the sign (+/-) of the X (Length) and A (Width)
values. Program a slightly oversized X and A to ensure complete facing
of the surface.
At the end of the cycle, the tool rapids to H, then rapids back to D and E
(start position).
Refer to Figure 7-5, Face Mill Cycle Screen. Table 5-23 describes the
FACE MILL entry fields.
Table 5-23, G170 Address Words
Address
Label Word Description
Length X X-axis length to be faced. (Required)
Width Y Y-axis length to be faced. (Required)
StartHgt H The Absolute Z position before beginning the facing
cycle. This must be 0.1 inch (or 2 mm) above the
surface. Executed in rapid. (Required)
ZDepth Z Absolute depth of the finished surface. (Required)
NOTE: ZDepth must be lower than StartHgt. StartHgt
is 0.1 inch (2.0 mm) above the work surface.
XStepOver A Width of cut in the X-axis direction. When you do not
enter a value, the CNC defaults to 70% of the active tool
radius. Maximum step-over permitted is 70% of the
active tool radius.
YStepOver B Width of cut in the Y-axis direction. When you do not
enter a value, the CNC defaults to 70% of the active tool
radius. Maximum stepover permitted is 70% of the active
tool radius.
Feed F Feedrate used in cycle.
XStart D X coordinate of the starting point. Defaults to current
position.
NOTE: Type the required absolute XStart and YStart
coordinates when possible.
YStart E Y coordinate of the starting point. Defaults to current
position.
NOTE: Type the required absolute XStart and YStart
coordinates when possible.
2
1
X, Y X, Y
1 2
Ramp Ramp
Inside Outside
2
1
X, Y X, Y
Wi d t h Wi d t h
Rad i u s 1 Radi u s
2
Ramp Ramp
Inside Outside
When you enter a value, the CNC executes the number of passes
required to get from the H (StartHgt) to the Z (ZDepth), cutting the B
(DepthCut) on each pass.
When you enter an S (FinStock) value, the CNC leaves the specified
stock on the profile and depth for a finish pass. The CNC cuts the
rectangle to the M (Length), W (Width), and Z (ZDepth) dimensions on
the finish pass. Enter a negative S (FinStock) to leave the finish stock
without making a finish pass.
When you do not enter a J (RoughFeed) or K (FinFeed), the CNC
executes feed moves at the current feedrate. J (RoughFeed) controls
the feedrate of the roughing cycle. K (FinFeed) controls the feedrate of
the finishing cycle.
NOTE: If the “D” parameter is used for cutter compensation, the lines of
code in the mill cycle must start with an uncompensated ramp-
on move and end with an uncompensated ramp-off move as the
first and last lines in the mill cycle are not automatically
compensated by the cycle.
Refer to Figure 7-8, Mill Cycle Screen. Refer to Table 5-26.
Table 5-26, G175 Address Words
Address
Label Word Description
XStart X X coordinate of the center. If no coordinate is provided,
default is set to the present position. (Uncompensated)
(Required)
In G-Code, the mill cycle starts with G175 and ends with G176 as in the
example below.
G70 G90 G0 G17
M5
G28 Z0
G120 X.1 Y1.1 Z.0 I-1.1 J-.1 K-.25
T1 M6
G90 G0 X-.5 Y.5
G175 X-.5 Y.5 H.1 Z-.25 B.125 D41 I25 J35 K45 S.01
G91 G1 X-.5
Y-.5
X1
Y1
X-1
Y-.5
G176 X-.5 Y.5
G90 G0 Z1
X0 Y0
M2
EndMill Cycle (G176)
Format: G176 Xn Yn
The mill cycle is terminated with the EndMill (G176) block; at which point,
it rapids up to the StartHgt and returns to the uncompensated X and Y
location. Refer to Figure 7-9, EndMill Cycle Screen. Refer to
Table 5-27.
WARNING: The first move in this cycle is a rapid move to the center
of the thread before moving the Z axis. Make sure the tool is
properly located before calling up this cycle.
Use the thread milling for cutting inside or outside threads. It cuts either
Inch or MM, left or right hand, and Z movement up or down. A single
tooth or multi-toothed tool may be used. Start can be at the top or bottom
of the hole or boss. The tools are set, as you would normally set TLO.
Programming the Thread Mill Cycle
To program the Thread Mill Cycle:
1. In Edit mode, press Help (F1), then select THREAD MILL CYCLE
display the G181 Thread Mill Cycle menu (refer to Figure 7-10,
Thread Mill Cycle Screen).
2. Complete the entry fields (refer to Table 5-28), and press USE (F10).
Tool Length Offset is set the same as with any other tool or operation. A
tool diameter also has to be set in the tool table, as cutter compensation
is built into this cycle (cutter compensation is not allowed during the use
of this cycle).
• The Z-axis feeds down to the start cut position H (ZStart). This could
be above or below the Z position specified in the Z (ZFinish) finish
position.
• Depending on what is in the R (ArcInRad) parameter the tool arcs
into the first cut position.
• Spiral up or down, depending on the difference between “Z” and “H”
and go counterclockwise or clockwise depending if D (MajorDia) is
plus or minus.
• Then arc-out and feed to the thread center for inside threads or a safe
distance away from the thread for outside threads depending on the
value in R (ArcInRad).
• Then feed back to the “H” height.
• Then feed X and Y to the next depth of cut. The depth of each
roughing pass is the thread depth specified in the C (ThdDepth)
parameter minus the stock amount specified in the S (StockAmt)
parameter, divided by the number of roughing passes specified in the
E (Passes) parameter.
• The cycle repeats this process until the final finish pass.
• It then cuts the thread at the full thread major diameter.
You must position the start hole at the center of the pocket prior to G177
and drill to a sufficient depth.
The required position of the start hole is as follows:
1. For inward to outward cutting (+A) (Stepover): at the hole center.
2. For outward to inward cutting (-A): start hole must be at the 3 o'clock
position on the pocket perimeter, less finish stock, less tool radius.
3. Drilled to a sufficient depth.
4. The axes must be positioned over the start hole prior to programming
this cycle.
5. If you position the tool at the pocket center and omit XY words from
G177 block, the CNC uses current position as pocket center.
Plunge Rectangular Pocket (G178)
Format: G178 Mn Wn Hn Zn Xn Yn Bn In Jn Kn Sn Pn An Un
Use the plunge rectangular pocket cycle (G178) for carbide tooling, where
a multiple-axis ramp-in move is not possible. The Z-axis plunges (single-
axis) to the programmed depth. You must drill a start hole previous to the
G178 cycle. Activate a tool prior to programming G178, so cutter
diameter is known. Position the tool at the center of the pocket prior to
G178, or use the X and Y words. Refer to Figure 7-16, Plunge Rect
Pocket Screen. Refer to Table 5-30.
Address
Label Word Description
Finish Feed K Finish-pass feedrate. Defaults to last programmed
feedrate.
Finish Stock S Finish stock amount per side (including bottom).
Negative = stock is left, but no finish pass occurs.
Positive = leave stock and execute finish pass. If not
programmed, no finish stock is left.
Retract P Z-axis absolute finish height (must be equal to or above H).
Height Defaults to H (Z Start Height value). Executed in rapid.
WARNING: When you cut a pocket inside another
pocket, you must set P above the highest pocket. At
the end of each pocket, the tool rapids to P, then
rapids to the start position.
Stepover A Maximum tool stepover (must be 70% or less of tool
diameter). Positive = CCW. Negative = CW. Defaults to
half tool diameter.
Corner U Actual corner radius of pocket (all four corners). Must be
Radius equal or greater than tool radius. Defaults to tool radius.
You must position the start hole at the center of the pocket prior to G178
and drill to a sufficient depth.
(Xcenter,Ycenter)
Width
Use the circular slot cycle (G211) to mill a slot along a circular path. You
must position the tool directly over the circle center prior to the G211
block, or use the X and Y words. Refer to Figure 7-18, Circular Slot
Cycle Screen. Refer to Table 5-32.
Example:
G211 D8 E45 F90 W2.5 H.1 Z-0.75 X0 Y0
NOTE: If you do not use X and Y words, you must position the tool at the
center of the slot circle before the G211 block.
4. Tool mills out the circular slot with arcs using feedrate J, until first
level is completed (less finish stock).
5. Tool repeats this process, if necessary, to achieve full depth (less
finish stock).
6. Optional finish pass is made in the same manner at feedrate K.
7. When the slot is complete, tool rapids to P.
1. In Edit mode, press Help (F1), then select G190 Engrave Cycle and
press ENTER to display the G190 Engrave Cycle menu (refer to
Figure 7-11, Engrave Cycle Screen).
2. Complete the entry fields (refer to Table 5-33), and press USE (F10).
This program rapids to X1.0 Y1.0. Z rapids to 0.1 and the letters ABCD
are engraved 0.0100” deep and 0.500” high.
Subprograms
Program repetitive sequences or patterns in a subprogram. Enter
subprograms in the program after the end of the main program. Call
subprograms from the main program. Refer to Table 5-34.
Table 5-34, Subprogram Addresses
M98 Pn Jump to subprogram.
M99 Return to main program.
Oxxxx Subprogram label. Up to 4 digits.
Pn Subprogram number to jump to.
A subprogram can use any code or move type. For example, to cut a
contour twice (one rough pass and one finish pass), program it as a
subprogram. You can call the subprogram from the main program as
many times as required, but you enter the parameters only once.
Subprogram(s) must be stored in the same file as the main program that
calls them.
The following topics are described:
Subprogram Addresses
Repetition of Subprogram (Loop)
Calling a Subprogram from a Subprogram
End of Subprogram (M99) with a P-Code
Subprogram for Multiple Parts Programming
Loop Function
Subprogram Addresses
Examples:
M98 P2000 commands a jump to subprogram O2000.
Following the program number, blocks in a subprogram are numbered as
in normal programming, as in the following example:
N2000 O2000 * SUBPROGRAM #2000
N2001 * blocks in program
N2002
N2003 etc.
You can store subprograms anywhere in the program after the main
program. They do not have to be entered in numerical order or begin on
any specific block number. Refer to Table 5-35.
Table 5-35, Subprogram Called from a Main Program
Main Program
N1 O3 *SUB-EX1
N2
N3 M98 P100 Jump to N67 to execute subprogram 100.
N4
N5
N6
N7
N8 M02
Subprogram
N67 O100 CNC jumps to here at N3, completes subprogram
until it reaches M99 (N71), and then returns to the
main program at N4.
N68
N69
N70
N71 M99
Example:
Mill out a series of identical slots in a plate. Each slot is 1/2" wide and
0.3750" deep. Slot 1 is programmed in a subprogram. All XY dimensions
are incremental to enable you to position the slot anywhere on the
coordinate system. Refer to Figure 5-17.
1.0 (25.4)
3.5 (88.9)
1.0
(25.4)
The main program positions the cutter for each slot and calls the
subprogram that mills out the slots. Subprogram O100 uses incremental
values to enable you to position the slot at various positions on the work.
For all three slots, you must position the cutter before you call the
subprogram. Refer to Table 5-37.
Loop Function
In some cases, it is simpler to command a program block or series of
blocks to loop (repeat), rather than to program the block(s) several times.
Format: N680 LOOP nnnn
N685 .
.
.
N695 END
LOOP instructs the CNC to execute the blocks following block N680 until
END. The block is repeated nnnn times. Subprogram calls, axes moves,
M-Codes, etc. are all available within a "loop".
Each LOOP must have an END. Nesting loops (one loop inside of
another) is possible, to 10 levels deep.
The full body of the LOOP command (LOOP to END) must be contained
in the main program or the subprogram in which it was initiated.
Example:
In the following program example, M and S codes are omitted. The
program assumes that a manual tool change machine is used (no ATC).
Check your machine tool manual for details on programming M, S, and T
codes. Refer to Figure 5-18 and Table 5-39, Loop Programming
Example.
Tooling to be used:
Tool 1 = #4 centerdrill
Tool 2 = 1/4" diameter twist drill
Tool 3 = 3/8" diameter end mill
2.0" 8.0"
.75" (19.05mm) Typ.
(50.8mm) (203.2mm)
X0Y0 .50" (12.7mm)
.25" (6.35mm)
2.5" Dia. 7.5"
6 pos. (190.5mm)
(63.5mm)
3.0"
5.0" (76.2mm)
(127mm)
SUBPR_EX2
R=5.0"
(127mm)
90 deg.
Probing Cycles
This section describes operation and an overview of the tool and spindle
probe canned cycles available on the 6000i CNC products. The cycles
provided perform the most common tool and spindle probing functions.
Custom cycles to perform specific functions can be written using the G31
primitive and parametric programming. Refer to “Section 4, Probe Move
(G31)” for more details. If Probing has been added post-sale, beside
Machine Parameter changes, there may be Programmable Logic
Controller (PLC) program modifications required.
The tool probe cycles are only supported on machines with automatic
spindle forward/reverse and spindle speed, and homing with a permanent
X, Y, and Z machine position. The method described assumes the use of
negative tool-length offsets. In this method, the Tool-Length Offset (TLO)
in the length column for each tool represents the distance from the tool tip
at machine home to top of work piece and is a negative number. This
method does not require the use of any Z work coordinate offset to be
active. This procedure finds the effective tool diameter by turning the
spindle on in reverse and touching two sides of the probe stylus, then
storing the tool’s diameter in the tool’s diameter offset table.
The spindle probing cycles are designed to assist in part setup. Using
these cycles, one or more features (edges) of a part can be measured.
Using the data obtained with these measurements, calculations are made
that can be used to set a given fixture offset. It is also possible to find the
orientation angle of a part so as to not always have to align the part
exactly.
Tool and spindle probing does not allow rotation, scaling, and mirroring.
Plane is set to XY G17 when these cycles are complete.
The following topics are described:
Address
Word Description
D The diameter of the part of the calibration standard that
comes in contact with the probe stylus during calibration.
This should be an exact measurement. (Optional override
for the diameterOfToolProbeGauge machine setup
parameter)
E The distance to go down along the side of the probe stylus
with the probe calibration standard when touching the side
of the stylus for diameter calibration. The maximum E value
is 0.55” (13.97 mm). Without any E value, the cycle brings
the calibration standard down past the top of the probe
stylus (the default 0.1” [2.54 mm]). If you put a number
higher than 0.55” (13.97 mm), the control displays an error.
(Optional) [Default: 0.1”]
3. From the manual mode, type G150 D(n), and press the START button.
Where D is the exact diameter of the calibration standard. (For
example, G150 D.5)
4. The Z-axis initially goes down and touches the top of the probe stylus
at the feedrate specified in the ZFirstPickFeedRate_Medium
machine setup parameter. Then retouch at the slow feedrate,
specified in the ZFirstPickFeedRate_Slow machine setup parameter,
establishing the zero probe stylus top.
• This tool preset (G151) can be run from within a program or from the
manual mode. Refer to Table 5-41.
Table 5-41, G151 Address Words
Address
Word Description
T Tool number. (Required)
With only the T cycle parameter present, the canned cycle
does not step over half the tool’s diameter but comes
straight down measuring the tool length and storing it in the
tool register.
D This is the rough diameter of the tool. This should be within
0.04” (1.0 mm). (Optional)
If the D cycle parameter is present, the tool steps over half
of its diameter, the spindle turns on in reverse and then the
canned cycle measures the tool’s length.
A negative D value is for a left-handed tool and causes the
spindle to come on forward instead of reverse.
For on center length measurement, do not give a D cycle
parameter.
Q This option specifies to measure length, diameter, or both
and the appropriate tool registers are updated. (Optional)
[Default: Q1]
Q0 Measure the diameter only
Q1 Measure the length only
Q2 Measure both length and diameter
If Q is not set, the cycle measures the tool length only.
If Q0 or Q2 are programmed, you must also have a D cycle
parameter or the control displays an error message.
(Continued…)
4. If you have done a single tool in Manual, that tool is now measured
and you are ready to measure the next tool. If you have placed
multiple lines in a program, one for each tool, all your tools are
measured and ready for use.
Shell mill style tools that have a hole in the center of the bottom do not
work with this canned cycle; in this case, you must use the manual
canned cycles G152 Manual Tool Length Measure for Special Tools
for length and G153 Manual Tool Diameter Measure for Special Tools
for diameter. See Table 5-41, G151 Address Words. This cycle is only
good for drills, taps, reamers, ball nosed endmills, and standard endmills
with a flat bottom, the cycle updates length and diameter tool registers
clearing anything in the wear registers.
Address
Word Description
T Tool number. (Required)
With only the T parameter present, the spindle turns on in
reverse and the canned cycle comes straight down
measuring the tool length and storing it in the tool-length
register. The T parameter must the same as the current tool
in the spindle.
D This is the rough diameter of the tool and is only used in this
cycle to determine if the spindle should be turned on in
reverse or forward. If you have a left-handed tool you would
give a negative value to the diameter. If this parameter is
left off, the control always turns on in reverse by default.
(Optional)
M This is the override for the medium feedrate that was set in
the machine setup parameter
ZFirstPickFeedRate_Medium. Sometimes there may be a
tool that has a large diameter making it necessary to slow it
down to prevent the touch probe from being hit too hard.
This can only be set slower. Trying to set this higher will
result in the software using the original feedrate. (Optional)
S This is the override for the slow feedrate that was set in the
machine setup parameter ZFirstPickFeedRate_Slow. This
is used for the same reason as the M cycle parameter. This
can only be set slower. Trying to set this higher will result in
the software using the original feedrate. (Optional)
R This is the override for the RPM that was set in the machine
setup parameter calibAndToolMeasurementRPM. This is
used for the same reason as the M cycle parameter. This
can only be set slower. Trying to set this higher will result in
the software using the original RPM. If you would like the
cycle to run without the spindle turning, enter a negative
value in the “R” parameter. (Optional)
Address
Word Description
T Tool number. (Required)
The T cycle parameter must be the same as the current
tool in the spindle.
D This is the rough diameter of the tool. (Required)
The diameter specified in this cycle parameter should be
larger then the actual diameter of the tool being measured
but no more then 0.04” (1.0 mm) over. If you have a left-
handed tool, you would give a negative value to the
diameter so the spindle turns on in the forward direction.
E The distance to go down along the side of the probe stylus
when doing a diameter pick. The maximum E value is
0.55” (13.97 mm) or the tool may crash into the probe or
table. If you enter a value larger than 0.55” (13.97 mm),
the control issues an error message. If E is not set, the
cycle uses a default value of 0.1” (2.54 mm). (Optional)
[Default: 0.1”]
Ball nose cutters and special cutters that require a move
down more than 0.55” (13.97 mm) are not supported.
M This is the override for the medium feedrate that was set in
the machine setup parameter
ZFirstPickFeedRate_Medium. Sometimes there may be
a tool that has a large diameter making it necessary to slow
it down to prevent the touch probe from being hit too hard.
This can only be set slower. Trying to set this higher will
result in the software using the original feedrate. (Optional)
S This is the override for the slow feedrate that was set in the
machine setup parameter ZFirstPickFeedRate_Slow.
This is used for the same reason as the M cycle parameter.
This can only be set slower. Trying to set this higher will
result in the software using the original feedrate. (Optional)
R This is the override for the RPM that was set in the
machine setup parameter
calibAndToolMeasurementRPM. This is used for the
same reason as the M cycle parameter. This can only be
set slower. Trying to set this higher will result in the
software using the original RPM. (Optional)
“G153 Tn Dn En” and press the START button. Where T is the tool
number, D is roughly the diameter of the special tool (this should be
larger but not more then 0.100” (2.54 mm) larger), and E is the Z-axis
move down needed if different then the default 0.100” (2.54mm) so
that the largest part of the tool diameter comes in contact with the
edge of the probe stylus. (For example, G153 T3 D3.5 E.25 and press
the START button.)
3. The Z-axis feeds down with the spindle on, touching the top of the
probe stylus. Once the top of the probe is found, the Z-axis rapids
back up above the probe and moves over to one side of the probe
stylus. The tool then moves down the distance in E or 0.1” (2.54 mm)
if E is not programmed. Then, with the spindle turning in reverse, the
canned cycle touches the side of the tool to the probe stylus twice on
opposite sides establishing the tool’s diameter. The new diameter is
then stored in that tool’s diameter register and clears any value in the
diameter wear register. The Z-axis then rapids up to machine home.
4. The Tool Diameter has now been set and you can change to another
tool and repeat steps 1 through 3.
Address
Word Description
M This is the override for the medium feedrate that was set in the
machine setup parameter ZFirstPickFeedRate_Medium.
Sometimes there may be a tool that has a large diameter making it
necessary to slow it down to prevent the touch probe from being hit
too hard. This can only be set slower. Trying to set this higher will
result in the software using the original feedrate. (Optional)
S This is the override for the slow feedrate that was set in the
machine setup parameter ZFirstPickFeedRate_Slow. This is used
for the same reason as the M cycle parameter. This can only be
set slower. Trying to set this higher will result in the software using
the original feedrate. (Optional)
R This is the override for the RPM that was set in the machine setup
parameter calibAndToolMeasurementRPM. This is used for the
same reason as the M cycle parameter. This can only be set
slower. Trying to set this higher will result in the software using the
original RPM. (Optional)
WARNING: Large tools can result in probe damage if the touch feedrate
is set too fast. For this reason, the cycle parameters: M, S, and R have
been added to enable the programmer/operator to override the values in
the machine setup parameters for the specific tool being checked or set.
WARNING: Running this cycle without first initially setting the length and
diameter offset could result in damage to the probe and/or the machine
tool. G150 Calibration and G151 Automatic Tool Length and
Diameter set, or G152 Manual Tool Length Measure for Special Tools
and G153 Manual Tool Diameter Measure for Special Tools, must be
run first before using the G154 cycle.
The G154 cycle loads the tool, checks, and updates length and diameter
wear registers if specified, until a maximum value is exceeded, then it
alarms out stopping the program.
This cycle can be used in place of calling up a tool before running it.
You must know the distance from the top of the probe stylus down that
you have to move so that the largest part of the tool diameter is even with
the side of the probe stylus for diameter measurement. That value is
placed in E if different then the default 0.1” (2.54 mm).
To check the tool length and/or tool diameter for wear or breakage:
In place of the usual Tn M6 command, use:
G154 Tn Dn Kn Jn En Un” at a tool change according to the instructions
above and the control checks the tool prior to using it. To activate the
new offset wear values you must call that tool with “T(Tool#) M6” after this
cycle has been run.
Rotation, mirroring and scaling is not allowed while running these cycles.
Plane is set to XY G17 when these cycles are complete.
This section contains the following topics:
Spindle Probe G-Code Cycle Designations
Canned Cycle Parameter Settings
Description of Spindle Probe Cycles
Address
Word Description
Q Set Q to 1 if you are calibrating to a boss verses a ring
gauge. Otherwise, do not set or set to 0. Default is: 0.
(Optional)
H If set to 1, the cycle finds the top of the part before
calibrating the probe. If Q parameter is set to 1, H is forced
to 1 as well; otherwise, the Default is: 0.
(Optional)
E The distance to go down from the top of the ring gauge or
standing boss for calibration. This is only used if H
parameter is set to 1. Without any E value, the cycle brings
the probe down past the top of the ring gauge after finding
the top, 0.1”. Note: If the stylus ball is greater than .2” (5.08
mm), E must be set to at least half the ball diameter.
(Optional)
V The V parameter specifies the distance to back away from
the edge for the probe to fast feed to before trying to find it.
Default is: 0.1” (2.54 mm) if not set.
(Optional)
D The diameter of the ring gauge hole the probe stylus comes
in contact with. This is only to override the value in the
machine setup parameter diameterOfSpindleProbeGauge
if needed and should be an exact measurement.
(Optional)
A The distance from the starting point to move in the X-axis to
find the top of the gauge. The default, if Q is not set or set
to 0, is 0.1” (2.54 mm) beyond the edge of the ring gauge
hole. If Q is set to 1, the default is the current probe
position.
(Optional)
B The distance from the starting point to move in the Y axis to
find the top of the gauge. The default is the current probe
position.
(Optional)
You must have:
1. The probe in the spindle with its tool number active and the tool type
set to “Touch Probe”.
2. The Ring Gauge mounted on the machine table.
Address
Word Description
Q Axis and direction to find edge.
0 = X+, 1 = X-, 2 = Y+, 3 = Y-, 4 = Z+, 5 = Z-
(Required)
W Work Coordinate to update with edge location in X- or
Y-axes. If set, work coordinate is updated if 0 through 3 are
specified for Q or Z work offset (or TLO if
updateTloOrWorkOffsetZAxis is set to TLO) if Q is set to 4
or 5 and Z TLO if Q is set to 6.
NOTE: Before any tool-length offset is active, you must re-
call that tool. Work coordinate register or Tool-length
register is not updated if W is not set and a warning
message tells the operator no update has taken place
except when Q is set to 6 in which case the Spindle Probe
TLO will always be reset. (Optional)
To use the Edge Finding Cycle:
1. Place the probe in the spindle with its tool number active and the tool
type set to “Touch Probe”.
2. Manually jog the probe stylus less then 0.1” (2.54 mm) away from the
surface to be found.
3. Type G141 Qn Wn. If this is run from inside a program, this line
needs to be repeated for every surface you wish to find.
CAUTION: When positioning the probe from within the program you
should always use the G146 (Protected Probe Positioning) cycle
(see G146 instructions later in this document).
4. Execute that line in Manual by pressing START.
Address
Word Description
Q Quadrant of corner to find.
0 = +,+ (upper right) 1 = -,+ (upper left)
2 = -,- (lower left) 3 = +,- (lower right)
(Required)
H If set to 1, the cycle finds the top of the part before finding
the X & Y corner coordinate. Default is: 0. If H is not set or
is set to 0, the Z-axis must be at the picking depth. If H = 1,
then the Z-axis must be within 0.1” (2.54 mm) above the
part. The probe stylus must be positioned within 0.1” (2.54
mm) from the outside of the corner in X & Y.
(Optional)
E The distance to go down from the top of part to find X & Y
coordinate of the corner. This is only used if H parameter is
set to 1. Without any E value, the cycle brings the probe
stylus center down past the top of the part after finding the
top, 0.1” (2.54 mm). (Optional)
D The distance over from the corner to find X & Y edge. This
allows for a part corner that has a large chamfer or radius
where you cannot pick the edge close to the theoretical
corner or has an obstruction interfering with the default
move. Default is: 0.4” (10.16 mm).
(Optional)
V Specifies the distance away from the edge for the probe to
fast feed to before trying to find it. Default is: 0.1”
(2.54 mm) if not set. (Optional)
A The distance from the starting point to move in the X-axis to
find the top of the part. The default is toward the corner
being found 0.4” (10.16 mm). (Optional)
(Continued…)
Address
Word Description
B The distance from the starting point to move in the Y-axis to
find the top of the part. The default is toward the corner
being found 0.4” (10.16 mm). (Optional)
I This causes the cycle to make a protected X move to the
coordinate entered relative to the current active work
coordinate before finding the corner.
(Optional)
J Same as I only for the Y-axis. (Optional)
CAUTION: When positioning the probe from within the program, you
should always use the G146 (Protected Probe Positioning) cycle
(see G146 instructions later in this document) or use the I, J, or K
cycle parameters for the same purpose.
Address
Word Description
Q Quadrant of corner to find.
0 = +,+ (upper right) 1 = -,+ (upper left)
2 = -,- (lower left) 3 = +,- (lower right)
(Required)
H If set to 1, the cycle finds the top of the part before finding
the X & Y corner coordinate. Default is: 0. If H is not set or
is set to 0, the Z-axis must be at the picking depth. If H = 1,
then the Z-axis must be within 0.1” (2.54 mm) above the
part. The probe stylus must be positioned within 0.1” (2.54
mm) from the inside of the corner in X & Y.
(Optional)
E The distance to go down from the top of part to find X & Y
coordinate of the corner. This is only used if H parameter is
set to 1. Without any E value, the cycle brings the probe
stylus center down past the top of the part after finding the
top, 0.1” (2.54 mm). (Optional)
D The distance over from the corner to find X & Y edge. This
allows for a part corner that has a large chamfer or radius
where you cannot pick the edge close to the theoretical
corner or has an obstruction interfering with the default
move. Default is: 0.4” or 10.16 mm.
(Optional)
V Specifies the distance away from the edge for the probe to
fast feed to before trying to find it. Default is: 0.1”
(2.54 mm) if not set. (Optional)
A The distance from the starting point to move in the X-axis to
find the top of the part. The default is toward the corner
being found 0.4” or 10.16 mm.
(Optional)
(Continued…)
Address
Word Description
B The distance from the starting point to move in the Y-axis to
find the top of the part. The default is toward the corner
being found 0.4” or 10.16 mm.
(Optional)
I This causes the cycle to make a protected X move to the
coordinate entered relative to the current active work
coordinate before finding the corner.
(Optional)
J Same as I only for the Y-axis. (Optional)
3. Type G143 Qn Wn. If this is run from inside a program, this line
needs to be repeated for every corner you wish to find or whose
position you want to reestablish.
CAUTION: When positioning the probe from within the program you
should always use the G146 (Protected Probe Positioning) cycle
(see G146 instructions later in this document) or use the I, J, or K
cycle parameters for the same purpose.
Address
Word Description
Q Inside or Outside.
0 = Inside Hole 1 = Outside Boss
(Required)
X Estimated length of boss/hole if rectangular or the Diameter
if round.
(Required)
Y Estimated width of boss/hole. Y is only specified if boss or
hole is rectangular in shape.
(Optional)
H If set to 1, the cycle finds the top of the part before finding
center of hole or boss. If Q parameter is set to 1, H is
forced to 1 as well; otherwise, the Default is: 0.
(Optional)
E The distance to go down from the top of part to find X & Y
coordinate of the center. This is only used if H parameter is
set to 1. Without any E value, the cycle brings the probe
stylus center down past the top of the part after finding the
top, 0.1” (2.54 mm).
(Optional)
V Specifies the distance away from the edge for the probe to
fast feed to before trying to find it. Default is: 0.1”
(2.54 mm) if not set.
(Optional)
A The distance from the starting point to move in the X-axis to
find the top of the part. The default, if Q is not set or set to
0, is 0.1” beyond the edge of the boss/hole. If Q is set to 1,
the default is the current probe position.
(Optional)
(Continued…)
Address
Word Description
B The distance from the starting point to move in the Y-axis to
find the top of the part. The default is the current probe
position.
(Optional)
I This causes the cycle to make a protected X move to the
coordinate entered relative to the current active work
coordinate before finding the boss/hole center.
(Optional)
J Same as I only for the Y-axis.
(Optional)
K Same as I only for the Z-axis.
(Optional)
W Work Coordinate to update with the center location in X and
Y axes. If set, work coordinate is updated. Work coordinate
register is not updated if not set and a warning message
tells the operator no update has taken place if W is not set.
(Optional)
R If set to 1, the cycle does a preliminary measure in the
X-axis to get on center before measuring the Y-axis, making
a total of 6 touches. If set to 0, the cycle only measures “X”
once for a total of 4 touches. Default is: 0.
(Optional)
CAUTION: When positioning the probe from within the program, you
should always use the G146 (Protected Probe Positioning) cycle
(see G146 instructions later in this document) or use the I, J, or K
cycle parameters for the same purpose.
Address
Word Description
Q Inside or Outside.
0 = Inside Hole 1 = Outside Boss
(Required)
X Estimated X width of Web if measuring in the X-axis. X or Y
must be specified; but only one, not both.
Y Estimated Y width of Web if measuring in the Y-axis. X or Y
must be specified; but only one, not both.
H If set to 1, the cycle finds the top of the part before finding
center of Web. If Q parameter is set to 1, H is forced to 1 as
well; otherwise, the Default is: 0.
(Optional)
E The distance to go down from the top of part to find X or Y
coordinate of the center. This is only used if H parameter is
set to 1. Without any E value, the cycle brings the probe
stylus center down past the top of the part after finding the
top, 0.1” (2.54 mm). (Optional)
V Specifies the distance away from the edge for the probe to
fast feed to before trying to find it. Default is: 0.1” (2.54
mm) if not set. (Optional)
A The distance from the starting point to move in the X-axis to
find the top of the part. The default, if Q is not set or set to
0, is 0.1” beyond the edge of the web. If Q is set to 1, the
default is the current probe position.
(Optional)
(Continued…)
Address
Word Description
B The distance from the starting point to move in the Y-axis to
find the top of the part. The default is the current probe
position. (Optional)
I This causes the cycle to make a protected X move to the
coordinate entered relative to the current active work
coordinate before finding the web center.
(Optional)
J Same as I only for the Y-axis. (Optional)
CAUTION: When positioning the probe from within the program you
should always use the G146 (Protected Probe Positioning) cycle
(see G146 instructions later in this document) or use the I, J, or K
cycle parameters for the same purpose.
• The G146 Protected Probe Positioning Cycle can be run from within a
program or from the manual mode. Refer to Table 5-51.
Address
Word Description
X X Target position relative to current active work coordinate.
• G68, axis rotation, cannot be used with G147, skew error find.
• Skew error is only supported for along the side edge of a part relative
to the X,Y plane.
• Calibrate the work probe at least once before trying to use this cycle.
• A preliminary tool-length offset must be set by eye for the work probe
and that tool offset active before using this cycle in a program. See
“Section 9, Tool-Length Offsets” for setting and activating tool-length
offsets.
• A preliminary work offset must be set by eye and that work coordinate
active before using this cycle in a program. See “Section 9, Tool-
Length Offsets” for setting and activating work coordinate offsets.
• The probe must be pre-positioned to the proper spot in relation to the
part in accordance with the specified S parameter as described below
or an I, J, and/or K should be included for pre-positioning.
• The G147 Skew Error Finding Cycle can be run from within a program
or from the manual mode. Refer to Table 5-52.
Address
Word Description
Q Q0 Finds the skew angle, but does not activate skew compensation.
Q1 Finds the skew angle, and activates skew compensation.
Q2 Activates skew compensation with the current skew value, but does not
rerun the cycle on the part.
NOTE: If Q2 is used, all other G147 parameters are ignored.
NOTE: Before using G147 Q2, you must have called G147 at least once with
Q0 or Q1, or the error message “Skew error has not been found!” is
displayed.
Skew compensation is activated around the current active work coordinate
and only works from within the program being run.
Skew compensation cannot be activated directly or indirectly using G147 from
the MDI mode.
The operator can run the G147 from MDI but must place G147 Q2 inside the
program for skew compensation to take effect.
A G53 work coordinate call deactivates skew compensation, necessitating a
re-issuance of G147 Q2 to activate skew compensation.
Using Q1 or Q2 defaults the control to G90 (Absolute). If you are in G91
(Incremental), you need to switch back after the cycle has been run.
(Optional)
(Continued…)
Address
Word Description
S Estimated amount of angle from 3 O’clock. Default is 0 which causes the
cycle to find the angle of the back edge of the part starting its first pick in the
upper-left corner and making the second pick to the left of that, as you are
facing the surface being picked. Examples:
S=90 would start in the lower-left side, picking in the X positive direction,
finding the skew of the left side of the part.
S=-90 would start in the upper-right side, picking in the X negative direction,
finding the skew of the right side of the part.
S=180 would start in the lower-right front edge of the part, picking in the Y
positive direction, finding the skew of the front edge of the part.
Default is: 0.
(Optional)
D The distance from the first pick to the second pick. Default is: 2.0”
(50.8 mm) (Optional)
H If set to 1, the cycle finds the top of the part before finding part skew angle.
Default is: 0. If H” is set to 1, the probe stylus should be pre-positioned within
0.1” (2.54 mm) above the part. If H is set to 0, the probe stylus should be
positioned at the Z-axis depth from which you want to make side picks.
(Optional)
E The distance to go down from the top of part to find part skew angle. This is
only used if H parameter is set to 1. Without any E value, the cycle brings the
probe stylus center down past the top of the part after finding the top, 0.1”
(2.54 mm).
(Optional)
V Specifies the distance away from the edge for the probe to fast feed to before
trying to find it. Default is: 0.1” (2.54 mm) if not set. This would be used to
make sure that the cycle is picking from far enough away from the edge so
that it does not trigger the probe prematurely when stepping over to make the
second pick.
Hint: If the S cycle parameter is relatively accurate, this parameter is not
needed because the default is good enough.
(Optional)
A The distance from the starting point to move in the “X” axis to find the top of
the part. The Default is: 1.0” (25.4 mm) toward the part at the angle specified
in the S cycle parameter.
(Optional)
B The distance from the starting point to move in the “Y” axis to find the top of
the part. The Default is: 1.0” (25.4 mm) toward the part at the angle specified
in the S cycle parameter.
(Optional)
I This causes the cycle to make a protected X move to the coordinate entered
relative to the current active work coordinate before finding the skew angle.
(Optional)
(Continued…)
Address
Word Description
J Same as I only for the Y-axis.
(Optional)
K Same as I only for the Z-axis.
(Optional)
CAUTION: When positioning the probe from within the program you
should always use the G146 (Protected Probe Positioning) cycle
(see G146 instructions above in this document) or use the I, J, or K
parameters for the same purpose.
4. Execute that line in Manual by pressing START.
2. Next, use Q4 or Q5 on the top of the work piece or to where you want
the Z zero to be located, to set the Z-axis work offset shift to that Z
position.
Warning: Both, the tool length offset and the G53 work offset must be
active before the Z part zero point will be correct. If either one of these is
not active at the same time, a collision could occur.
Program
Name
Program
Listing
Physical
line
numbers
Soft Key
EDIT
Labels
Figure 6-1, Edit Screen
You can write and edit programs from the Edit screen. The Edit screen
provides the following areas:
Program Name The name of the program listed on the screen.
Program Listing Area of the screen where the program is listed.
Soft Key Labels These labels define soft key functions. Some soft
keys, when pressed, activate screens that contain
additional features.
2. Press the SHIFT key on the keyboard to display the Manual Shift
screen (refer to Figure 6-2). Refer to Table 6-1, Edit Soft Keys.
SHIFT EDIT
Label Description
Start of Block The cursor returns to the beginning of the block.
See “Advancing to the Beginning or End of a Block.”
End of Block The cursor advances to the end of the block. See
“Advancing to the Beginning or End of a Block.”
Goto Block Use to move to any line in the Program Listing. See
“Going to a Block of the Program Listing.”
Start of Prog The cursor returns to the first block of the program.
See “Advancing to the First or Last Block of a
Program.”
End of Prog The cursor advances to the last block of the
program. See “Advancing to the First or Last Block
of a Program.”
Label Function
Insert Block Insert a program block at the cursor. See “Inserting
a Program Block.”
Find / Replace Use to search blocks for specific text; searches
forward and reverse in the program. See
“Searching the Program Listing for Specific Text”
and “Find/Replace Description from Edit Funct (F8)
Screen.”
Mark Blk ON Use to mark and unmark program blocks. See
Mark Blk OFF “Marking Programming Blocks” and “Unmarking
Program Blocks.”
Copy Copy program blocks using the BLOCK operations
Copy feature. See “To Mark and Copy Blocks:”
Paste Paste copied or cut blocks into another section of
the program using the BLOCK operations Paste
feature. See “Pasting Blocks within a Program.”
Cut Delete program blocks using the BLOCK operations
Cut feature. See “Deleting a Program Block” and
“To Mark and Cut Blocks:”
Saving Edits
The Program Listing displays edits as soon as they are made, but the edits
are not saved until you exit the Program Editor.
To save edits:
1. In Edit Mode, press Exit (F10). The CNC returns to the Program
Manager or Draw Graphics screen and saves all edits.
To delete a program block using the Delete Block (F4) soft key:
1. In Edit Mode, place the cursor on the program block to be deleted.
2. Press Delete Block (F4). The CNC deletes the block.
To delete program blocks using the Edit Funct (F8) pop-up menu Cut
feature:
1. In Edit Mode, mark the blocks to be deleted.
2. Press Edit Funct (F8) to display the pop-up menu. Refer to
Figure 6-4, Edit Funct (F8) Pop-up Menu.
3. Select Mark Blk ON and the cursor highlights. Then use the ARROW
keys to move up or down to the number of the lines you want to mark
for delete.
4. Select Delete (F2) and the CNC deletes the marked blocks.
Undeleting a Block
You can restore deleted blocks with the Edit Undo (SHIFT + F3) soft key.
Refer to Figure 6-2, Program Editor SHIFT Screen. The last block
deleted is the first block restored.
To restore a block:
1. In Edit Mode, place the cursor at the point where the restored block is
displayed.
2. Press the Undo (SHIFT + F3) soft key and the last line deleted from
the program displays at the cursor.
FIND_REPLACE
If a required entry field is left blank, the CNC writes the block using the
0.0000 default. This may generate an error message when the program
runs.
Optional entry fields do not require a value. When left blank, a default
value or position is usually assumed.
You must remember to type: decimal points and negative signs where
needed. The CNC assumes a positive value if no negative sign is typed.
G-Functions
The G-Code functions have the following functional groups:
• All – All G-Codes are listed (including user defined G-Codes)
• Basic Modal Functions
• Arcs
• Drilling Cycles
• Pocket Cycles
• Milling and Profiles
• Rotation, Scaling, and Mirroring
• Spindle Probing
• Tool Probing
• Tool Radius Compensation
• Other G-Functions
Arcs
The Arcs enables:
G2 Arc CW
Refer to “Section 4, Circular Interpolation (G2 and G3)”
G3 Arc CCW
Refer to “Section 4, Circular Interpolation (G2 and G3)”
Refer to “Programming Concepts” in “Section 1 - Introduction” for
information on planes and arc directions. The CNC executes arcs in the
XY (G17) plane by default. For an arc in the XZ (G18) or YZ (G19) plane,
program the plane change before the arc move. After you make all the
required moves in the XZ or YZ plane, return the CNC to the XY plane.
Refer to Figure 7-2. There are two arcs that can intersect any two points:
an arc with an included angle less than 180 degrees and an arc with an
included angle greater than 180 degrees.
Refer to Figure 7-3 and Figure 7-4. Specify the appropriate Absolute or
Incremental Mode for the angle and center point. The direction (Cw/Ccw)
of the Arc and the sign (+/-) of the angle control the path of the tool.
If the Z-axis starting and end positions differ, the arc will be a helix.
o o
90 Absolute 60 Position
Cw Tool Path
Ccw Tool Path
o
0 Absolute Angle
Center Point Reference
(Absolute Position)
Starting Point
(Present Position)
Pocket Cycles
The Pocket Cycles enables:
G73 Draft Angle Pocket Cycle
Refer to “Section 5, Draft Angle Pocket Cycle (G73)”
G75 Frame Pocket Cycle
Refer to “Section 5, Frame Pocket Cycle (G75)”
G76 Hole Mill Cycle
Refer to “Section 5, Hole Mill Cycle (G76)”
G77 Circular Pocket Cycle
Refer to “Section 5, Circular Pocket Cycle (G77)”
G78 Rectangular Pocket Cycle
Refer to “Section 5, Rectangular Pocket Cycle (G78)”
G162 Islands
Refer to “Section 5, Islands (G162)”
G169 Irregular Pocket Cycle
Refer to “Section 5, Irregular Pocket Cycle (G169)”
G177 Plunge Circular Pocket Cycle
Refer to “Section 5, Plunge Circular Pocket Cycle (G177)”
G178 Plunge Rectangular Pocket Cycle
Refer to “Section 5, Plunge Rectangular Pocket (G178)”
G210 Slot Cycle
Refer to “Section 5, Slot Cycle (G210)”
G211 Circular Slot Cycle
Refer to “Section 5, Circular Slot Cycle (G211)”
Rotation, Scaling, and Mirroring
The Rotation, Scaling, and Mirroring enables:
G68 Rotation (Axis)
Refer to “Section 4, Axis Rotation (G68)”
G72 Scaling
Refer to “Section 4, Scaling (G72)”
G100 Mirroring
Refer to “Section 4, Mirroring (G100)”
Other G-Functions
The Other G-Functions enables:
G04 Dwell
Refer to “Section 4, Dwell (G4)”
G09 Exact Stop
Refer to “Section 4, Programming Non-modal Exact Stop (G9)”
G22 Stroke Limit
Refer to “Section 4, Setting Stroke Limit (G22)”
G28 Reference Point Return
Refer to “Section 4, Reference Point Return (G28)”
G29 Return from Reference Point
Refer to “Section 4, Return from Reference Point (G29)”
G53 Fixture Offset
Refer to “Section 4, Fixture Offset (Work Coordinate System
Select), (G53)”
G61 Exact Stop Mode
Refer to “Section 4, In-Position Mode (Exact Stop Check)
(G61)”
G64 Contouring Mode
Refer to “Section 4, Contouring Mode (Cutting Mode) (G64)”
G65 Macro Call, Single
Refer to “Section 4, User Macros (G65, G66, G67)”
G66 Macro Call, Modal
Refer to “Section 4, User Macros (G65, G66, G67)”
G67 Cancel Modal Macro
Refer to “Section 4, User Macros (G65, G66, G67)”
G92 Zero Set
Refer to “Section 4, Absolute Zero Point Programming (G92)”
G120 BlockForm
Refer to “Section 4, BlockForm (G120)”
M-Functions
The M-Code functions have the following functional groups:
• All – All M-Codes are listed (including user defined M-Codes)
• Basic M-Functions
• Cooling, Cleaning, and Lubrication
• Spindle Functions
• Tool Change
Tools
The Tools enables the following:
TOOL Tool Mount
G-Code Listing
When a G-Code is selected from the list, an input screen activates. It
contains instructions and entry fields that pertain to the selected G-Code.
Use the screens to input G-Codes. Refer to Table 7-4.
Table 7-4, Most Common Modal G-Codes
G-Code Function
Rapid Move G0 Axis moves made at rapidrate
Feed Move G1 Axis moves made at feedrate
Arc CW G2 Sets clockwise circular interpolation
Arc CCW G3 Sets counterclockwise circular interpolation
XY Plane G17 Sets default XY plane
XZ Plane G18 Sets default XZ plane
YZ Plane G19 Sets default YZ plane
Inch G70 Sets CNC to Inch measurements
MM G71 Sets CNC to MM measurements
Absolute G90 Sets CNC to Absolute Mode
Incremental G91 Sets CNC to Incremental Mode
M-Code Listing
You can program M-Codes by selecting them from the list. If the M-Code
requires a parameter, the software displays the Help Graphic for the
entered M-Code. Only M30 and M98 require parameters. Fill in the entry
fields for these M-Codes. Press Use (F10) to insert the selected code in
the block or Cancel (F9) to cancel.
For other M-Codes, select the code and press Use (F10) to insert the
code in the block. Press Cancel (F9) to cancel.
Table 7-6 describes the M-Codes in the menu.
Typing in M-Codes
You can manually type in M-Codes listed in the table. Refer to
Table 7-5, Edit Help M-Code Listing. Most of these M-Codes
(except M30 and M98) do not require additional parameter settings.
From Milling and Profiles, select Mill Cycle (G175) to display the Help
screen (refer to Figure 7-8):
From Milling and Profiles, select EndMill Cycle (G176) to display the Help
screen (refer to Figure 7-9):
ENDMILL CYCLE
From Milling and Profiles, select Thread Mill Cycle (G181) to display the
Help screen (refer to Figure 7-10):
From Milling and Profiles, select Engrave Cycle (G190) to display the
Help screen (refer to Figure 7-11):
ENGRAVE CYCLE
From Drilling Cycles, select Basic Drill Cycle (G81) to display the Help
screen (refer to Figure 7-12):
From Drilling Cycles, select CounterBore Drill Cycle (G82) to display the
Help screen (refer to Figure 7-13):
From Drilling Cycles, select Drill Pattern Cycle (G179) to display the Help
screen (refer to Figure 7-14):
From Pocket Cycles, select Plunge Circ Pocket Cycle (G177) to display
the Help screen (refer to Figure 7-15):
From Pocket Cycles, select Plunge Rect Pocket (G178) to display the
Help screen (refer to Figure 7-16):
From Pocket Cycles, select Slot (G210) to display the Help screen (refer
to Figure 7-17):
SLOT CYCLE
From Pocket Cycles, select Circular Slot (G211) to display the Help
screen (refer to Figure 7-18):
When you select Draw (F7) from the Program Manager, Draw Simulation
Mode is activated. The CNC draws the part without machine movement.
When you start DRAW from Auto or S.Step Modes, Real-Time Draw
Mode is activated. The CNC draws the part while it is machining it.
Starting Draw
Draw Simulation Mode is started from the Program Manager. You can
make some changes from the soft keys while a simulation is running. In
Draw Simulation Mode, the CNC does not hold the operation of the
program for Dwells and tool mounts and other machine related features.
DRAW1D
Dashboard
Program
PROG-DASHBOARD1D
DRAW5D
DRAW6D
Opts (F9)
Press Opts (F9) on the Draw screen to open the Options screen. Refer
to Figure 8-5. Refer to Table 8-4 for a description of the Options screen
soft keys.
DRAW9D
LINE NUMBER
PROG CONTOUR
Zoom (F2)
Press Adjust View (F6) on the Draw screen then press Zoom (F2) on the
Adjust View Screen to open the Zoom screen. Refer to Figure 8-9.
Refer to Table 8-6 for a description of the Zoom screen soft keys.
ZOOM1D
Rotate (F3)
Press Adjust View (F6) on the Draw screen then press Rotate (F3) on
the Adjust View Screen to open the Rotate screen. Refer to
Figure 8-10. Refer to Table 8-7 for a description of the Rotate screen
soft keys.
ROTATE1D
Pan (F4)
To display the Pan (F4) soft key from the Adjust View (F6) screen:
1. From the View Type (F5) screen, select F4, F5, or F6.
2. Select Return (F10) to display the Draw screen.
3. Select Adjust View (F5) to display the Adjust View screen.
4. Select Pan (F4), to display the Pan screen.
Refer to Figure 8-11 (for this figure, F4 is selected). Refer to Table 8-8
for a description of the Pan screen soft keys.
PAN1D
Exiting Draw
To exit Draw and return to the Program Manager, press Exit (F10).
Position
Display
Tool Number
Column
Column
Description
Column
Value Limits
or Range
Soft Key
Labels
TOOLPAGE
Other functions related to the Tool Page may be accessed using the
SHIFT key. These functions are described in this section. Press the SHIFT
key to redisplay the Tool Shift screen. Refer to Figure 9-2, Shift Screen
from Tool Page.
NOTE: The Tool Page is the only place where the CNC converts values
from Inch Mode to MM Mode, and vice-versa. Programmed
positions are not converted when you change the unit mode.
Press Page Up (F5) or Page Down (F6) to scroll through the tool table
one page at a time.
When you activate Tool #0, you cancel the active tool diameter and
length offset of the CNC. The Tool #0, Z0 position is usually set as the
fully retracted position of the Z-axis.
All of the CNC’s Jog features can be run from the Tool Page. The
handwheels (if installed) can also be used if activated prior to entering the
Tool Page.
The Figure 9-1, The Tool Page labels:
Position Display Displays information regarding current machine
position and active Units Mode (Inch/MM).
Tool Number The tool numbers are listed in the first column
Column (CNC provides).
Column Displays a brief description of the column on which
Description the cursor is located.
Column Value Displays the column value type or limits range.
Limits or Range
Soft Key Labels Identify the functions of the active soft keys.
To clear a row:
1. In the Tool Page, highlight the row to be cleared.
2. Press Clear Line (F7). All values in the row return to zero.
Clearing a Single Value
Press SHIFT while in the Tool Page to activate the secondary soft key
functions (refer to Figure 9-2, Shift Screen from Tool Page). Refer to
Table 9-2.
TOOLFIND
Find in Table
On the SHIFT Tool Screen (refer to Figure 9-2, Shift Screen from Tool
Page), press Find in Table (SHIFT + F8) to display the “Find in Table:”
line below the Column Description. Type in the “Find in Table:” line the
table content that you want to locate. Press ENTER on the right of the
“Find in Table:” line to start your search. Refer to Figure 9-4.
FIND IN TABLE
• Tool length of -1
Tool-Length Offsets
Tool-length offset (TLO) is the distance from Z0 Machine Home to the tip
of the tool at the part Z0 (usually the surface of the work). Refer to
Figure 9-5.
Tool-length offsets allow each tool used in the part program to be
referenced to the part surface. In an idle state, the CNC does not have a
tool-length offset active. Therefore, Tool #0 (T0) is active. When T0 is
active, all Z dimensions are in reference to the Z Home position. When
you program T1, all Z dimensions become referenced to the surface on
which the tool-length offset of Tool #1 was activated.
For machines that do not have a Z-axis automatic homing feature, you
must set the Z0 position of the Z-axis. Usually, it is the fully retracted
(Up) position of the quill or machine head. Tool-Length Offsets are
referenced to this position.
Because tools differ in length, Z0 axis (Part Zero) is not set the same way
as X0 or Y0. The tool-length offset is the distance from the tip of the tool
to the top of the part. Enter a length offset for each tool in the Tool Page.
Z-axis
Machine Home
T0, Z0
Part Zero
TOOLENOFFSET
With tool-length offsets active, the Z-axis position display reads 0.00
when the active tool moves to Part Zero. Tool-length offsets simplify
programming.
After you choose the type of tools and the order of their use in the
program, and you know the diameter and length offsets of tools, type the
data into the Tool Page.
1. In Manual Mode, press TOOL (F9) to open the Tool Page.
2. In the Tool Page, you must highlight a line before you can edit it.
Typically, you type diameter offsets in the Tool Page directly, after
measuring the tool with a micrometer.
To measure length offset:
1. In Manual Mode, put the tool in the spindle and carefully jog the tool
down until it touches surface (top of the work).
2. In the Tool Page, highlight that tool's tool number, and press Teach
(F9). This takes the dimension from Z Machine Home position, and
input it into the Length Offset column for that tool.
3. Exit the Tool Page, raise the Z-axis and continue.
– or –
Jog the tool(s) as described above, write down each offset(s) and type
it into the Tool Page.
In case of errors, to identify and correct:
NOTE: Be familiar with basic CNC principles before you attempt to write
compensated moves.
When tool compensation is not active, the CNC positions the tool’s center
on the programmed path. This creates a problem when programming a
part profile because the cutting edge is half a diameter away from the
path. Use tool diameter compensation to overcome this problem.
When tool compensation is active, the CNC offsets the tool by half a
diameter to position the cutting edge of the tool on the programmed path.
This enables you to program the coordinates along the part profile. You
do not need to adjust the path to compensate for tool diameter.
Most moves can be compensated. Specify right-hand or left-hand
compensation. "Right" or "left" refers to the side of the path to which the
tool offsets, as viewed from behind a moving tool. If the tool is to the left
of the work, use G41. If the tool is to the right of the work, use G42.
With right-hand tool diameter compensation (G42) active, the tool offsets
to the right of the programmed path (as viewed from behind a moving
tool). Refer to Figure 9-7.
Move 2
Move 1 COMP2
The moves to and from compensated moves are called ramp moves.
Ramp moves give the CNC time to position the tool. The ramp move
must be at least half the active tool’s diameter in length. Refer to
Figure 9-9, Ramping into a Compensated Move.
Workpiece
At the start of a ramp move, the tool centers on the programmed path. At
the end of the ramp move (starting point of the compensated move), the
tool centers perpendicular to the starting point, offset by half the tool’s
diameter.
When a compensated move starts and stops in a corner, the tool gouges
the work because the tool offsets to a position perpendicular to the
endpoint. Begin ramp moves at the side to avoid gouging the work.
Refer to Figure 9-10, Ramp On/Off Choices for Milling Inside a
Square.
NOTE: Use canned cycles to cut profiles and pockets, when possible.
The CNC automatically selects Ramp On/Off positions in a
canned cycle.
Ramp Off
Start
Position #2 Position #3
Position #1
Position #2 Position #5
Ramp On And Ramp Off
Start
Position #3 Position #4
Using Tool Diameter Compensation and Length Offsets with Ball-End Mills
When you use a ball-end mill to cut contoured surfaces, use tool diameter
compensation and tool-length offset together, if at all. Unlike a flat-bottom
tool, the tool-length offset for a ball-end mill is not necessarily set to the
tip of the tool.
In most cases, set the tool-length offset for a ball-end mill half the tool’s
diameter back from the tip. Refer to Figure 9-11.
NOTE: You must make an X and/or Y move with or after G40, before
changing the active tool number.
Example:
N4 G17 G0 G41 Xn Yn
N5 etc...
.
.
N20 G0 G40 Xn Yn
N21 etc...
Program G40 on a line with G0 or G1 (unless G0 or G1 is already active).
G40 programmed with or immediately following G2 or G3 generates an
alarm message.
The CNC “looks ahead” far enough to determine the next planar
intersection. Z-axis moves, even many consecutive Z moves, are
permitted at any time after a compensation block.
To change the tool radius in order to leave stock for a finish pass,
program the "stock-variable". The variable assigned for this function is
#1030.
Example: N120 #1030 = .015
When the CNC reads the above block, 0.015 is added to the active tool
radius. The value in the Tool Page for that tool # is not updated, and tool
compensation is affected only until the tool is cancelled. #1030 is
temporary.
When the tool is cancelled (T0), #1030 is also cancelled.
Example: N120 #1030 = -.015
In this case, 0.015 is subtracted from the active tool's radius.
You must program the variable after the tool is activated.
#1030 is ignored for pocket canned cycles.
The variable must be programmed before programming G41 (Cutter
Compensation LEFT) or G42 (Cutter Compensation RIGHT) and cannot
be changed while G41 or G42 is active.
Tool Diameter
TOOL PATH
G41
PGM. PATH
G41PATH
Tool Diameter
G41
TOOL PATH
PGM. PATH
G41LTOC
In either case, the axes moves to a point perpendicular to the next move
during the startup block.
The length of the XY move that activates compensation must be equal to
or greater than the tool radius value. Example: If tool radius equals
0.3750", the vector length of the XY move that activates compensation
must be 0.3750" or greater.
The same applies to the G40 (Compensation OFF) move.
You cannot program a plane change (G17, G18, or G19) during tool
compensation. However, a 2-axis move off the currently active plane is
allowed.
For example: G17 is the active plane (compensation in XY). You
program an XZ or YZ move. The Z-axis reaches the programmed target
as X/Y reaches its compensated target. Helical moves in the active plane
are also allowed.
= INTERSECTING POINT
G41 G41
Tool Diameter
TOOL PATH
TOOL PATH
PGM. PATH
PGM. PATH
PATHS
Tool Diameter
G40
The tool moves to a point perpendicular to the last move before the G40
(deactivation) move.
The bottom part of Figure 9-16 shows how the CNC will automatically
"round" the compensated intersection. The work remains a sharp corner.
Actual Compensated
Intersection
Intersection
Automatically
Rounded
ACUTE
General Precautions
1. When you program tool path instead of part edge, a negative diameter
in the Tool Page effectively changes G41 to G42 in the moves during
compensation.
2. Third axis moves (not in the active plane) are permitted during
compensation.
3. The CNC automatically rounds off the compensated intersection of
acute angles of 15 degrees or less. To change this value, program
#1031.
4. It is possible to change the tool diameter currently in use with "stock"
variable #1030.
5. Startup (Ramp On) and cancellation (Ramp Off) blocks must be of G0
or G1 type, and must be at least the tool radius in length.
6. You must enter proper diameter value in the Tool Page before you
use tool compensation.
7. Compensated arcs must be on the active plane (G17 = XY, G18 = XZ,
G19 = YZ).
8. G53 (Fixture Offset) and G92 (Zero Set) are not permitted during
compensation.
9. In Manual Mode, any active compensation deactivates.
10. Jog/Return is permitted during compensation.
11. System variable #1032 is available to change the number of blocks
the CNC can "look-ahead" while in tool-comp.
Tool compensation can be activated with G41 or G42. Therefore you can
program the part-edge directly, rather than having to calculate the offset
manually. Refer to Figure 9-17 and Table 9-3. On a 3/8" diameter end
mill, the diameter value in the Tool Page for Tool #1 is .3750".
8"
(203.2mm)
2.5" 7.5"
(63.5mm) (190.5mm)
3"
5" (76.2mm) .5" R
(127mm) (12.7mm)
90 deg.
G41
Standard Metric
N1 O1010 * COMP-EX-1 N1 O1010 * COMP-EX-1
N2 G90 G70 G0 T0 Z0 N2 G90 G71 G0 T0 Z0
N3 X-3.0 Y1.0 N3 X-76 Y25
N4 T1 * .375 MILL N4 T1 * 9.52 MILL
N5 G41 X-.5 Y0 N5 G41 X-12 Y0
N6 Z.1 N6 Z2
N7 G1 Z-.125 F5.0 N7 G1 Z-3.175 F125
N8 X8.0 F12.0 N8 X203.2 F300
N9 X7.5 Y-2.5 N9 X190.5 Y-63.5
N10 G3 X7.0 Y-3.0 I0 J-.5 N10 G3 X177.8 Y-76.2 I0 J-12.7
N11 G1 X5.0 N11 G1 X127
N12 X0 Y-2.5 N12 X0 Y-63.5
N13 Y.5 N13 Y12
N14 G0 Z.1 N14 G0 Z2
N15 G40 X-3.0 Y1.0 N15 G40 X-76 Y25
N16 T0 Z0 N15 T0 Z0
N17 M2 N17 M2
Refer to Table 9-4 for line by line details of Table 9-3, Motion Example
Using G41.
Table 9-4, Line by Line Description of Table 9-3, Motion Example Using G41
N-Code Function
N1 Establishes program # and name.
N2 Sets Absolute, Inch, Rapid; cancels tool offset, raises Z-axis.
N3 Moves to tool change position.
N4 Activates tool-length comp., also contains comment (*).
N5 Activates tool diameter compensation and positions tool.
N6 Positions Z above part.
N7 Feeds Z to depth, at feedrate of 5.
N8 Feeds first element of contour at new feedrate.
N9 N9 to N13 feeds around contour.
N14 Rapids Z above part.
N15 Disables diameter compensation during rapid move to X-3.0
Y1.0.
N16 Cancels tool, moves Z to home position.
N17 Ends program, resets CNC to N1.
Refer to Figure 9-18 and Table 9-5, Milled Pocket Using G42 for an
example of a milled pocket created using G42.
5.5"
(139.7MM)
X0YO
2"
.5" (50.8MM )
(12.7MM)
Standard Metric
N1 O1011 * COMP-EX-2 N1 O1011 * COMP-EX-2
N2 G90 G70 G0 T0 Z0 N2 G90 G71 G0 T0 Z0
N3 X-2 Y2 N3 X-50 Y50
N4 T1 * .5000 MILL N4 T1 * 12.7 MILL
N5 X1.5 Y-1.0 N5 X38.1 Y-25.4
N6 Z.1 N6 Z2
N7 G1 Z-.25 F5 N7 G1 Z-6.35 F127
N8 G42 X.5 F12 N8 G42 X12.7 F300
N9 G2 X1 Y-.5 I.5 J0 N9 G2 X25.4 Y-12.7 I12.7 J0
N10 G1 X5.0 N10 G1 X127
N11 Y-1.5 N11 Y-38.1
N12 X1 N12 X25.4
N13 G2 X.5 Y-1 I0 J.5 N13 G2 X12.7 Y-25.4 I0 J12.7
N14 G40 G1 X4.7 N14 G40 G1 X119
N15 T0 G0 Z0 N15 T0 G0 Z0
N16 X-2 Y2 N16 X-50 Y50
N17 M2 N17 M2
Refer to Table 9-6 for line by line details of Table 9-5, Milled Pocket
Using G42.
Table 9-6, Line by Line Description of Table 9-5, Milled Pocket Using G42
N-Code Function
N1 Establishes program # and name.
N2 Sets Absolute, Inch, Rapid, cancels tool offset, and raises Z-
axis.
N3 Moves to tool change position.
N4 Activates tool-length comp., block also contains comment (*).
N5 Positions to inside of pocket.
N6 Position Z above part.
N7 Feeds Z to depth at feedrate of 5.
N8 Initiates compensation during feed move to arc start point.
N9 to N13 N9 to N13 feeds around slot's contour.
N14 Deactivates comp during move to clean-up center of pocket.
N15 Cancels tool offset and rapids Z home.
N16 Moves to tool (part) change position.
N17 Ends program, resets CNC to N1.
Activating Offsets via the Program
In a program, T1 (by itself) calls the Tool Page diameter and length
offsets for the specified tool. T1 with D, R, and L address words
programs a temporary diameter/radius and length offset independent of
the Tool Page. The entered D (diameter) or R (radius) and L (tool-length)
offsets remain active until you cancel the active tool. Refer to
Table 9-7.
Table 9-7, Activating Offsets Using T1
T1 Format Description
T1 Activates Tool #1 diameter offset listed in the
Tool Page.
T1 D.5000 L-1.2500 Applies a diameter offset of .5000 and length
offset of -1.2500 to the active tool.
T1 R.2500 L-1.2500 Applies a tool radius value of .2500 and
length offset of -1.2500 to the active tool.
The diameter offset takes effect when you program G41 or G42. All
dimensions are in reference to the work surface.
NOTE: ANILAM recommends that you use the Tool Page to avoid
confusion or possible entry errors on the offsets.
The Program Manager’s USER listing lists the programs stored in the
CNC. Refer to Figure 10-1. All CNC programs have .G extensions after
their names. Change the Program Type mode to view programs with
other formats.
NOTE: The folder where the user programs are stored is V:\USER. All
programs should be created and saved in this folder. Additional
folders can be created in V:\USER to better organize programs.
Do not delete or alter files or folders outside of V:\USER. Some
files and folders outside of V:\USER may be needed for normal
operation of the CNC.
Current
Directory
Program
List
Program
Preview
Loaded
Program
Program Type
mode (filter)
Soft
Keys
PROGRAM
Other functions related to the Program screen may be accessed using the
SHIFT key. These functions are described in this section. Press the SHIFT
key to display the Program Shift screen. Refer to Figure 10-2, Shift
Screen from Program Screen.
CHANGE LAYOUT1
UP DIR1
Deleting a Program
To delete a program:
1. Highlight a program in the Program Manager.
2. Press Delete (F3). The CNC prompts to confirm the deletion and the
soft keys change for your response.
3. Press Yes (F1). The CNC deletes the selected program.
– or –
Press No (F3). The Delete command is canceled.
On the Program screen, select Utils (F9) to display the Utilities pop-up
menu. Refer to Figure 10-6, Utils Pop-up Menus. Refer to Table 10-3.
Table 10-3, Utils (F9) Pop-up Menu Description
Label Description
Copy To copy programs to another drive or to floppy disks. See “Copying
Programs from/to Other Directories.” Copies currently highlighted file
and files that were previously marked.
o Expanded by using the right ARROW
o Compressed by using the left ARROW
o Traverse the directory using up and down ARROW keys
o Go to parent directory of current directory by using the ARROW keys
o Display directory name in status area at bottom, which defaults to
current drive
o If copying to current location, need to create file with “copy of …”
o If copying to a new location and file exists, need to prompt to
overwrite: OK (F1) and Cancel (F10)
Move To move a program. Copies currently highlighted file and files that
were previously marked.
o Expanded by using the right ARROW
o Compressed by using the left ARROW
o Traverse the directory using up and down ARROW keys
o Go to parent directory of current directory by using the ARROW keys
o Display directory name in status area at bottom, which defaults to
current drive
o If copying to a new location and file exists, need to prompt to
overwrite: OK (F1) and Cancel (F10)
o Deletes source file after copying
Rename Use to rename a program. See “Renaming Programs.”
Mark All To mark all programs in the Program Manager. See “Marking and
Unmarking Programs.”
UnMark All To unmark all marked programs. See “Marking and Unmarking
Programs.”
Renaming Programs
To rename a program:
1. In the Program Manager, highlight a program.
2. Press Utils (F9) to display the Utils pop-up menu (refer to
Figure 10-6, Utils Pop-up Menu and Table 10-3, Utils Soft Keys
from Program Screen). Select Rename, and press ENTER.
3. Type new program name, and press ENTER. The new name replaces
the old name.
Marking Programs
To mark a program:
1. Highlight a program in the Program Manager.
2. Select Mark (SHIFT + F6).
3. Press ARROWS to highlight another program in the list, and select
Mark (SHIFT + F6).
4. Repeat these steps to mark as many program as required.
Creating Subdirectories
Press Create Dir (SHIFT + F2) to create subdirectories. Ensure that the
CNC is in the desired drive before you create a subdirectory.
[Default: V:\USER]
To create a subdirectory:
1. Press Create Dir (SHIFT + F2).
2. The CNC prompts for the new subdirectory. Type the subdirectory
name, and press ENTER. The CNC creates the subdirectory.
The screens for both modes resemble the Manual screen. Use the soft
key labels to distinguish between modes. The CNC highlights the label
for the active mode.
You must load a program before you can run it to cut a part. Load
programs from the Program Manager. Refer to “Section 10 - Program
Management” for information on how to load programs.
The Manual Data Input Mode (MDI) enables you to program a few quick
moves without having to create and save a program. MDI is usually used
for manual operation. It is available only in Manual Mode.
All programming tools, moves, and cycles are available in MDI.
Refer to “Section 3 - Manual Operation and Machine Setup” for additional
information.
SINGLE STEP
Table 11-1 describes the active soft keys on the Single Step screen and
Auto screen (refer to Figure 11-2, Auto Screen).
Table 11-1, Single-Step and Auto Screen Soft Keys
Press the SHIFT key on the keyboard to display the Single-Step and Auto
Mode Shift screen (refer to Figure 11-2, Auto Screen). Refer to
Table 11-2.
Table 11-2, Single-Step and Auto Mode Screen Secondary Soft Keys
Label Soft Key Function
Msgs (SHIFT + F1) Displays the last 10 messages, both old
(already read) and new (not yet read)
BG Prog (SHIFT + F3) Background programming displays
Figure 10-1, Program Screen and
enables to change the program while it
is running.
Parts (SHIFT + F4) Activates the Parts Counter pop-up
Counter window to reset the New Value.
OSC (SHIFT + F7) Oscilloscope. For details see 6000i
CNC Technical Manual, P/N 627787-
21.
OLM (SHIFT + F8) On-line Monitor. For details see 6000i
CNC Technical Manual, P/N 627787-
21.
Table 11-3 describes the active soft keys on the Block Search screen.
Table 11-3, Block Search Screen Soft Keys
Match case F3 Displays the Find pop-up with the message Find what:
and an entry field for you to type the case-sensitive string
that you want.
Goto F4 Displays the Goto pop-screen with the message, Go to
line: and an entry field.
Start of F5 The cursor returns to the first block of the program. See
Prog “Section 6, Advancing to the First or Last Block of a
Program.”
End of F6 The cursor advances to the last block of the program. See
Prog “Section 6, Advancing to the First or Last Block of a
Program.”
Find F8 Displays the Find screen. The Find pop-up screen
displays with the message, Find what: and an entry field.
For the Find screen soft keys, refer to Table 11-4, Block
Search>Find (F8) Screen Soft Keys.
Scroll F9 Scrolls the display
Table 11-4 describes the active soft keys on the Block Search>Find
screen.
Program
Position
Display Area
Distance to Go
Position
Display Area
Machine
Status
Display Area
Program Area
TIMER
The Timer begins timing the program run when you press START and
stops when it encounters an M2 block. Therefore, ensure that an M2
block has been included at the end of the program.
The timer pauses if the CNC holds. The timer stops if you switch to
Manual Mode. If you re-run the program before going back to Manual,
the total time for all runs is displayed. The Timer values remain the same
until you switch to Auto or Single-Step Mode again. Then, the timers
reset to zero.
The Parts counter starts at zero and increments by one every time the
CNC runs an M2 block. Therefore, ensure that an M2 block has been
included at the end of the program. The CNC continues to count parts
when you re-run the program in Auto or Single-Step. The parts counter
value is maintained when you switch to Manual Mode, but resets to 0
when you switch back to Auto or Single-Step Mode.
Jog/Return
Jog/Return is a function in the CNC that allows the tool to be removed
from the cut while in Auto or Single-Step Modes, without switching the
CNC to Manual. It has an ‘automatic return’ capability that returns the
tool to its departure point.
It is generally used to check the tool’s wear and to change a cutting
tool/offset in case of tool breakage or excessive wear in the middle of an
operation, or inspect a critical dimension or cut.
Initiating Jog/Return
The Jog/Return function may be initiated from the Auto or Single-Step
modes of the CNC.
To use the Jog/Return feature, the HOLD key must be pressed first, before
pressing JOG (F2). This ensures that the machine cannot be stopped
accidentally while cutting by pressing JOG (F2). In this way, the axes
must be halted before the Jog/Return feature may be used.
TOOL (F7)
HANDWHEEL (F8)
RETURN (F10)
TOOL (F7)
Tool (F7) when pressed displays the CNC’s Tool Page. This allows the
operator to make a change to the tool length or wear offsets.
If these values in the Tool Page are changed, the new values are not
invoked until that tool is (re-) activated in the part program.
HANDWHEEL (F8)
Enable or disables handwheel moves.
RETURN (F10)
Once any axis is moved, the Restart Pos (F1) highlights and Return
(F10) grays out. Return (F10) can only be used if no axis has changed
position and after pressing Return (F10); you simply press START to
continue.
If any axis has been moved in the jog mode, Restart Pos (F1) highlights
and when you are done, you press Restart Pos (F1) and a new set of
soft keys are displayed. Use these soft keys to return the axes moved in
the order that you want. Once all axes are returned, the control
automatically switches back.
EXAMPLES:
The following are typical scenarios as to how and when to use the
Jog/Return function. Assume the CNC is running the program in Auto or
Single-Step Modes.
SITUATION 1:
SITUATION1
Keystrokes/operations:
1. HOLD
2. JOG (F2)
3. Raise the Z-axis using jogging keys
4. Press SPINDLE OFF to stop spindle
5. Remove drill from holder
6. Place new drill in holder
7. Jog tool over workpiece with Manual Panel
8. Jog tool down to offset surface
9. TOOL (F9)
10. TEACH (F8)
11. EXIT (F10)
12. Jog Z+ with Manual Panel
13. Restart spindle by pressing SPINDLE FWD
14. Press Restart Pos (F1) and use soft keys (F1–F4) to return
the axes to their positions
15. Press START to continue program
The axes return to the position they were jogged from when the
Jog/Return function was initiated, in the described path.
SITUATION 2:
SITUATION2
Refer to Figure 11-6. The tool is feeding along a Y– cut on the right side
of a workpiece. The tool becomes clogged with materials and is no
longer able to cut.
Keystrokes/operations:
1. HOLD
2. JOG (F2)
3. Press SPINDLE OFF to stop spindle
4. Remove end mill from holder
5. Place new end mill in holder
6. Jog tool over workpiece with Manual Panel
7. Jog tool down to offset surface
8. TOOL (F9)
9. TEACH (F8)
10. EXIT (F10)
11. Jog Z+ with Manual Panel
12. Restart spindle by pressing SPINDLE FWD
13. Press Restart Pos (F1) and use soft keys (F1–F4) to return
the axes to their positions
14. Press START to continue program
The axes return to the position they were jogged from when the
Jog/Return function was initiated, in the described path.
Notes on Jog/Return
• Jog/Return is generally only used in trouble situations, where a tool
breaks or a tolerance must be checked. It allows the program to be
interrupted in Auto or Single-Step mode, without having to switch to
Manual.
• The HOLD key must be pressed prior to JOG.
• Manual Panel moves are allowed while in Jog/Return.
• Manual Data Input (MDI) moves are not allowed.
• Tool length or wear offset on the tool may be altered while in
Jog/Return. However, the new values do not take effect until the tool
is reactivated again in the part program.
• The mode can be cancelled at any time by pressing F4 (Manual).
• The Manual Panel is fully active (Handwheel also if present).
Control M-Codes
Control M-Codes execute or alter certain CNC functions, such as
program end, subprogram call, mirror image, etc.
These M-Codes are part of the CNC software. To use them, write the
appropriate M-Code into the program. Refer to Table 12-3.
Table 12-3, Control M-Codes
M-Code Function
M0 or M00 Program Stop Mode. Program stops indefinitely.
Press START to resume.
M1 or M01 Optional Program Stop. Optional program stops
indefinitely. Press START to resume.
M2 or M02 End of Program. At M02, the program stops and
returns to the first program block.
M19 Spindle Orientation. (Followed by the C word for a
spindle orient to a specific angle [i.e., M19 C45 orients
the spindle to 45 degrees].)
M30 Jump to New Program. Return to other program. M30
O75 programmed, as the last block of a main program
returns the CNC to program #75. O75 must be in the
same file.
M98 Call SubProgram. A block in the main program with
M98 P100 executes subprogram 100. O100 must be in
the file after the end of the main program.
M99 End of SubProgram. M99 ends a subprogram and
returns to the main program at the block preceding the
last executed program call.
M105 Dry Run, All Axes. Program M105 in a program file or
in MDI to set Dry Run Mode. CNC executes all feed
moves at a rate set by the builder. It enables you to run
programs through quickly to check for mistakes.
M107disables Dry Run.
NOTE: Making and saving a change to the Setup Utility
cancels M105.
M106 Dry Run, No Z Axis. M106 in a program file or in MDI
sets Dry Run (No Z) Mode. All feed moves are executed
at a rate set by the builder, and all Z moves are ignored
during the dry-run. This enables you to run through a
program quickly, without Z-axis movement. M107
disables Dry Run, No Z Axis.
NOTE: Making and saving a change to the Setup Utility
cancels M106.
M107 Dry Run, Off - Cancel M105 and M106. This returns
the CNC to normal operating mode.
SPEED Spindle Speed. Commands spindle speeds (S).
Order of Execution
The order of execution for available codes is as follows:
T, M, S, F, G, and XYZ (M98 P {sub call} is the exception)
ENTER ENTER
X (axis) (X)
Y (axis) (Y)
Z (axis) (Z)
U (axis)
(U)
START (ALT + S)
HOLD (ALT+ H)
Peripherals Supported
The 6000i also supports other Universal Serial Bus (USB) devices:
• USB Mouse
-----
** Microsoft® and Windows® are registered trademarks of Microsoft Corporation in the
United States and/or other countries.
The off-line software has a desktop icon or program group entry as shown
in Figure 14-1, 6000i Off-line Program Group.
Select either 6000i Off-Line option (desktop icon or program group entry)
to start the software.
Axis Types
6000i-4X
6400M
The machine builder sets up the fourth-axis as linear or rotary axes. The
three basic axes are X, Y, and Z. The additional axis is designated as U
(6000i-4X). This section discusses the rotary axis option in detail.
Below are the programming formats for linear or rotary additional axes:
Linear: Program as Feed Mode (G1) or Rapid (G0) moves. Only rapid
and linear feed moves can be programmed. U can be
programmed along with X, Y, and Z-axis in rapid, linear, and
circular moves. The U-axis is always synchronous to the XYZ
moves.
Programming Examples
All programming examples are for 4-axis machining with the rotary table
mounted on the left end of the mill table, with the centerline of the rotary
axis parallel to the X-axis. The face of the rotary table faces X+.
The examples contain both milling and drilling applications. Modal cycles
G81 to G89 and G66 can be executed at rotary locations as in XYZ
locations. Non-modal canned cycles can be executed at rotary locations.
Position the rotary axis before you execute a non-modal canned cycle.
Example 1: Drill
Mount the fourth axis as described above. Mount a part 6-inches wide
and 8-inches long on the face of the rotary table. shortestDistance is
set to off.
Table 15-1 shows a drilling example. You must drill ten 0.375-inch holes
36-degrees apart, 1-inch deep, 0.75-inches in from the end of the
cylinder. Then, starting at X-2 U0, drill a spiral series of holes 36-degrees
and X-0.500 inches apart each. Set X0 at the right end, Y0 at the
cylinder's centerline, U0 at a pre-milled keyway on the cylinder. Measure
tool offsets from the top of the cylinder, with Y-axis at 0.
Table 15-1, Four-Axis Example 1
* 4-AX-DRL
* SET shortestDistance to “off”
G90 G70 G0 M5
G28 Z0
G53 O1
G0 X0 Y0 U0
T1 *#3 CENTERDRILL
M3 S2400
G81 Z-.22 R.1 F12
M98 P1
T2 * 3/8" DRILL
M3 S1850
G53 O1 *RE-ACTIVATE OFFSET CANCELED IN SUBR #1
G87 Z-1 R.1 F14 I.18 J.012 K.1 U.3334
M98 P1
M2
Example 2: Mill
Mount the fourth axis as described above. Mount a part 3 inches in
diameter and 5 inches long on the face of the rotary table. The part has a
0.25-inch radius turned on the end. shortestDistance is set to off.
Table 15-2 shows a milling example only. Assume that a series of six 0.25-
inch wide grooves must be milled 60-degrees apart, 0.25-inch deep at the
start, tapering up to 0.125-inch deep and rotating 15 degrees at the far end.
The groove must follow the end contour of the part (radius). Set X0 at the
right end, Y0 at the cylinder centerline, U0 at a pre-milled keyway on the
cylinder. Set the tool offset so that the centerline of the 0.25-inch ball-end
mill is at the centerline of the 3-inch diameter part (with Y axis at 0).
Table 15-2, Four-Axis Example 2
* 4-AX-MILL
* SET shortestDistance TO “off”
G90 G70 G0 M5
G28 Z0
G53 O1
G0 X0 Y0 U0
T1 *.25 BALL-END-MILL
S2400
M3
M98 P1 L6
G90 G0 M5
G28 Z0
G0 X0 Y0 U0
M2
O1 * GROOVE
G90 G0 X.225
G0 Z2.625
G1 X.125 F5
G18 G91 G2 X-.25 Z.25 I-.25 K0 U-2.
G17 G1 X-3.25 Z.125 U-13
G90 G0 Z3.225
G0 X.225
G91 G0 U-45
M99
Example 3: Mill
Mount a fourth axis as described above. Mount a part 4-inches in
diameter and 8-inches long on the face of the rotary table. Support the
part on the X+ end by a live center. The part has a 0.25-inch, 45-degree
chamfer on one end. shortestDistance is set to on. This prevents the
need to unwind the U-axis, saving operation time.
Requirements
The following topics are described:
Off-line Software
Machine Software
Off-line Software
The Personal Computer (PC) must have a mouse installed. The Anilam
Off-line Software is required. The Anilam Off-line Software runs in a
Windows environment. (See “Section 14 - Off-line Software.”)
Machine Software
A mouse or other pointing device (for example, track ball) must be
installed to properly operate the DXF converter on the machine.
Depending on the mouse, it may be necessary to have the mouse
connected before turning the CNC on.
Y-axis Scale
X-axis Scale
Message Line
DXF SCRN
Creating Shapes
The part drawing is used to create shapes. Shapes are then output to
CNC programs as subroutines. Converting to DXF edit creates the
subroutines to change the G-Code file. You change the features
(subroutines) attached to the G-Code file. There are many features to
make the drawing screen easier to use. Layers may be turned on or off.
Any area of the screen can be zoomed in or out. Refer to Table 16-1,
Mouse Operations.
Each shape is given a sequential number. The number is displayed on
the screen at the beginning of the shape. Press Select (F1) to toggle
Select mode on. With Select mode on, entities can be selected to be part
of a shape. Left click with the mouse to make selections. When an entity
is selected, it changes color.
When selecting entities, direction is determined by where the mouse
pointer is positioned. If nearer the left side of a line, direction is left to
right.
There are two types of shapes:
• One used for contouring or feed motion
• One for drilling a series of holes
Contours
Pick an entity where the shape is to begin. Pick the last entity in the
shape. All entities that are connected are chained together and change
color to verify this. Some shapes have to be selected one entity at a time.
This is determined by the way the part was drawn in the DXF file.
If an entity is selected that is not connected to the previous one, a
message is displayed, “SHIFT + Select to start a new contour”. This
message means you have selected an unchainable entity, maybe by
mistake. You must press and hold SHIFT if the intent is to start a new
contour. When a chainable entry is selected, a new shape number is
displayed.
Entities in a shape can be un-selected by clicking them again. This
un-selects everything previously selected to that point. To delete a
shape, click on the first entity. The first entity is typically colored differently
for this purpose.
Drilling
When circle entities are selected, they are assumed to be drilling hole
locations. As circles are selected, a dotted line shows the rapid path
between holes. Selecting anything other than a circle, ends the drilling
shape, and produces the message, “SHIFT + Select to start a new
contour”.
If you wish to create a second drilling shape, select the first hole of the
next shape while holding the SHIFT key. This tells the application that you
want to start a new contour.
CNC Code
Each shape that is created is made into a subroutine. For each
subroutine, there is a call in the main program. Running the CNC
program in Draw mode allows the tool paths to be seen.
The file must be edited to add tool numbers, feed rates, cutter comp on or
off, and so forth.
The tool paths are only as accurate as the DXF drawing file used.
Mouse Operations
Refer to Table 16-1.
Transformation
Information
Chaining
Drawing
Entities
Line X X X X
Point X X X
Circle X X X X
Arc X X X X
Trace X X X
Solid X X X
Text X X
Shape X X
Insert X X
Attdef X X
Attribute X X
Vertex X X X
Polyline X X X X
Line3d X X X X
Face3d X X X
Files Created
The DXF Converter creates the CNC file, .G for G-Code and .M for
conversational, based on the setting of the Output format parameter.
A file is also created with the extension .sel. This file saves the status of
parameter settings that were used in Setup.
DXF Examples
From the Program listing open the DXF file. Refer to Figure 16-2.
Refer to Figure 16-3. Many unneeded layers have been turned off. The
Figure shows the drill locations and the contour selected (numbered 1
and 2).
ZOOM PART
Sub 1
Rapid X 2.51037 Y 0.97667
Arc Cw X 2.44669 Y 0.91299 XCenter -0.10905 YCenter 0.04536
Arc Cw X 1.58477 Y 0.91299 XCenter -0.43096 YCenter 1.03598
Arc Cw X 1.52108 Y 0.97667 XCenter 0.04536 YCenter 0.10905
Arc Cw X 1.52108 Y 1.83859 XCenter 1.03598 YCenter 0.43096
Arc Cw X 1.58477 Y 1.90228 XCenter 0.10905 YCenter -0.04536
Arc Cw X 2.44669 Y 1.90228 XCenter 0.43096 YCenter -1.03598
Arc Cw X 2.51037 Y 1.83859 XCenter -0.04536 YCenter -0.10905
Arc Cw X 2.51037 Y 0.97667 XCenter -1.03598 YCenter -0.43096
EndSub
Sub 2
Rapid X 2.01573 Y 1.86039
Rapid X 2.46848 Y 1.40763
Rapid X 2.01573 Y 0.95488
Rapid X 1.56297 Y 1.40763
EndSub
O1
G0 X2.51037 Y0.97667
G2 X2.44669 Y0.91299 I-0.10905 J0.04536
G2 X1.58477 Y0.91299 I-0.43096 J1.03598
G2 X1.52108 Y0.97667 I0.04536 J0.10905
G2 X1.52108 Y1.83859 I1.03598 J0.43096
G2 X1.58477 Y1.90228 I0.10905 J-0.04536
G2 X2.44669 Y1.90228 I0.43096 J-1.03598
G2 X2.51037 Y1.83859 I-0.04536 J-0.10905
G2 X2.51037 Y0.97667 I-1.03598 J-0.43096
M99
O2
G0 X2.01573 Y1.86039
G0 X2.46848 Y1.40763
G0 X2.01573 Y0.95488
G0 X1.56297 Y1.40763
M99
Sub 1
Line X 2.51037 Y 0.97667 ToolComp Right
Arc Cw X 2.44669 Y 0.91299 XCenter -0.10905 YCenter 0.04536
Arc Cw X 1.58477 Y 0.91299 XCenter -0.43096 YCenter 1.03598
Arc Cw X 1.52108 Y 0.97667 XCenter 0.04536 YCenter 0.10905
Arc Cw X 1.52108 Y 1.83859 XCenter 1.03598 YCenter 0.43096
Arc Cw X 1.58477 Y 1.90228 XCenter 0.10905 YCenter -0.04536
Arc Cw X 2.44669 Y 1.90228 XCenter 0.43096 YCenter -1.03598
Arc Cw X 2.51037 Y 1.83859 XCenter -0.04536 YCenter -0.10905
Arc Cw X 2.51037 Y 0.97667 XCenter -1.03598 YCenter -0.43096
EndSub
Sub 2
Rapid X 2.01573 Y 1.86039
Rapid X 2.46848 Y 1.40763
Rapid X 2.01573 Y 0.95488
Rapid X 1.56297 Y 1.40763
EndSub
O2
G0 X2.01573 Y1.86039
G0 X2.46848 Y1.40763
G0 X2.01573 Y0.95488
G0 X1.56297 Y1.40763
M99
Modifiers
Use modifiers to alter the way the CNC interprets a word address. For
example, a single value in an Inch Mode program may be forced to Metric
Mode, without programming G71. Or, arc center values (I, J, or K) may
be forced to an absolute value.
The address and modifier must be accompanied by an ampersand (&).
Place the ampersand (&) between the address word to be modified and
the modifier. The address word is programmed first, followed by &,
followed by the modifier, followed by the value.
The modifier is non-modal and is applied only to the address word it
accompanies.
Example
G02 X2.0 Y1.0 I&A1.5 J&A1.0
The example forces the I and J center of an arc to be in Absolute Mode.
I and J are incremental by default. Assume the axes are at X1 Y1.
Table 17-1 lists the available modifiers.
Table 17-1, Modifiers
A Force the address word to be in Absolute Mode.
D Force the address word to be in Incremental Mode.
E Force the address word to be in Inch Mode.
M Force the address word to be in Millimeter Mode.
Block Separators
Block separators (;) can be used to place several functions on one line of
a program. This is useful in Manual Data Input (MDI) Mode because you
can combine several commands on one line at the command line.
Example 1 executes five moves on the machine when you press START.
Each move is separated by the (;) block separator.
Example 1:
G90 G01 X0 Y0 F30 ; X3 ; Y-2 ; X0 ; Y0
Example 2 moves the axes linearly to X0 Y0, then CW to X1 Y1, then
linearly to X2.
Example 2:
G90 G01 X0 Y0 F10 ; G02 X1 Y1 I1 J0 F8 ; G01 X2
The number of separate steps in a program file is limited only by the
available memory.
Block separators can also be used in programs.
X0, Y0
TOOLMOD
Temporary Format:
T1 D.5500 L-1.1000
Changes Tool 1 diameter offset to .5500 and length offset to -1.1000. Do
not update the Tool Page for Tool 1.
Permanent Format:
T1 D.5500 L-1.1000 H M6
Changes Tool 1 diameter offset to 0.5500 and length offset to -1.1000.
Updates the Tool Page for Tool 1 to entered values.
D and L values are absolute and replace the previous offsets. They are
not added to existing offsets. The H command instructs the CNC to
update the Tool Page offsets to the programmed values and must come
between the M6 and the D & L addresses, if an M6 is required by the tool
change of your machine.
NOTE: When tool modifiers are activated, the CNC still applies any
wear offset entered in the Tool Page.
Examples
Ref. from
Previous
Table Example
a) G01 X(#100 + #101). All calculations must be enclosed in
parentheses. This defines an expression.
b) G00 Y&A(#102 * #103)
LOOP (5 / 2 / .01)
Example of multiplication, division, and modification.
c) G01 X(3 + 2)
#100 = (#122 - #105).
Addition and Subtraction.
d) IF (#101 > 0) THEN ....
Greater than (>), less than (<).
e) IF (#144 = #143) GOTO .....
Equal to, not equal to (!=).
f) TOMM (n); convert n to mm.
If n's type is inch, TOMM (n) = n * 25.4.
g) TOIN (n); convert n to inch. If n's type is mm, TOIN (n) = n
/ 25.4.
h) TODE (n); convert to current (IN or MM) mode.
i) TONU (n); force the type of (n) to the modal (inch or mm).
j) ROUND (n) rounds the value of (n) up or down, depending
if its fractional part is equal or greater than 0.500000, or
less than 0.500000.
#100 = 1.500 ; G01 X(round(#100)) moves to X2.0000
#101 = 1.499 ; G01 X(round(#101)) moves to X1.0000
k) FIX (n) rounds the value down to the next whole number.
#100 = (5/2) ; G01 X(fix(#100)) moves to X2.0000
l) FUP (n) rounds the value up to the next whole number.
#100 = (5/2) ; G01 X(fup(#100)) moves to X3.0000
m) VAR (n) is used to check if a user variable has been
defined in a program. IF (var(#100)) THEN .... If #100 has
been defined by the user, then true. If not, then false.
n) SIN (n) gives the sine of (n). (n) is assumed to be in
degrees. G01 X(cos(15)) Y(sin(15)) moves along the
hypotenuse of a 15-degree angle with a hypotenuse of 1.
o) COS (n) gives the cosine of (n).
p) TAN (n) gives the tangent of (n).
q) ASIN (n) gives the arcsine of (n).
r) ACOS (n) gives the arccosine of (n).
s) ATAN (n) gives the arctangent of (n).
t) ABS (n) gives the absolute value of (n).
u) SQRT (n) gives the square root of (n).
v) LN (n) is natural logarithm.
w) LOG (n) is logarithm.
x) EXP (n) is exponential function.
y) TRUN (n) truncates the value of (n).
Ref. from
Previous
Table Example
z) ! unary logical not, != (not equal to).
Positive, (+(#100)) means positive whatever value is in
#100.
Negative, (-(#100)) means negative whatever is in #100.
Example of indirection:
N30 #200 = 51.456
N40 #201 = 200
N50 G90 G1 X ##201 F200
At Block N40 variable #201 = 200. Only when the second
level of indirection is used at N50 does variable #201
contain the contents of variable #200 causing the X-axis to
move to position 51.456. Up to four levels of indirection
can be used.
System Variables
Certain variables are set aside as CNC system variables. Some may be
useful for you to know when programming macros. The system variables
range from #1000 to #1099. Most of these variables are "read only". You
cannot write information to them. There are a few exceptions to this rule.
Refer to Table 17-3 for a list of available system variables.
User Variables
Certain variables are set aside for the programmer to use. These may be
useful when programming macros. You can read from or write to these
variables. They are divided into four categories:
• Local variables: #1 to #99
These variable numbers can be used only within the body of a
subprogram (or macro). The CNC generates an error message if you
program these variables in the main program. Values do not hold
from one subprogram to another. In this way, the same variables can
be used in separate subprograms, with different values.
• Common (global) variables: #100 to #219. (Read/Write)
These variables can be used anywhere in the program or subprogram
and their value remains.
• Read only variables: #220 to #249
These variables can only be set in the main program. Once set, the
variables can be used in subprograms or macros as "read only"
variables.
• Static (global) variables: #260 to #279. (Read/Write)
These variables can be used anywhere in the program or subprogram
and their value remains across shutdowns or software resets.
Block Skip
Any block preceded by a slash (/) code is omitted if the corresponding
block skip ‘switch’ is set “ON” in the program, previous to the (/) code.
The switch is set on by programming variable #1000 to the value of “1”. A
value of “0” sets the switch “OFF”.
Example:
N11 #1000 = 1 *Note: 0=OFF, 1= ON
N12 G81 Z-.5 R.1 F12 P.1
N13 X1 Y1
N14 X2
/N15 X3
N16 X5
N17 G80
Example:
N11 #1002 = 1 *Note: 0=OFF, 1= ON
N12 G81 Z-.5 R.1 F12 P.1
N13 X1 Y1
N14 X2
/2 N15 X3
N16 X5
N17 G80
Indirect Transfer:
You can indirectly transfer variables to a depth of four levels by
introducing extra hatch marks (#) before the variable number. In an
indirect transfer, a value is transferred to one variable via another.
Example 1:
N201 G90 G17 G71 G0
N202 #101 = 51.456
N203 #102 = 101
N204 X##102
At Block N204, the X-axis moves to 51.456. Example 1 shows single
indirection. The contents of variable #101 are used by variable #102.
The actual content of variable #102 is constant 101. The indirection is
activated at Block N204 by the addition of the (#) symbol to variable #102.
Example 2:
N210 G90 G17 G71 G0
N211 #101 = 1
N212 #102 = 2
N213 #103 = 3
N214 #104 = 4
N215 #119 = 100
N216 LOOP 4
N217 #119 = #119 + 1
N218 #120 = 119
N219 X###120
N220 END
N221 M2
Example 2 contains two levels of indirection (N219) and shows how the
contents from multiple variables can be assigned to a command or
expression.
At Block N215, variable #119 is set to constant 100.
At Block N217 one is added to the contents of variable #119.
At Block N218 variable #120 is set to constant 119.
Block N219 moves the X-axis to the position contained in variable #120
via two levels of indirection. The first level is the content of variable #119.
The second level is the content of variable #101, which is incremented in
the loop at Block N217 to introduce the contents of variables #102, #103
and #104.
The X-axis moves to X1; X2; X3; and X4.
Storing Result of Computation
When a mathematical expression is programmed, variables on the left
side of an equation store the computed result.
N250 #110 = #20 + #35
N260 #120 = #18 / 2
At N250, #110 contains the sum of the contents of #20 and #35. At
N260, #120 contains the result of the contents of #18 divided by 2.
Parentheses establish an order of operations or denote special functions.
O100
LOOP((1/#103)+1); * SET LOOP NUMBER (1 IN. DP / .02 STEP) + 1
G91 * SET INCREMENTAL MODAL
G1 Y(-#102); * MILL L.H. SIDE
X#101; * MILL BOTTOM SIDE
Y#102; * MILL R.H. SIDE
X(-#101); * MILL TOP SIDE, BACK TO START POS'N
X(-#104) Y#104 Z#103; * STEP UP/OVER IN X-Y AND Z
#101 = #101 + (#104*2); * ADD STEPOVER TIMES 2 TO LONG SIDES
#102 = #102 + (#104*2); * ADD STEPOVER TIMES 2 TO SHORT SIDES
END * END LOOP
M99
The pocket is milled with a side draft angle of three degrees. Z is set to a
step-up increment of .02 in. #152 can be set to a desired value, perhaps
to determine the finish on the sidewalls of the pocket. In this example,
the pocket always has a depth of 1 in., and a draft angle of 3 degrees.
The side lengths and Z step may be changed.
To make this program totally independent, the Z depth and draft angle
can be set to variables, and the additional calculations must then be
made.
Example 2
This program requires the length and width of a rectangle, the cut per
side on the rectangle, and the number of passes around the rectangle.
Variables #150 to #199 are read only. They can be set only in the main
program.
N10 O 1000
N20 G0 G17 G70 G90 F80
N30 T0
N40 Z0
N50 X0 Y0 ;* START POSITION OF RECTANGLE
N60 #151 = 3 ;* SET READ ONLY VARIABLE, X LENGTH OF SIDE
N70 #152 = 3;* SET READ ONLY VARIABLE, Y LENGTH OF SIDE
N80 #153 = .25 ;* SET READ ONLY VARIABLE, CUT PER SIDE
N90 #154 = 5 ;* SET READ ONLY VARIABLE, NUMBER OF PASSES
N100 M98 P1 ;* CALL SUBPROGRAM BODY
N110 T0
N120 Z0
N130 X0 Y0
N140 M2
N160 O1
N170 G91 G1 X#151 ;* MOVE X AXIS LENGTH OF SIDE
N180 Y#152 ;* MOVE Y AXIS LENGTH OF SIDE
N190 X(-#151) ;* MOVE X NEGATIVE
N200 Y(-#152) ;* MOVE Y NEGATIVE
N210 #111 = 0 ;* SET SIDE CUT INCREMENT TO 0
N220 LOOP #154 ;* LOOP #154 NUMBER OF TIMES
N230 X#153 Y#153 ;* SET SIDE CUT
N240 #111 = #111 - #153 ;* DECREMENT SIDE CUT EACH LOOP
N250 #101 = #151 + (#111 * 2 ) ;* CALCULATE NEW X LENGTH
N260 #102 = #152 + (#111 * 2 ) ;* CALCULATE NEW Y LENGTH
N270 X#101 ;* MOVE AROUND SQUARE USING NEW SIDE * LENGTHS
N280 Y#102
N290 X(-#101)
N300 Y(-#102)
N310 END
N320 M99
The read only variables are set in Blocks N60 to N90. Then, the
subprogram is called. At Block N170, the first move is made along the X-
axis, followed by a move along the Y-axis. At Blocks N190 and N200, the
logical negative sign makes the axis move in the opposite direction. The
contents of the variables remain the same.
At Block N220, a loop, which ends at Block N310, is set up. The loop
runs the number of times contained in variable #154. The first move in
the loop is in the X and Y axes to the side of cut value in #153. In Block
N240, #111 decrements at each pass through the loop, by the value of
the side cut. This value, in turn, is used to calculate a new length of cut
for each side.
SLOTMAC.G Program
In the following Blocks 1260 through 1400 are comment blocks that
regard the macro's structure and concept.
Example:
N1255 O1255 * SLOTMAC.G
N1260
N1270 * EXAMPLE: G65 P1255 X-3 Y1 Z-.125 A5 B12 C10
N1280 * P = SUB #
N1290 * X = X DIM OF SLOT #24
N1300 * Y = Y DIM OF SLOT #25
N1310 * Z = ABS DEPTH OF SLOT #26
N1320 * A = Z FEEDRATE #1
N1330 * B = XY FEEDRATE #2
N1340 * C = ANGLE FROM 3 o’clock #3
N1350
N1360 * NOTES:
N1370 * 1. SLOT WILL HAVE FULL RAD.
N1380 * 2. MUST POS'N XY OVER CENTER OF L.LEFT RAD.
N1390 * 3. PROGRAM SLOT LENGTHWISE IN X, ANGLE C WILL ROTATE
N1400
N1410 G90 G0 Z.1
N1420 G61 Z#26 F#1
N1430 G68 C#3
N1440 G91 G41 G64 X.1 Y(#25/2) F#2
N1450 X-.1
N1460 G3 X0 Y(-(#25)) I0 J(-(#25/2))
N1470 G1 X(ABS((ABS(#24))-(ABS(#25))))
N1480 G3 X0 Y#25 I0 J(#25/2)
N1490 G1 X(-(ABS((ABS(#24))-(ABS(#25)))))
N1500 G1 G40 Y(-(#25/2))
N1510 G68
N1520 G90 G0 Z.1
N1530 M99
Examples:
[ PI 3.141592654 *PI is read as the value given
[ TFLAG #1041 *TFLAG represents system variable #1040
(current tool comp)
NOTE: Open bracket must start line. Do not use equal signs (=) in
string variables.
You can use a variable to print values.
#35= PI ;print 35 *3.141592654 is printed
There must be at least one space preceding and following the string
variable in a program. In the following examples, PI is the variable.
#35/PI+#23 Produces error.
#35/ PI +#23 Correct format.
Once set, string variables can be used in any macro within the same
program.
Example:
G90 G70 G0 G17
T0 Z0
X0 Y0
T1 F30
X1.5 Y0 * MOVE TO HOLE CENTER
Z.1
G1 Z-.5 * MOVE Z TO DEPTH
G65 P76 D2.0 S.010 J35 K20
G0 Z.1 * RAISE Z TO CLEARANCE PLANE
TO Z0
X0 Y0
M2
Conditional Statements
This subsection discusses the conditional statements IF, THEN, ELSE,
GOTO and WHILE.
IF - THEN - ENDIF
N300 IF (expression) THEN
N310 -------------------
::
::
N360 ENDIF
N370 ---------
If the expression in N300 is true, the program continues at N310. If the
expression is false, the program continues at N370.
In place of an expression, you can use a variable that while not zero is
treated as a true expression. (Zero equals false. Any other value equals
true.)
IF - THEN - ELSE - ENDIF
N400 IF (expression) THEN
N410 -------------------
::
::
N440 ELSE
N450 -------------------
::
::
N470 ENDIF
N480 ---------
If the expression is true, the program continues at N410, then to N440,
where a jump is made to N480.
If the expression is false, the CNC skips Blocks N410 to N440 and
executes Blocks N450 to N470. In place of an expression, you can use a
variable that while not zero is treated as a true expression. (Zero equals
false. Any other value equals true.)
IF - GOTO
N500 IF (expression) GOTO nnnn
N510 ---------
NOTE: When you program IF-GOTO statements do not precede the
block number with the character "N".
For example, IF-GOTO 487 skips to block number N487.
If the expression is true, the program jumps to the block number specified
(nnn). If the expression is false, the program continues at Block N510. In
place of an expression a variable can be used which while not zero is
treated as a true expression. (Zero equals false. Any other value equals
true.)
WHILE - DO - END
N550 WHILE (expression) DO nnnn
N560 ------------------------
::
::
N590 END nnnn
N600 ---------
If the expression is true, the program repeats between N550 and N590
until the expression becomes false. Similarly, if the expression is false
when Block N550 is executed, the CNC jumps to Block N600. The
number after DO is a label (identifier only) and the same number must be
used to identify the END of the loop.
In place of an expression, you can use a variable that while not zero is
treated as a true expression. (Zero equals false. Any other value equals
true.)
DO - END
N620 DO nnnn
N630 ---------
::
::
N650 IF ( expression ) GOTO 1111
N660 -------------------
N670 END nnnn
DO - END sets the program into an infinite loop that can only be ended by
programming a GOTO (1111) command to another block. DO and END
must be paired with labels (nnnn). When executed the program repeats
Blocks N630 to N660 until the expression at N650 becomes true and
program execution continues at block (1111).
NOTE: When you program GOTO statements do not precede the block
number with the character "N".
For example, GOTO 610 skips to block number N610.
Command Abbreviation
DO ]D
END ]E
GOTO ]G
IF ]I
LOOP ]L
PRINT ]P
THEN ]T
WHILE ]W
Comparative Terms
You can compare variables with variables and variables with constants
using equality and inequality operators.
Inequality Operators
NOT
N760 WHILE (#135 != #137) DO 10
N770 ------------------------
::
N790 END 10
The exclamation mark (!) symbolizes NOT. Therefore, Block N760
instructs the CNC to continue the loop to N790 while the contents of
variables #135 and #137 are not equal (condition true). When the
contents of the variables become equal the expression is false and the
loop terminates.
GREATER THAN
N800 IF (#122 > #134) GOTO 830
N810 --------------------
The symbol (>) symbolizes GREATER THAN. Therefore, Block N800
instructs the control to go to (GOTO) or jump to Block N830 if the
contents of variable #122 are greater than the contents of variable #134
(condition true). If the expression is false, execution continues to Block
N810.
LESS THAN
N840 IF (#123 < #135) GOTO 880
N850 --------------------
The symbol (<) symbolizes LESS THAN. The function is the opposite of
GREATER THAN and the expression is true when the contents of
variable #123 are less than the contents of variable #135.
NOTE: Greater than (>) and less than (<) expressions become false if
the contents of the compared variables are equal.
File Inclusion
Example 1: ["FILENAME.G
File inclusion is a function that allows a subprogram that is not actually
part of the file to be called from the main program, or from another
subprogram in the file.
In this way, a tool change subprogram or a macro can be stored in the .G
directory, and called from any other program that has the proper "file
inclusion" code, which allows the execution of the external subprogram.
Example 1 shows the syntax necessary to "include" a file into another file.
Format: open left bracket ([), then double quote character ("), then the
filename and its extension. This line must display somewhere in the
program that is to call the "included" program.
Example 2:
N1 O23 * TEST.G
N2 M98 P9
N3 T1 * 1.0000 MILL
N4 G0 X-.6 Y.6
N5 Z.1
N6 .
N7 .
.
.
.
N33 M98 P9
N34 T2
N35 * .368 DRILL
N36
.
.
.
N50 M98 P9
N51 M30 O23
N52 ["TOOLCHNG.G
#1000, block skip, description, 17-10 .fxd extension, created, using DXF converter,
#1001–#1009, selective block skip, 16-8
description, 17-11 .G extension
#1030, stock-variable, 9-23 created, using DXF converter, 16-1, 16-8
% Feed, machine status display, 3-10 program names, 10-7
% RPM, machine status display, 3-10 .M extension, created, using DXF converter,
(ALT + H) Hold, hold the program, 14-1 16-1, 16-8
(ALT + S) Start, start up screen, 14-1 .sel extension, created, using DXF converter,
(SHIFT + F1) Msgs 16-8
auto mode screen, 11-3 2-D Line Draw (F4), View Type (F5) screen,
description, 3-14 8-5
single-step screen, 11-3 3-D Line Draw (F5), View Type (F5) screen,
(SHIFT + F10) Quit, cancel unsaved edits, 6-7 8-5
(SHIFT + F10) Shut Down 3-D Perspective View (F2), View Type (F5)
description, 3-13 screen, 8-5
manual mode, 3-5 3-D Shaded (F6), View Type (F5) screen,
shut down screen, 14-1 8-5
(SHIFT + F10) Up Dir, screen illustration, 10-6 4-axis
(SHIFT + F2) Clear MDI, clear MDI history programming conventions, 15-2
page, 3-19 programming, description, 15-1
(SHIFT + F2) Create Dir, description, 10-12 6000i CNC Technical Manual, P/N 627787-
(SHIFT + F3) BG Prog 21, referenced, 3-13, 3-14, 5-62, 5-78,
auto mode screen, 11-3 9-10, 11-3
single-step screen, 11-3 6000i-3X, icon, defined, 1-1
(SHIFT + F3) Undo 6000i-4X, description, 15-1
cancel edits, 6-9 6000i-4X, icon, defined, 1-1
restore, deleted blocks, 6-9
(SHIFT + F4) Log to, program screen, 10-4 A
(SHIFT + F4) Parts Counter abbreviations, command, listed, 17-29
auto mode screen, 11-3 absolute mode
single-step screen, 11-3 center-angle arc, illustration, 7-7
(SHIFT + F4) Redo, restore, canceled edits, change to, (G90), 4-33
6-9 description, 1-6, 3-16
(SHIFT + F5) PLC, referenced, 3-13, 9-10 absolute zero
(SHIFT + F7) OSC defined, 3-16
auto mode screen, 11-3 point, to set, (G92), 4-33
referenced, 3-13 reference point, 1-6, 3-16
single-step screen, 11-3 absolute, (G90), edit help, 7-5
(SHIFT + F7) Show Details, screen accumulated run-time timer, description,
illustration, 10-6 11-10
(SHIFT + F8) Find in Table, description, 9-10 activate
(SHIFT + F8) OLM manual mode, feed, 3-15
auto mode screen, 11-3 manual mode, rapid, 3-15
referenced, 3-13, 9-10 servos, 3-5
single-step screen, 11-3 active soft key, manual screen area, 3-10
(SHIFT + F9) Change Layout, screen address words, typing in, 7-19
illustration, 10-5 Adjust Blk Form (F1)
(SHIFT + F9) SIK, referenced, 3-13 changes the Draw image display to
.DXF extension, 16-1 simulate cut away feature, 8-11
CNC On
DXF converter (M08), See M8, 7-18
description, 16-4 (M8)
file creation, 16-1 control M-Codes, 12-2
files created, 16-8 cooling, cleaning, & lubrication, 7-12
parts counter, description, 11-10 edit help, 7-18
timer, description, 11-10 ready, LED, 3-8
codes, order of execution, 12-4 cooling, cleaning, and lubrication M-function,
command line, manual screen area, 3-9 description, 7-12
command, abbreviations, listed, 17-29 copy
comments, include in program listing, 6-16 program blocks, 6-15
common (global) variables, description, 17-9 program, other directories, 10-10
comparative terms, description, 17-30 corner rounding/chamfering, (G59, G60),
compensated move, ramping, 9-19 4-21
compensation CounterBore drill cycle, (G82)
LEFT, (G41), edit help, 7-5 description, 5-3
left-hand, 9-16 edit help, 7-9
OFF, (G40), edit help, 7-5 screen illustration, 7-24
RIGHT, (G42), edit help, 7-5 create
right-hand, 9-16 new programs, 10-7
computation, storing result, 17-14 subdirectory, description, 10-12
conditional statements, description, 17-27 Create (F2), new program, 10-7
consecutive compensated moves, Create Dir (SHIFT + F2), description, 10-12
illustration, 9-18 cursor, tool page, description, 2-9
console, illustration, 2-1 cutting direction, 5-32
continuous cutting mode. See also, contouring mode
jog, 3-11
jog, Feed mode, 3-17 D
jog, Rapid mode, 3-17 dashboard
move, execute, 3-18 description, 8-3
continuous path mode. See also, contouring Draw screen, illustration, 8-4
mode illustration, 8-4
contouring mode, (G64) decimal points, 7-3
description, 4-24 defining, positions, 1-5
edit help, 7-11 delete
control M-Codes a character, 6-7
description, 12-3 a program, 10-8
listed, table, 12-3 groups of programs, 10-12
conventional program block, 6-8
jog, 3-11 text, 2-9
jog mode, 3-17 Delete
conversion formula (F2), delete a character, 6-7
minutes to decimal, 15-1 (F3), delete, a program, 10-8
seconds to degrees, 15-1 (F7), to delete, text, 2-9
coolant Block (F4), deleting program block, 6-8
Off groups of programs, 10-12
(M09), See M9, 7-18 DELETE key, single value, to clear, 9-5
(M9) desktop icon, off-line software, 14-2
control M-Codes, 12-2 diameter
cooling, cleaning, & lubrication, 7-12 machine status display, 3-10
edit help, 7-18 offset, tool page, 9-15
G153 G172
manual tool diameter preset rectangular profile cycle
defined, 4-2, 5-63 defined, 4-2
description, 5-73 description, 5-36
tool breakage, length and diameter wear edit help, 7-9
protection listing, table, 7-16
defined, 4-2 screen illustration, 7-21
G154 G175
tool breakage, length and diameter wear mill cycle
detection defined, 4-2
defined, 5-63 description, 5-38
description, 5-75 edit help, 7-9
G162 listing, table, 7-16
islands screen illustration, 7-21
defined, 4-2 G176
description, 5-26 EndMill cycle
edit help, 7-10 defined, 4-2
listing, table, 7-16 description, 5-39
G169 edit help, 7-9
irregular pocket cycle listing, table, 7-16
defined, 4-2 screen illustration, 7-22
description, 5-24 G177
edit help, 7-10 plunge circular pocket cycle
listing, table, 7-16 defined, 4-2
programming example, illustration, 5- description, 5-43
30, 5-31 edit help, 7-10
G17 listing, table, 7-16
XY plane position the start hole, 5-44
default plane, 4-31 screen illustration, 7-25
defined, 4-1 G178
edit help, 7-5 plunge rectangular pocket cycle
helical interpolation, example, 4-10 defined, 4-2
illustration, 4-12 description, 5-13, 5-44
listing, table, 7-13 edit help, 7-10
modal, listing, table, 7-13 listing, table, 7-16
spindle probe cycle, 5-77 screen illustration, 7-25
G17, G18, G19 - plane selection, 4-12 G179
G170 drill pattern cycle
face mill cycle defined, 4-2
defined, 4-2 description, 5-11
description, 5-32 edit help, 7-9
edit help, 7-9 listing, table, 7-16
listing, table, 7-16 programming example, illustration, 5-12
screen illustration, 7-20 screen illustration, 7-24
G171 G18
circular profile cycle XZ plane
defined, 4-2 defined, 4-1
description, 5-34 edit help, 7-5
edit help, 7-9 illustration, 4-12
listing, table, 7-16 listing, table, 7-13
screen illustration, 7-20 modal, listing, table, 7-13
auto mode program, 11-7 inside or outside hole or boss center find,
the execution, 11-4 G144
Hold (ALT + S), hold the program, 14-1 defined, 5-78
HOLD key, illustration, 3-8 description, 5-87
hole mill cycle, (G76) inside or outside web or slot center find,
description, 5-18 G145
edit help, 7-10 defined, 5-78
Home (F4) description, 5-89
power on CNC, 3-2 inside part corner find, G143
start up screen, 14-1 defined, 5-78
description, 5-85
I inside profile
icon ramp moves, illustration, 5-36
green, program running, program area ramp position, illustration, 5-34
label, 3-10 inside/outside boss/hole finding, G144, 5-87
red, program hold, program area, 3-10 inside/outside web finding, G145, 5-89
IF - GOTO, conditional statement, 17-27 inspecting, programmed moves, 8-1
IF, conditional statement, 17-27 install, keyboard, 13-1
IN POSN, program area label, 3-10 introduction, 1-1
inch mode format, (G70), 4-32 IPM, defined, 4-37
inch, (G70), edit help, 7-5 irregular pocket cycle, (G169)
incremental description, 5-24
(G90), edit help, 7-5 edit help, 7-10
jog mode, 3-17 islands, (G162)
mode description, 5-26
center-angle arc, illustration, 7-7 edit help, 7-10
change to, (G91), 4-33
J
move, execute, 3-18
positioning, 1-7 jog
inequality operators, description, 17-31 :1, mode, 3-17
In-Position Mode :10, mode, 3-17
G64, cancel (G61), 4-23 :100, mode, 3-17
modal, exact stop check, (G61), 4-23 continuous, 3-11
modal, exact stop, (G61), 4-12 continuous move, execute, 3-18
non-modal, exact stop check, (G9), 4-23 conventional, 3-11
non-modal, exact stop, (G9), 4-12 incremental move, execute, 3-18
insert mode
block, feature, 6-8 changing, 3-17
line, feature, 6-14 handwheel, to select, 3-21
text mode, 2-9 modes, listed, table, 3-17
text, no overwrite, 6-9 moves, description, 3-17
text, with overwrite, 6-10 JOG – key, illustration, 3-8
Insert Jog (F2), initiate jog/return, 11-11
(F3), inserting, a program block, 6-8 JOG + key, illustration, 3-8
(F3), text, no overwrite, 6-9 jog and return. See jog/return
(F3), text, with overwrite, 6-10 JOG key, illustration, 3-7
Block, inserting, a program block, 6-8 jog/return
Off (overwrite) (F8), typing over text, 2-9 description, 11-11
On (F8), inserting text, 2-9 examples, 11-13
inside corner finding, G143, 5-85 soft keys, listed, 11-12
return from reference point, (G29), edit help, DXF, illustration, 16-2
7-11 edit, illustration, 6-2
right hand tool compensation, illustration, EndMill cycle, (G176), screen illustration,
9-17 7-22
rotary axis engrave cycle (G190), screen illustration,
programming conventions, 15-2 7-23
programming, description, 15-1 face mill cycle (G170), illustration, 7-20
programming, in absolute, 15-2 Find (F8), tool page, illustration, 9-9
programming, in incremental, 15-2 Find in Table (F8), tool page, illustration,
Rotate (F3) 9-10
rotate Draw image, 8-13 Find/Replace (F8), illustration, 6-11
screen, illustration, 8-13 Help screen, 7-1
rotation, (G68), edit help, 7-10 Line Number (F8), illustration, 8-9
rotation, scaling, and mirroring, description, manual mode, 3-9
7-10 Manual, illustration, 3-2
RPM, machine status display, 3-10 MDI, illustration, 3-19
Run (F1) mill cycle (G175), screen illustration, 7-21
run Draw program, 8-2 Move Cursor (F5), illustration, 8-15
run program without pause, 8-3 Msgs (F1), Opts (F9) screen, 8-8
running Msgs (SHIFT + F1), 3-14
program, one step at a time, 11-2 Opts (F9), illustration, 8-8
programs, 11-1 Pan (F4), illustration, 8-14
run-time timer, description, 11-10 plunge circular pocket cycle (G177),
screen illustration, 7-25
S plunge rectangular pocket cycle (G178),
saving, edits, 6-7 screen illustration, 7-25
scaling, (G72), edit help, 7-10 Prog Contr.(F9), illustration, 8-10
S-Code Program, illustration, 10-1
description, 12-1 rectangular profile (G172), illustration,
function, description, 12-1 7-21
screens Rotate (F3), illustration, 8-13
Adjust Blk Form (F1), illustration, 8-11 SHIFT Edit, illustration, 6-2
Adjust View (F6), illustration, 8-7 SHIFT Manual, illustration, 3-2, 3-4
Auto, illustration, 11-7 SHIFT Program, illustration, 10-3, 10-4
basic drill cycle (G81), screen illustration, SHIFT Tool page, illustration, 9-2
7-23 Show Details (SHIFT + F7), illustration,
Change Layout (SHIFT + F9), illustration, 10-6
10-5 Single Step, illustration, 11-3
circular profile cycle (G171), illustration, slot cycle (G210), screen illustration, 7-26
7-20 Thread Mill cycle, (G181), screen
circular slot cycle (G211), screen illustration, 7-22
illustration, 7-26 Tool page, illustration, 9-1
CounterBore drill cycle (G82), screen Up Dir (SHIFT + F10), illustration, 10-6
illustration, 7-24 View Type (F5), illustration, 8-5
display gauge from SHIFT Manual, Zoom (F2), illustration, 8-12
illustration, 3-3 scroll, feature, 6-14
Display Program (F8), illustration, 8-4 search, for specific text, 6-11
Draw (real-time mode), 11-8 secondary soft keys
Draw, illustration, 8-2 Auto mode screen, listed, 11-3
drill pattern cycle (G179), screen Manual screen, listed, 3-12
illustration, 7-24 Program screen, listed, 10-3, 10-4
stroke limit, (G22), edit help, 7-11 diameter, temporary change, 9-23
subdirectory, creating, description, 10-12 edge, 9-16
subprogram linear-to-circular move, illustration, 9-24
addresses, 5-53 linear-to-linear move, illustration, 9-24
call, (M98) machine status display, 3-10
control M-Codes, 12-3 management, description, 9-1
edit help, 7-18 motion, tool compensation, 9-24
description, 5-52 mount (M06), See mount (M6), 7-18
end of, (M99) mount (M6)
control M-Codes, 12-3 control M-Codes, 12-2
edit help, 7-18 edit help, 7-18
file inclusion, description, 17-31 tool activation, 9-11
loop, repetition, 5-53 tool change, 7-12
nesting, 5-54 mount, TOOL, listed, 7-13
P-Code, M99, end of subprogram, 5-57 number, to find, 9-4
programming offset cancel, illustration, 9-26
example, 5-56 path, compensation, (G41, G42), 9-16
illustration, 5-55 paths during tool compensation,
multiple parts, 5-57 illustration, 9-25
subroutines, pockets with islands, example, radius compensation, description, 7-5
5-27 Tool (F7), jog/return screen, description,
symbol variables, description, 17-23 11-12
system variables, listed, 17-8 tool breakage, length and diameter wear
detection, G154
T defined, 5-63
tapping canned cycle, (G84), 5-5 description, 5-75
tapping cycle, (G84), edit help, 7-9 tool compensation
T-Code, description, 9-11 acute angles, around, 9-27
T-Code, tool page offset, 9-15 acute angles, around, illustration, 9-27
Teach (F9) cancel mode, (G40), 9-22
offsets in tool page, enter, 9-13 tool motion, 9-24
tool length offsets, setting, 9-14 tool diameter
tool probe calibration cycle, 5-64 compensation
teach mode, 3-17 ball end mill, using, 9-21
temporary, change, tool diameter, 9-23 left-hand, (G41), 9-16
text, deleting, 2-9 plane you select, 1-8
THEN, conditional statement, 17-27 right-hand, (G42), 9-17
thread mill cycle, (G181) to measure, 5-74
description, 5-40 tool length and diameter offset preset, G151
edit help, 7-9 defined, 5-62
screen illustration, 7-22 description, 5-66
tool offset, modification
timer permanent, description, 17-2
CNC, description, 11-10 permanent, format, 17-3
machine status display, 3-10 programming, example, 17-4
TLO. See tool-length offset temporary, description, 17-2
TLO, defined, 5-62, 9-12 temporary, format, 17-3
tool tool page
activation, description, 9-11 attributes, listed, 9-4
center, on path, 9-16 Bin (F4) optional attributes, listed, 9-8
definition block, defined, 9-11 cursor, description, 2-9
wired probe, spindle, description, 5-81 Z work offset update feature, using, 5-95
wireless probe, spindle, description, 5-81 Z0, quill position, 9-12
Z-axis
X description, 1-4
X0, Y0, Z0 Position, 1-5 move startup, 9-22
X-axis, description, 1-4 part zero, 9-12
XY plane (G17), 4-12 position display, 9-12
XY plane (G17), edit help, 7-5 zero degree reference, 1-7
XY plane (G17), spindle probe cycles, 5-77 zero set (G92), edit help, 7-11
XZ plane (G18), 4-12 ZFirstPickFeedRate_Fast, description, 5-67
XZ plane (G18), edit help, 7-5 ZFirstPickFeedRate_Medium, description,
5-67
Y ZFirstPickFeedRate_Slow, description, 5-67
Y-axis, description, 1-4 Zoom (F2), screen, illustration, 8-12
YZ plane (G19), 4-12 Zoom (F2), zoom display Draw image, 8-12
YZ plane (G19), edit help, 7-5 ZRapidToStartPositionFromHome,
description, 5-68
Z ZRetractAmount, description, 5-70
Z position, enter, manually, 9-15