Smithy Ez-Trol2 User Manual

Page 31

Advertising
background image

G0 Z0 X0 Y0

G1 F10 M3 S1000 Z-0.25

Y-1

X-1

Y0

X0

G0 Z0

M2

Not only does this program set the feedrate, it adds a few new elements as well. Notice, the first
block gives the machine a starting location. By using a block like this we are getting the sequence
to start at an expected location, a known location between the tool and the work piece.

The second line tells the machine to move at a given feed rate. In this sample that given feed rate
is at is F10, which could be ten inches per minute or 10 millimeters a minute. This depends upon
another modal group that will be discussed later. The default for SmithyCNC bed mills is inches.

Also in the second line of code you will see M3 S1000. These commands are telling the machine’s
spindle what to do. M3 turns the spindle on in the forward, clockwise direction. The S1000 means
sets the spindle speed; in this case the speed is set to 1000 revolutions per minute.

The remaining code in this block Z -0.25 tells the spindle to move the tool down, denoted by the
negative sign, into the work piece a 0.25”.

The next line, Y-1 will move the Y-Axis 1 unit away from the operator.

The line X-1 will move the X-Axis 1 unit to the right, from the operator’s view of X0.

The line Y0 will return the Y-Axis to the Y0 position. The movement will move the table toward the
operator.

The line X0 will return the X-Axis to the X0 position. The movement will move the table to left of
viewed from the operator's perspective.

The line G0 Z0 rapidly returns the Z-Axis back to Z0 from the work piece.

The last line, M2, tells the machine that the program has been completed.

Figure 8.5 below illustrates that the G-code program generated a square movement.

A programmer’s reference manual that provides a much more extensive explanation of G-codes is
included with this EZ-Trol II user’s guide.

www.smithycnc.com

| 25

Advertising