Anilam 4200T User manual

www.anilam.com
4200T CNC
Programming and
Operations Manual

4200T CNC Programming and Operations Manual
P/N 70000412F - Warranty
All rights reserved. Subject to change without notice. iii
31-July-05
Warranty
ANILAM warrants its products to be free from defects in material and workmanship for one (1)
year from date of installation. At our option, we will repair or replace any defective product upon
prepaid return to our factory.
This warranty applies to all products when used in a normal industrial environment. Any
unauthorized tampering, misuse or neglect will make this warranty null and void.
Under no circumstances will ANILAM, any affiliate, or related company assume any liability for
loss of use or for any direct or consequential damages.
The foregoing warranties are in lieu of all other warranties expressed or implied, including, but
not limited to, the implied warranties of merchantability and fitness for a particular purpose.
The information in this manual has been thoroughly reviewed and is believed to be accurate.
ANILAM, Inc. reserves the right to make changes to improve reliability, function or design
without notice. ANILAM, Inc. assumes no liability arising out of the application or use of the
product described herein. All rights reserved. Subject to change without notice.
Copyright 2005 ACU-RITE COMPANIES, Inc.

4200T CNC Programming and Operations Manual
P/N 70000412F - Contents
All rights reserved. Subject to change without notice. v
31-July-05
Section 1 - Programming Concepts
Introduction ......................................................................................................................................1-1
Programs ......................................................................................................................................1-1
Axis Descriptions..............................................................................................................................1-2
Z Axis............................................................................................................................................1-2
C Axis ...........................................................................................................................................1-2
X Axis ...........................................................................................................................................1-3
Part Zero Definition ..........................................................................................................................1-3
Polar Coordinates ............................................................................................................................1-4
Absolute Positioning.........................................................................................................................1-5
Incremental Positioning....................................................................................................................1-6
Diameter or Radius Programming....................................................................................................1-6
Developing Part Programs ...............................................................................................................1-7
Section 2 - CNC Console and Software Basics
CNC Console ...................................................................................................................................2-1
Keypad.............................................................................................................................................2-2
Alphanumeric Keys.......................................................................................................................2-3
Editing Keys..................................................................................................................................2-5
Using the Keypad to Program Moves ...........................................................................................2-5
Soft Keys ......................................................................................................................................2-6
Accessing Keypad Commands Using a PC Keyboard (Optional) .................................................2-6
Software Basics ...............................................................................................................................2-6
Pop-up Menus ..............................................................................................................................2-7
Screen Saver................................................................................................................................2-7
Highlight Bars ...............................................................................................................................2-7
Cursors .........................................................................................................................................2-7
Clearing Entries ............................................................................................................................2-7
Operator Prompts .........................................................................................................................2-7
Typeover and Insert Modes ..........................................................................................................2-8
Deleting Text.................................................................................................................................2-8
Messages/Error Messages ...........................................................................................................2-8
Section 3 - Manual Operation and Machine Setup
Manual Panel ...................................................................................................................................3-1
Manual Panel Keys.......................................................................................................................3-2
Manual Panel LEDs ......................................................................................................................3-3
Manual Mode Screen .......................................................................................................................3-4
Machine Status Display Area Labels ............................................................................................3-5
Program Area Labels....................................................................................................................3-6
Powering on the CNC ......................................................................................................................3-6
Shutting Down the CNC ...................................................................................................................3-7
Setting/Resetting the Emergency Stop (E-STOP)............................................................................3-7
Activating/Resetting the Servos .......................................................................................................3-7

