10Writing a Progam - Every Program has 3 Parts Initialization The initialization program tells the machine important information like units (inches/metric), coordinate system (incremental/absolute), machining plane, tooling, spindle on, speeds, and feeds.Operation/ Tool PathThe operational sequence moves the cutter from point to point to cut the part. This is where your significant points will live.TerminationThe termination sequence tells the machine that the operational program is completed. In this section we will tell the machine to stop the cutter and shut down.
11InitializationInitializationG17 – XY PlaneG20 – Inch ModeG90 – AbsoluteM03 – Spindle OnT04 – Tool #4 ( ¼” 60 deg. Drill Point End Mill)S – Speed (S4500)F – Feed Rate (30)Below is how it would look in the programG17 G20 G90M03 T04 S4500 F30G01 Z0.5G00 X0 Y0Copy this exactly. This is the first four lines of your program
12Operational Sequence II. Operation Sequence In the operational sequence the programmer will plan out the route of the cutter. This is the section where you will input your significant points.G-CodesG00 – Rapid motionG00 can only be used with XY movement when the cutter is above the partG00 cannot be used while the cutter is touching the partG01 – Machine motionG01 motion is used when the cutter is in contact with the partG01 is always used when inputting motion in the Z axis
13Operational Sequence Rules to Follow X and Y live together, Z lives aloneX and Y movement can occur on the same lineZ motion must have its own line of codeExampleCorrect: G01 X 2.5 Y 3.75G01 Z –0.1Wrong: G01 X 2.5 Y 3.75 Z –0.1
14Operational Sequence Rules to Follow 2. G00 can only be used with X and Y movementG00 is used to get the cutter to a specific XY address quickly when the cutter is not touching the part THIS IS NOT ACCEPTABLE WHEN MAKING CHIPS.3. G01 must always be used when…Moving the Z axis up or down. G01 is used for all Z motionMoving in the X or Y axis while the cutter is engaged with the part.
15Termination III. Termination M05 – Spindle off M02 – Program End Below is how it would look in the programG01 Z1G00 X0 Y0M02 M05Copy this exactly. This is the last three lines of your program