4200T CNC Programming and Operations Manual
P/N 70000412F - Contents
vi All rights reserved. Subject to change without notice.
31-July-05
Manual Mode Settings .....................................................................................................................3-7
Activating Manual Mode Rapid or Feed........................................................................................3-8
Adjusting the Feedrate..................................................................................................................3-8
Adjusting Rapid Move Speed........................................................................................................3-9
Setting Absolute Zero .................................................................................................................3-10
Part Zero.....................................................................................................................................3-10
Jog Moves......................................................................................................................................3-11
Changing the Jog Mode..............................................................................................................3-11
Selecting an Axis ........................................................................................................................3-11
Jogging the Machine (in Increments)..........................................................................................3-12
Jogging the Machine (Continuous Moves)..................................................................................3-12
Manual Data Input (MDI) Mode ......................................................................................................3-12
Using Manual Data Input Mode ..................................................................................................3-13
Handwheel Operation ....................................................................................................................3-13
Operating a Handwheel Mounted on the Manual Panel .............................................................3-13
Operating Handwheels Mounted on the Machine ....................................................................... 3-14
Section 4 - Preparatory Functions: G-Codes
Preparatory Functions: G-Codes......................................................................................................4-1
Rapid Traverse (G0) .....................................................................................................................4-3
Linear Interpolation (G1)...............................................................................................................4-4
Angular Motion Programming Example ........................................................................................4-5
Circular Interpolation (G2 and G3)...............................................................................................4-6
Partial Arcs ...................................................................................................................................4-8
Dwell (G4).....................................................................................................................................4-8
Ellipse (G5)...................................................................................................................................4-9
Non-modal Exact Stop Check (G9)............................................................................................. 4-10
Setting Software Limits (G22).....................................................................................................4-11
Maximum Spindle Speed (G24).................................................................................................. 4-12
Probe Move (G31) ......................................................................................................................4-13
Thread Cutting (G33)..................................................................................................................4-13
Offsets (Work Coordinate System Select) (G53) ........................................................................4-14
Modal Corner Rounding/Chamfering (G59) ................................................................................4-16
Cancel Modal Corner Rounding (G60) .......................................................................................4-18
In-Position Mode (Exact Stop Check) (G61)...............................................................................4-18
Contouring Mode (Cutting Mode) (G64) .....................................................................................4-19
Using Macros (G65, G66, G67) .................................................................................................4-20
Inch Mode (G70) or MM Mode (G71)..........................................................................................4-22
Absolute Mode (G90) or Incremental Mode (G91)......................................................................4-22
Presetting the Axes (G92)...........................................................................................................4-24
Cutting Feedrates in Feed per Minute (G94) ..............................................................................4-25
Cutting Feedrates in Feed Per Revolution (G95)........................................................................4-25
Setting Spindle Speed to Constant Surface Speed (G96) .......................................................... 4-26
Setting Spindle Speed to Constant Revolutions Per Minute Speed (G97)..................................4-26
Section 5 - Canned Cycles
Programming a Z-Axis Turning/Boring Cycle with a Defined Profile (G73) ......................................5-1
Programming an X-Axis Facing/Boring Cycle with Defined Profile (G74) ........................................5-4
Programming a Z-Axis Rough Turning or Boring Cycle (G76) .........................................................5-7
Programming an X-Axis Radial (Facing) Roughing Cycle (G77)......................................................5-9

4200T CNC Programming and Operations Manual
P/N 70000412F - Contents
All rights reserved. Subject to change without notice. vii
31-July-05
Programming a Pecking Cycle (G78).............................................................................................5-11
Programming a Chip Break Cycle (G79)........................................................................................5-12
Programming a Longitudinal Grooving Cycle (G81).......................................................................5-13
Programming a Radial Grooving Cycle (G82) ................................................................................ 5-15
Types of Threading ........................................................................................................................5-17
Cutting Longitudinal Threads with Canned Cycles (G83, Uni-directional) ..................................5-18
Cutting Longitudinal Threads with Canned Cycles (G84, Bi-directional).....................................5-20
Cutting Radial Threads with Canned Cycles (G85, Uni-directional)............................................5-23
Cutting Radial Threads with Canned Cycles (G86, Bi-directional)..............................................5-26
Tapping a Hole with a Canned Cycle (G87) ...................................................................................5-28
Programming a Boring Cycle (G88) ...............................................................................................5-30
Lathe Tool Probe Cycles (Option) ..................................................................................................5-32
Tool Probe G-code Cycle Designations......................................................................................5-33
Macro Variable and System Variable Settings............................................................................5-33
Probe Orientation........................................................................................................................5-35
Lathe Tool Probe G-code Cycle Designations ............................................................................5-35
Description of Tool Probe Cycles................................................................................................5-37
Section 6 - Program Editor
Activating the Program Editor...........................................................................................................6-1
Activating the Edit Mode from the Manual Screen ........................................................................6-1
Activating the Edit Mode from the Program Directory ...................................................................6-1
Activating the Edit Mode from Draw Graphics ..............................................................................6-1
Edit Soft Keys...................................................................................................................................6-3
Editing Shift Soft Keys ..................................................................................................................6-4
Deleting a Character ........................................................................................................................6-4
Inserting Text to Overwrite Previous Text ........................................................................................6-4
Inserting Text without Overwriting Previous Text..........................................................................6-4
Deleting a Program Block.................................................................................................................6-5
Page Up/Down through the Program Listing...................................................................................6-5
Going to a Line of the Program Listing.............................................................................................6-6
Advancing to the Beginning or End of a Block .................................................................................6-6
Advancing to the First or Last Block of a Program ...........................................................................6-6
Searching the Program Listing for Selected Text .............................................................................6-7
Inserting a Blank Line in the Program Listing...................................................................................6-7
Restoring a Block .............................................................................................................................6-8
Replacing Typed Text with New Text...............................................................................................6-8
Abbreviating Statements ..................................................................................................................6-9
Marking (Highlighting) Programming Blocks ..................................................................................6-10
Unmarking Program Blocks ........................................................................................................6-10
Canceling Edits to a Program Block...............................................................................................6-10
Scrolling Through the Program Listing ...........................................................................................6-10

4200T CNC Programming and Operations Manual
P/N 70000412F - Contents
viii All rights reserved. Subject to change without notice.
31-July-05
Copying Program Blocks................................................................................................................6-11
Printing a Portion of a Program ......................................................................................................6-12
Pasting Copied Blocks into a Program Listing................................................................................ 6-12
Numbering (or Re-numbering) Program Blocks .............................................................................6-13
Writing Blocks to Another Program ................................................................................................6-13
Reading a Program into Another Program ....................................................................................6-14
Recording Keystrokes ....................................................................................................................6-14
Playing Recorded Keystrokes.....................................................................................................6-15
Repeating a Command or Key .......................................................................................................6-15
Printing an Entire Program Listing..................................................................................................6-15
Accessing the Most Recently Used Programs ...............................................................................6-16
Opening Another Program from the Program Listing .....................................................................6-16
Saving Edits ...................................................................................................................................6-16
Canceling Unsaved Edits ...............................................................................................................6-17
Including Comments in a Program Listing......................................................................................6-17
Section 7 - Edit Help
Edit Help Menu.................................................................................................................................7-4
Edit Help Soft Keys.......................................................................................................................7-8
Help Template Menu........................................................................................................................7-9
Help Graphic Screens ....................................................................................................................7-11
Using Help Graphic Screens to Enter Program Blocks ..................................................................7-13
Available Help Graphic Screens.....................................................................................................7-14
Programming Modal G-Codes in Edit Help.................................................................................7-37
Programming LINE Moves in Edit Help ......................................................................................7-38
Angle Direction for Front and Rear Tool Posts ...........................................................................7-39
Using Angles to Program Moves ................................................................................................7-41
Programming MULTIPLE Move Commands in Edit Help ...........................................................7-42
Section 8 - Draw Mode
Introduction ......................................................................................................................................8-1
Starting Draw ...................................................................................................................................8-2
Draw Screen Description..................................................................................................................8-2
Putting Draw in Hold .....................................................................................................................8-3
Restarting Draw When in Hold......................................................................................................8-3
Canceling Draw ............................................................................................................................8-3
Draw Parameters .............................................................................................................................8-4
Tool On or Off ...............................................................................................................................8-4
Drawing Compensated Moves......................................................................................................8-5
Showing Rapid Moves ..................................................................................................................8-5
Setting Grid Line Type ..................................................................................................................8-5
Setting Grid Size...........................................................................................................................8-6
Putting Draw in Motion, S.Step, or Auto Mode..............................................................................8-6

4200T CNC Programming and Operations Manual
P/N 70000412F - Contents
All rights reserved. Subject to change without notice. ix
31-July-05
Automatic Draw Restart................................................................................................................8-7
Erasing the Draw Display..............................................................................................................8-7
Running Draw for Selected Blocks ...............................................................................................8-7
Starting Draw at a Specific Block..................................................................................................8-8
Ending Draw at a Specific Block...................................................................................................8-8
Adjusting Draw Display ....................................................................................................................8-8
Fitting the Display to the Viewing Window ....................................................................................8-9
Halving Display Size .....................................................................................................................8-9
Doubling Display Size...................................................................................................................8-9
Scaling the Display by a Factor ....................................................................................................8-9
Using the Window Zoom.............................................................................................................8-10
Erasing Display...........................................................................................................................8-10
Changing the Viewing Area without Changing the Scale............................................................8-11
Section 9 - Tool Page and Tool Management
Activating the Tool Page ..................................................................................................................9-1
Using the Tool Page.........................................................................................................................9-1
Entering Values in the Tool Page .................................................................................................9-3
Adjusting a Single Value...............................................................................................................9-3
Finding Tools by Number .................................................................................................................9-3
Clearing Tool Information (Delete Row) ...........................................................................................9-4
Clearing a Value from a Column...................................................................................................9-4
Clearing the Whole Tool Page ......................................................................................................9-4
Tool-Length Offsets..........................................................................................................................9-4
Setting Tool-Length Offsets ..........................................................................................................9-5
Entering Tool Page TLO’s Using the Calibration Function............................................................9-6
Entering Tool Page TLO’s Manually .............................................................................................9-6
Tool Offset Modification ................................................................................................................9-7
Activating a Tool Number in the Manual Mode.................................................................................9-8
Deactivating TLO’s in the Manual Mode .......................................................................................9-8
Tool Nose Radius (TNR) Compensation..........................................................................................9-8
Selecting a Tool Location Code ..................................................................................................9-11
Tool Nose Radius Programming Examples ................................................................................9-12
Left of Path TNR Program (G41) ................................................................................................9-13
Right of Path TNR Program (G42)..............................................................................................9-15
Canceling Tool Nose Radius Compensation (G40) ....................................................................9-17
Choosing the Correct TNR Compensation .................................................................................9-18
Changing TNR Compensation in a Program...............................................................................9-18
Motion of Tool during TNR Compensation..................................................................................9-20
Compensation around Acute Angles ..........................................................................................9-21
Changing the Numbers of Look Ahead Blocks ...........................................................................9-22
Wear Offsets ..................................................................................................................................9-22
Setting Wear Offset Adjustment While Running a Program........................................................9-23
Section 10 - Program Management
Changing the Program Directory’s Display.....................................................................................10-1
Creating a New Part Program ........................................................................................................10-2
Choosing Program Names..........................................................................................................10-2

4200T CNC Programming and Operations Manual
P/N 70000412F - Contents
x All rights reserved. Subject to change without notice.
31-July-05
Selecting a Program for Running ...................................................................................................10-2
Selecting a Program for Editing and Utilities ..................................................................................10-3
Listing a Program ...........................................................................................................................10-3
Deleting a Program ........................................................................................................................10-3
Logging to Other Drives .................................................................................................................10-4
Marking and Unmarking Programs.................................................................................................10-5
Marking Programs ......................................................................................................................10-5
Unmarking Marked Programs .....................................................................................................10-5
Marking All Programs .................................................................................................................10-5
Unmarking All Marked Programs ................................................................................................10-5
Deleting Groups of Programs.........................................................................................................10-6
Restoring Programs .......................................................................................................................10-6
Copying Programs to Floppy Disks ................................................................................................10-6
Renaming Programs ......................................................................................................................10-7
Printing Programs ..........................................................................................................................10-7
Formatting Floppy Disks.................................................................................................................10-8
Checking Disks for Lost Program Fragments................................................................................. 10-8
Displaying System Information.......................................................................................................10-9
Copying Programs from/to Unspecified Locations .......................................................................10-10
Renaming Programs from/to Unspecified Locations ....................................................................10-10
Printing Programs from Unspecified Locations ............................................................................10-11
Creating Subdirectories................................................................................................................10-11
Deleting an Unspecified Program.................................................................................................10-12
Listing an Unspecified Program ...................................................................................................10-12
Editing an Unspecified Program................................................................................................... 10-12
Optimizing Your Hard Disk...........................................................................................................10-13
Accessing the Disk Optimizer ...................................................................................................10-13
Maximizing Program Storage Space............................................................................................10-14
Section 11 - Running Programs
Running a Program One Step at a Time ........................................................................................11-1
Toggling Between Motion and Single-Step Mode .......................................................................11-2
Holding or Canceling a Single-Step Run ....................................................................................11-2
Single-Step Execution of Selected Program Blocks.......................................................................11-3
Using Arrow Keys to Select Starting Block .................................................................................11-3
Using Search to Select Starting Block ........................................................................................11-3
Switching from Single-Step to Auto ............................................................................................11-3
Position Display..............................................................................................................................11-4
Automatic Program Execution........................................................................................................11-4
Holding or Canceling an Auto Run..............................................................................................11-5

4200T CNC Programming and Operations Manual
P/N 70000412F - Contents
All rights reserved. Subject to change without notice. xi
31-July-05
Automatic Execution Starting at a Specific Block ...........................................................................11-5
Using Arrow Keys to Select Starting Block .................................................................................11-5
Using SEARCH to Select Starting Block.....................................................................................11-5
Clearing a Halted Program.............................................................................................................11-5
Using Draw while Running Programs............................................................................................. 11-6
Setting the CNC to Display an Enlarged Position Display..............................................................11-6
Teach Mode ...................................................................................................................................11-7
Initiating Teach-In .......................................................................................................................11-7
Soft Keys of Teach-In .................................................................................................................11-7
Inputting Data into a Program .....................................................................................................11-7
Canceling Teach Mode...............................................................................................................11-8
About Teach Mode .....................................................................................................................11-8
Parts Counter and Program Timer .................................................................................................11-9
Background Mode ........................................................................................................................11-10
Section 12 - S Function, M Functions, and C-Axis Programming
Introduction ....................................................................................................................................12-1
Spindle Speed Control (S-Function)...............................................................................................12-1
Miscellaneous Functions (M-Codes) ..............................................................................................12-2
Control M-Codes ............................................................................................................................12-2
Order of Execution......................................................................................................................12-3
C-Axis Programming ......................................................................................................................12-3
Enabling C-Axis Programming Mode..........................................................................................12-3
Disabling C-Axis Programming Mode .........................................................................................12-3
C-Axis Jog ..................................................................................................................................12-4
Programming C-Axis Feedrate ...................................................................................................12-4
Synchronizing/Unsynchronizing C-Axis ......................................................................................12-4
Section 13 - Simplified Command Interface (SCI) Mode
Activating the SCI Mode.................................................................................................................13-1
SCI Mode Soft Keys.......................................................................................................................13-3
Activating the SHIFT SCI Soft Key Menu ...................................................................................13-3
Deactivating the SCI Mode.............................................................................................................13-4
Canceling an SCI Command..........................................................................................................13-4
Canceling a Running SCI Command ............................................................................................. 13-4
Clearing Messages ........................................................................................................................13-4
Clearing an Entry Field...................................................................................................................13-4
Returning to the Software Selection Screen...................................................................................13-4
Exiting SCI Mode ...........................................................................................................................13-5
Commanding Moves in SCI Mode..................................................................................................13-5
Performing Rapid Moves (G00) .................................................................................................. 13-5
Activating and Changing a Tool ..................................................................................................13-5
Performing Line Moves (G01).....................................................................................................13-6

4200T CNC Programming and Operations Manual
P/N 70000412F - Contents
xii All rights reserved. Subject to change without notice.
31-July-05
Performing Arc Moves (G02 or G03) ..........................................................................................13-6
Setting Software Limits (G22).....................................................................................................13-7
Homing the Machine (G28).........................................................................................................13-9
Making a Rough Turning Cut (G76)............................................................................................13-9
Making a Rough Facing Cut (G77) ...........................................................................................13-10
Cutting Threads (G83) ..............................................................................................................13-11
Activating Absolute (G90) or Incremental (G91) Mode .............................................................13-12
Setting the Feedrate to Feed per Minute (G94) ........................................................................13-12
Setting the Feedrate to Feed per Revolution (G95) .................................................................. 13-13
Setting Spindle Speed to Constant Surface Speed (G96) ........................................................ 13-13
Setting the Spindle Speed to Revolutions per Minute (G97).....................................................13-14
Slave Mode ..................................................................................................................................13-14
Cutting a Taper .........................................................................................................................13-15
Cutting a Chamfer.....................................................................................................................13-16
Cutting a Radius .......................................................................................................................13-17
Section 14 - Shape Editor
Activating the Shape Editor............................................................................................................14-2
Shape Terminology ........................................................................................................................14-3
Using the Pointer............................................................................................................................14-3
Selecting Editing Tools...................................................................................................................14-4
Line Tools.......................................................................................................................................14-6
Arc Tools........................................................................................................................................14-8
Arc Tools........................................................................................................................................14-9
Chamfering Corners.......................................................................................................................14-9
Example #1, Creating a Basic Shape...........................................................................................14-10
Reversing an Arc’s Direction........................................................................................................14-13
Deleting a Shape..........................................................................................................................14-13
Projecting Line Segments (Restoring Sharp Corners) ................................................................. 14-14
Joining Line Segments.................................................................................................................14-14
Importing Shapes from Other Programs.......................................................................................14-14
Deleting a Segment......................................................................................................................14-15
Changing the Shape Editor View .................................................................................................14-15
Viewing a List of Shape Segment Details ....................................................................................14-15
Deactivating and Activating Shapes.............................................................................................14-16
Using Construction Geometry ......................................................................................................14-16
Accessing Geometry Tools ..........................................................................................................14-16
Point Tools ...................................................................................................................................14-17
Line Tools.....................................................................................................................................14-18
Circle Tools ..................................................................................................................................14-19
Example #2, Creating Construction Geometry and Chaining it Into a Shape...............................14-20
Creating Construction Geometry ..............................................................................................14-20

4200T CNC Programming and Operations Manual
P/N 70000412F - Contents
All rights reserved. Subject to change without notice. xiii
31-July-05
Chaining Geometry Elements to Create a Shape ........................................................................ 14-26
Viewing a Listing of Geometry Elements......................................................................................14-28
Deleting Geometry Elements .......................................................................................................14-28
Deleting All Geometry Elements ..................................................................................................14-29
Activate/Deactivating Geometry Elements ...................................................................................14-29
Shape Editor Hot Keys.................................................................................................................14-29
Exiting the Shape Editor...............................................................................................................14-30
Executing Shapes in a Program...................................................................................................14-30
Managing Shape Files .................................................................................................................14-31
Naming Shape Files .................................................................................................................14-31
Viewing Shape Files in the Program Directory..........................................................................14-31
Deleting Shape Files.................................................................................................................14-32
Backing Up Shapes......................................................................................................................14-32
Shape Editor Settings ..................................................................................................................14-32
Verifying Shapes ..........................................................................................................................14-33
Section 15 - Communication
Introduction ....................................................................................................................................15-1
Installing the RS-232 Cable............................................................................................................15-1
Accessing the Communication Utilities ..........................................................................................15-2
Setting Communication Parameters...............................................................................................15-3
Communication Port ...................................................................................................................15-3
Baud ...........................................................................................................................................15-3
Parity ..........................................................................................................................................15-4
Data Bits .....................................................................................................................................15-4
Stop Bits .....................................................................................................................................15-4
Settings.......................................................................................................................................15-4
Data Type ...................................................................................................................................15-4
Testing the Data Link .....................................................................................................................15-5
Activating the Test Link Screen......................................................................................................15-5
Setting Test Link Display Modes.................................................................................................15-5
Testing the Link ..........................................................................................................................15-6
Clearing the Receive Area..........................................................................................................15-6
Clearing the Transmit Area.........................................................................................................15-6
Sending a Program ........................................................................................................................15-6
Receiving a Program......................................................................................................................15-6
Setting the Transmission and Receiving Display ...........................................................................15-7
Holding Transmission/Receiving Operations ..............................................................................15-7
Using Data Control (DC) Codes .....................................................................................................15-8
Using DC Codes in Receive Mode .............................................................................................15-8
Using DC Codes in Send Mode .................................................................................................. 15-8

4200T CNC Programming and Operations Manual
P/N 70000412F - Contents
xiv All rights reserved. Subject to change without notice.
31-July-05
Section 16 - Advanced Programming Features
Block Separator..............................................................................................................................16-1
Modifiers.........................................................................................................................................16-1
Expressions and Functions ............................................................................................................16-2
System Variables ...........................................................................................................................16-3
User Variables................................................................................................................................16-4
Local Variables ...........................................................................................................................16-4
Common (Global) Variables........................................................................................................16-4
Read Only Variables...................................................................................................................16-5
Block Skip Variables ...................................................................................................................16-5
Setting Selective Block Skips......................................................................................................16-6
Parameters and Variable Registers ...............................................................................................16-6
Contents of Variables.....................................................................................................................16-7
Setting and Transferring Variables.................................................................................................16-7
Setting Variables and Direct Transfer ......................................................................................... 16-7
Indirect Transfer..........................................................................................................................16-8
Storing the Results of Computation................................................................................................16-9
Parametric Programs .....................................................................................................................16-9
Applications of Parametric Programming .....................................................................................16-10
Families of Parts .......................................................................................................................16-10
Complex Geometric Shapes .....................................................................................................16-10
Parametric Programming Versus Subprogramming .................................................................16-10
Call Statements ........................................................................................................................16-10
User Macro (G65, G66, G67) .......................................................................................................16-11
Programming Macros ...............................................................................................................16-11
Setting and Passing Parameters ..............................................................................................16-12
Probe Move (G31)........................................................................................................................16-13
Conditional Statements ................................................................................................................16-14
Unconditional: The LOOP repeat ................................................................................................16-15
Abbreviating Statements...........................................................................................................16-16
Logical Terms ...........................................................................................................................16-17
Comparative Terms ..................................................................................................................16-18
File Inclusion ................................................................................................................................16-19
Inclusion File Requirements......................................................................................................16-19
Inclusion File Formats...............................................................................................................16-19
Sample Parametric Program ........................................................................................................16-20
Section 17 - Machine Software and Peripherals Installation
Passwords......................................................................................................................................17-1
Machine Software Installation ........................................................................................................17-1
Printer Installation ..........................................................................................................................17-1
Keyboard Installation......................................................................................................................17-1

4200T CNC Programming and Operations Manual
P/N 70000412F - Contents
All rights reserved. Subject to change without notice. xv
31-July-05
Keypad Equivalent Keyboard Keys ................................................................................................17-2
Section 18 - Off-line Software
Passwords......................................................................................................................................18-1
Exiting the Software .......................................................................................................................18-1
Windows Off-line Software Installation...........................................................................................18-3
Running Off-line Software from Windows ...................................................................................18-3
System Settings .............................................................................................................................18-3
Maximum Memory Allocated.......................................................................................................18-3
Disabled Features.......................................................................................................................18-4
Section 19 - Sample Programs
Introduction ....................................................................................................................................19-1
Sample Program #1 .......................................................................................................................19-2
Sample Program #2 .......................................................................................................................19-4
Sample Program #3 .......................................................................................................................19-6
Sample Program #4 .......................................................................................................................19-8
Sample Program #5 .....................................................................................................................19-10
Sample Program #6 .....................................................................................................................19-12
Sample Program #7 .....................................................................................................................19-14
Sample Program #8 .....................................................................................................................19-16
Sample Program #9 .....................................................................................................................19-18
Index ....................................................................................................................................... Index-1

4200T CNC Programming and Operations Manual
P/N 70000412F - Programming Concepts
All rights reserved. Subject to change without notice. 1-1
31-July-05
Section 1 - Programming Concepts
Introduction
This section contains programming concepts for the beginning
programmer. It contains terminology and concepts that should be
mastered before writing programs.
Programs
A program is a precise sequence of machine instructions. Each program
consists of blocks of information that instruct the movements and
sequence of events to machine a workpiece. These blocks include all
necessary events, including activating the spindle, coolant, tool selection,
and all axis movement required to cut the workpiece in a safe and
productive manner.
Every program is given a unique name for identification. Programs are
stored in the CNC’s memory and accessed from the CNC’s Program
Directory. You can create, delete, undelete, copy, and rename programs
in the CNC’s Program Directory.

4200T
CNC Programming and Operations Manual
P/N 70000412F - Programming Concepts
1-2 All rights reserved. Subject to change without notice.
31-July-05
Axis Descriptions
Z Axis
Refer to Figure 1-1. Motion along the Z-axis is linear. Positive Z motion
is toward the tailstock and negative Z motion is toward the headstock.
C Axis
Refer to Figure 1-1. The C-axis is reserved for rotary spindle motion,
which can be clockwise or counterclockwise.
The builder determines C axis capability.
C+
X+ Z+
Figure 1-1, Axes, Directions of Motion

4200T CNC Programming and Operations Manual
P/N 70000412F - Programming Concepts
All rights reserved. Subject to change without notice. 1-3
31-July-05
X Axis
Refer to Figure 1-2. In relation to the tool, positive X motion is away from
the centerline of the part. Negative X motion is toward the centerline of
the part. If the tool passes the centerline, the value of X will be negative.
Positive X direction varies, depending on whether a Front or Rear Tool
Post is used.
X+ X-
X- X+
Z+ Z+
Z- Z-
PART ZERO (X0, Z0) PART ZERO (X0, Z0)
C
H
U
C
K
C
H
U
C
K
toolpost
Fr o n t Tool Post Re a r Tool Post
Figure 1-2, X-Axis Front/Rear Tool Post Directions of Motion
Part Zero Definition
NOTE: In general, all drawings in this manual assume a front tool post
configuration. The builder determines the tool post
configuration.
Refer to Figure 1-3. The intersection of the zero X and zero Z point is
the reference point that defines part zero. In X, this is usually at the part
centerline; in Z, it is at the front face of the part.
Z- Z+
X-, Z+
X+, Z+
X+, Z-
X-, Z-
QUADRANT
Part Zero
Reference Poin
t
C
H
U
C
K
X+
X
-
Figure 1-3, Part Zero
The reference point for moves in Absolute Mode is Part Zero; in
Incremental Mode, it is the current position.

4200T
CNC Programming and Operations Manual
P/N 70000412F - Programming Concepts
1-4 All rights reserved. Subject to change without notice.
31-July-05
Example (using front tooling and Incremental Mode): In X, to
travel 2 inches toward the part centerline (negative direction), program
X-4. (In Incremental Mode, an X-4 command moves the tool 2 inches
per side.) In Z, to travel 6 inches towards the chuck (negative
direction), program Z-6.
Polar Coordinates
Refer to Figure 1-4. If it is inconvenient to use X and Z coordinates, you
can use the Polar Coordinate System. Polar Coordinates can only define
points that lie on a single plane. Polar coordinates use the distance from
the origin and an angle to locate points.
POLAR
Figure 1-4, Polar Coordinate System

4200T CNC Programming and Operations Manual
P/N 70000412F - Programming Concepts
All rights reserved. Subject to change without notice. 1-5
31-July-05
Absolute Positioning
Refer to Figure 1-5. When the CNC is in the Absolute Mode, all positions
are measured from Absolute Zero. The Absolute Zero Reference, also
called Part Zero, is not a fixed position on the machine; you select the
point.
ABSOLUTE
Figure 1-5, Absolute Positioning
You can set the Absolute Zero (X0, Z0) anywhere. Absolute Zero
Reference is frequently at a position that makes it easy to use blueprint
dimensions.
NOTE: In Absolute Mode, a move to X0, Z0 will move the machine to
Absolute Zero.

4200T
CNC Programming and Operations Manual
P/N 70000412F - Programming Concepts
1-6 All rights reserved. Subject to change without notice.
31-July-05
Incremental Positioning
Refer to Figure 1-6. Incremental positions are measured from the
machine’s current position. This is convenient for performing an
operation at regularly spaced intervals.
INCREMEN
Figure 1-6, Incremental Positioning
NOTE: If an Incremental command to X0, Z0 is programmed, the CNC
remains at the current position.
Diameter or Radius Programming
NOTE: All program examples in this manual use Diameter
Programming.
Refer to Figure 1-7, Diameter and Radius Programming. X Dimensions
can be given in Diameter or Radius Mode:
Diameter X absolute dimensions are given as diameter values. X
incremental dimensions are given as the diametric
distance from the current diameter. X arc centers (I) are
always given as actual distances.
Radius X absolute dimensions are given as radius values. X
incremental dimensions are given as distance from the
current position.
Since X0 is usually the centerline of the workpiece, diameter
programming can simplify the programming of the workpiece.

4200T CNC Programming and Operations Manual
P/N 70000412F - Programming Concepts
All rights reserved. Subject to change without notice. 1-7
31-July-05
R1
R2
R3
D1 D2 D3
DIARAD
R=Radius
D=Diameter
Figure 1-7, Diameter and Radius Programming
The default, set by the machine builder, is usually Diameter.
NOTE: In canned cycles (with the exception of area clearance), all X
values are given as radial, regardless of whether diameter or
radius programming is used.
Developing Part Programs
The most important part of writing a CNC program is the planning. The
following guidelines are provided to help a first-time programmer organize
the process.
First, decide how to hold the workpiece in the machine and where to set
Part Zero. Part Zero is best located on the front face of the workpiece
along the Z-axis and at the centerline of the workpiece in the X-axis. Try
to select a Part Zero that facilitates the direct application of part print
dimensions.
Develop a program using a procedure similar to the one that follows:
1. To enter the Program Directory from the Manual screen, press
Program (F2).
2. Create a program name for the part by pressing Create (F2).
3. Enter the program name in the entry field for New Program.
Refer to “Section 10 - Program Management” for additional in-depth
information.
4. Enter the Program Editor (press Edit (F8)) to open the new program
and start writing blocks as described in steps 6 – 9 below.
Refer to “Section 6 - Program Editor” for additional in-depth
information.
5. The first block of any program is usually a safe start position and tool
change position (a position away from the workpiece to which the
axes can return for safe tool-changing). The first block is also
normally used to state the units of measurement (Inch/MM), the mode
of operation (Absolute), the move type (Rapid), and to cancel all
auxiliary functions (Tool Offsets, Spindle, Coolant).
Typical first block: G70 G90 G0 X0 Z0 T0 M5
Other manuals for 4200T
2
Table of contents
Other Anilam Control System manuals