Beruflich Dokumente
Kultur Dokumente
1.
Introduction
This guide is intended to help the user get started using the CNC machine. I have
made every effort to include all that I can in the time that I had available, but
obviously this is not a professional user guide and is for a self-built machine.
I highly recommend the user gets familiar with the Mach3 software before using
the machine. This is almost essential as the machine is built to operate using this
software. This can be downloaded from the Internet, free in demo mode (ie not
connected to a CNC machine) onto another computer such as a laptop and used
as a training and simulator machine. I myself had a separate copy on my laptop
that I used to test run and edit ALL programs before loading them onto the
machine. The Mach3 software also comes with good documentation, which I
highly recommend reading at least once before starting.
I will try to document several example of how to use the machine using the
sample components I have produced as test components myself. Again this will
only touch the surface of what the machine can do, but will get you started, unless
of course you already know more than I do myself. In which case please forgive
me if I cover information you already know.
I built the machine for fun and as an experiment really and to learn a bit about
programming CNC machine and learning about gcode. I had seen a lot of
information, on the Internet, showing other machines people had built themselves
and felt inspired to see what I could do. After several months of research I started
to do some designs on 3D CAD. I have a background in Engineering and served
my apprenticeship on milling machines, before moving into the drawing office
where I spent several years designing machine tools. So hopefully my experience
in engineering (18 years) has not gone to waste.
The machine is built around a Trend Router Rack system, which I already had.
This is designed to handle full size routers, so I guessed it could easily handle a
smaller cutter such as the Dremel. The Trend Router Rack parts used are the base
mounting brackets, which fasten to the baseboard, the steel tubes, the top
clamping brackets and the aluminium mounting plates. This gives a very sturdy
gantry for the X-axis. It also enables the whole gantry to be raised or lowered, on
the steel tubes, if desired to give a bit more clearance over the table, if a tall
component is to be machined. The aluminium plates can also be turned around to
give even more clearance, but thats another matter and shouldnt be required.
The only downside is that you have to realign the gantry parallel to the table if
you undo the gantry brackets to move the gantry up or down. But you shouldnt
really need to, or at least not very often and it doesnt take that long to set it up
parallel again.
Each axis runs on quality linear slides, which are purpose made for CNC
machines. These comprise of aluminium support brackets on either end of
ground steel linear slide bars. Each axis also runs on four sealed linear slide
bearings. Each axis is driven by an M6 stainless steel threaded drive shaft. A
bearing supports each end of the drive shaft. On each end of the drive shaft a
small bearing shaft is fitted with an M6 nut locking it in position. Any play can be
taken up by adjusting either end of the drive shaft. Just undo one M6 nut and take
up the play. Then lock the M6 nut against the bearing shaft.
The X and Z axis both use a threaded Delrin (Acetal) blocks. This gives very little
backlash. The Y-axis table has an anti backlash nut system I created and can be
adjusted with two screws either side. All seem to work very well. I have included
some spare Delrin (Acetal) blocks that were left over which could be used to
replace the blocks if they ever wear.
The machine is fitted with a Dremel, which works very well, but another type of
cutter or small router could possibly be fitted, by making suitable mountings.
2.
Connections
I have tried to make all connections more or less fool proof, so they can only be
connected one-way and only to one thing. I also made almost all cables fitted with
connectors so I didnt have to keep messing about undoing wired connections and
then trying to remember which wire connected to what connector etc. The only
exception now is the power cable for the Dremel. That has to be disconnected
from the relay board at the rear of the machine, under the white plastic cover
marked 240v. So make sure you disconnect the machine from the mains before
removing the cover. Its just two wires, brown and blue and they connect to the
brown and blue on the relay board as shown in the photo below.
This end of the parallel cable goes into the CNC Controller marked P1
These connectors are self-explanatory and can only go in one way around, just
make sure you connect X to X, Y to Y and Z to Z etc.
R1 Dremel Relay Board Connector
This connects the CNC controller to the relay board. It allows the cutter to be
started and stopped from Mach3 or manually from the control panel. It is safety
interlocked with Mach3 through the charge pump feature, which only lets the
machine operate if a signal is present from Mach3. If Mach3 crashes, or Windows
or the PC crashes, or the power goes off and then returns the machine will not
run. Without this the cutter could start as the PC powered back up, which would
not be safe.
Plug Gang Sockets
All power comes from the no volts release safety switch mounted on the from
right hand side of the machine to the gang socket on the rear of the machine.
3.
Start Up Procedure
With the plug from the no volts release switch plugged in and the power switched
on, the green button on the no volts release switch can be switched on.
I always leave the monitor switched on, so the monitor should now come on and
then go into power saving mode, until the PC is powered up. If not press the
monitor power switch and then leave it on.
Now the PC can be switched on with the button on the front top of tower case.
Note sometimes the PC wont power up the first time it is switched on or will
freeze somewhere during Windows starting up. If this happens either hold the PC
power on button for a few seconds until it powers off again or press the red
button on the no volts release switch to cut the power and start again. This only
usually happens the first time it is started up and then its fine. I think it may be
the cmos memory battery on the motherboard that may need changing. It doesnt
always happen. This is why I have included the spare motherboard etc. If it did
become a problem it could be changed.
So now it should boot up and Windows XP will start up and you get to the
desktop with a message to say your computer may not be protected. This is due to
it not being connected to the Internet for some time and so it is complaining that
the anti virus software is out of date. You can just clear the message or if you have
Internet access you could update the anti virus software.
Once Windows is finished loading and the message has been cleared, the Mach3
software can be started. This is done by double clicking the KeyGrabber Icon.
You use this rather than the Mach3 Mill Icon as the control panel uses the
KeyGrabber program to recognise the keys you press on the control panel and it
translates the key presses into Mach3 commands. If you dont run KeyGrabber the
control panel will not work properly.
When the KeyGrabber window appears press the start Mach3 button.
Then select the Mach3Mill profile and press OK to continue and load Mach3.
Once Mach3 is up and running the CNC controller can be powered up. This is
done, by pressing the green power button on the front of the CNC Controller.
The green power light will come on and you should hear the cooling fans start
and the power relay click. The red Mach3 ready light will stay off at this stage.
Once you are ready to run the machine the reset button on the control panel can
be pressed to reset the machine ready to run. This clears the emergency stop state
that Mach3 always starts up into. The red Mach3 ready light will now come on.
The machine is ready to run.
Note It is better not leave the machine in a Mach3 ready state until you are
ready to use the machine. While the machine is in Mach3 ready state, the stepper
motors are powered up and will start to get hot. So I get in the habit of pressing
the reset button only when needed and then press it again to return the CNC
controller to emergency stop state. This way it saves the motors getting hot for no
reason. To demonstrate what I mean try moving the screw shaft on the X axis by
hand. Try it with the machine in Mach3 ready and in emergency stop state, by
pressing the reset button once then try moving the shaft and then press the reset
button again and try moving it by hand. You will see when the machine is in
Mach3 ready state the stepper motors are powered up and the shaft will not move
and the motors do get hot eventually if left on.
I have done a video that shows start up and shutdown procedures so if you like to
learn by seeing then its worth taking a look. In fact its probably a good idea to
watch the videos first anyway. That way you will probably know what Im taking
about a little better.
4.
Shutdown Procedure
Shutdown is more or less the reverse. First press the reset or emergency stop
buttons on the control panel. I usually the reset button as it serves the same
function and is less heavy to press.
This makes sure the stepper motors are powered down. Now the CNC controller
can be switched off, by pressing the power switch on the front of the CNC
Controller. The green power led will go out (after a few seconds due to capacitor
drain down time).
Now you can exit Mach3. It will ask you to confirm you want to end the session.
Once Mach3 is shutdown the PC can be shutdown by using the power down
button on the slide out keyboard, which is a nice little feature.
Hold the button for a few seconds and Windows will shutdown and the PC will
power off. Or you can press and hold the power button on the top of the PC tower
case.
Now the red button on the no volts release switch can be pressed and all power is
now off to the machine. The machine can now be unplugged if desired.
5.
Control Panel
looked at other peoples designs and after getting started using Mach3 decided on
a basic layout for the control panel.
I wanted to have as many of the common commands assigned to buttons along
with an emergency stop button. I also found a touch sensitive mouse pad that
incorporated a numeric pad. So I built this into the control panel to do away with
the standard mouse as much as possible.
Then I wanted to group the keys in groups of related functions. So the first group
of controls comprise of the four program control buttons for starting, pausing,
stopping and resetting the machine.
Start (Cycle Start) This starts the Gcode program running in Mach3. This will
start the spindle if the switch on the front of the Dremel is in the on
position and start the motion of the machine.
Pause (Feed Hold) This pauses the Gcode program running in Mach3 as soon as
possible. The spindle will still be running but can be manually stopped.
This can be used to replace a broken cutter, for example or debris. The
Spindle will need starting again manually and the program can be started
again by pressing the Start button. Mach3 will return to its previous
position and continue.
Stop -
This halts axis motion as quickly as possible. It may result in lost steps
and restarting may not be possible.
Emergency Stop Button This button is a software emergency stop button and
sends a signal to Mach3. It locks on when pressed and needs twisting to
release. The Reset button must then be pressed to allow the machine to
continue and clear the emergency stop state. I tend not to use this button
as it take a bit more force to press than the reset button and does just the
same thing.
NOTE: It is possible that you could use the red button on the no volts release
power switch as an emergency stop button. This would cut all power
instantly. Now I am not saying this is a good idea but if it was a real
emergency this will cut all power.
MPG DIAL Manual Pulse Generator This allows the selected axis to be moved
manually by sending signals to Mach3 which then generates pulses to
drive the stepper motors. See Mach3 for more details.
X-
This button allows you to move the X-axis manually in the minus
direction (Left)
X+
This button allows you to move the X-axis manually in the plus direction
(Right)
Y-
This button allows you to move the Y-axis (Table) manually in the minus
direction (Away from you)
Y+
This button allows you to move the Y-axis (Table) manually in the plus
direction (Towards you)
Z-
This button allows you to move the Z-axis (Dremel) manually in the
minus direction (Down)
Z+
This button allows you to move the Z-axis (Dremel) manually in the plus
direction (Up)
REF ALL HOME This button will move first the Y-Axis (Table) in the minus
direction until the Y home limitswitch is triggered. It will then back off
the limitswitch and set the Y Zero point. It will then move the X-Axis in
the minus direction until the X home limitswitch is triggered. It will then
back off the limitswitch and set the X zero point. The Z-Axis has no home
limit switch so you have to manually make sure it has enough movement
in the desired direction during program run. This is easy to do, especially
if you test run the program.
Zero-X This button resets the X-Axis DRO to zero.
Zero-Y This button resets the Y-Axis DRO to zero.
Zero-Z This button resets the Z-Axis DRO to zero.
MPG MODE This button will bring up the Mach3 Jogging Screen as shown
below and is the same as pressing the Tab key on the keyboard. This
screen allows you to see which Jog Mode, Cycle Jog Step and Axis is
selected.
JOG ON/OFF This button allows you to turn jogging off. This will stop any
accidental movements if someone presses one of the jogging buttons.
JOG MODE This button cycles through the Jog Modes. The Jog Modes are:
Continuous, Step and MPG.
Continuous mode allows you to press the X-, X+, Y-, Y+, Z-, Z+ feed
buttons and the Axis will move continuously in the desired direction
until the button is released.
Step Mode allows you to press the X-, X+, Y-, Y+, Z-, Z+ feed buttons and
the Axis will move a single step in the desired direction until the button
is released. The step depends on the selected cycle jog step, which can be
from 1.0000mm to 0.0001mm increments.
MPG Mode allows you to turn the MPG Dial on the control panel and
move the selected Axis in the direction required. This can be done in
single steps or continuously in a similar way to Step Mode.
JOG INC This button toggles through the Cycle Jog Step increments. The values
are 1.0000mm, 0.1000mm, 0.0100mm, 0.0010mm and 0.0001mm. This
allows you to start with large increments and then as you approach the
workpiece to reduce the increment to allow fine feeding for setup.
AXIS SELECT This button toggles through the active axis for MPG mode. Note
this only works in MPG mode because you can only move one axis at a
time with the MPG. With the manual feed buttons the button you press
selects the axis to move ie. Pressing the X+ button by its very nature
knows you want to move the X-Axis and pressing one of the others does
the same. But in MPG mode the desired axis must be active first.
SHUTTLE MODE This button toggle through the MPG Shuttle Modes.
Velocity Only mode the velocity of the axis movement is related to the
rotational speed of the MPG with Mach3 ensuring that the acceleration of
the axis and top speed if honored. This gives a very natural feel to axis
movement.
Step/Velocity mode in Mach3 currently works the same as Velocity Only
mode.
Single Step mode each pulse from the MPG dial requests one incremental
jog step. Only one request at a time will be allowed. In other words if the
axis is already moving then a pulse will be ignored.
Multi-Step mode pulses from the MPG dial will be counted and queued.
Note this means for large steps the axis may move a considerable
distance and for some time after MPG dial has stopped.
These step modes are of particular use in making very fine controlled
movements when setting up work on a machine. You are advised to start
using by using Velocity Mode then consider using Single Step mode with
relevant increments for final setting up.
The final three unmarked buttons were unassigned spare buttons, but I have now
setup the first button as Spindle Start/Stop. There is no label on the control panel to
show this as I did it after I had printer the control panel overlay. This could be
reprinted and I have included the graphic file (Panel-02.bmp) on the machine. The
other two buttons could be used at a later date, by defining them in KeyGrabber.
The touch pad allows you to move the mouse in the same way as a laptop computer
has a touch pad. It also allows you to tap the surface for clicking i.e. two taps equals
double click etc. It also has two mouse buttons, which can be used. The pad also
doubles as a numeric pad and calculator. If you click the Mode button the blue led
lights up and the pad is now in numeric pad mode. You can select a data entry field
in Mach3 then select numeric mode and enter a figure and the press enter. Then
reselect mouse mode by pressing the mode button again. It also has a calculator
button that brings up Microsoft calculator.
6.
Now we need to tell CamBam what we want to machine, how we want to machine it and
in what order etc.
So the first operation is the centre drill. This is a 3mm drill through.
So we select the centre, by clicking on the centre point. If we select it correctly it will be
highlighted in red. The easiest way is to drag a small box around the centre small circle.
Now select the drilling operation icon at the top right of the screen.
We can rename the drilling operation to something more meaningful, such as Centre Drill.
We also need to fill in the list of parameters on the bottom left hand corner.
I have expanded the list upwards in the following view to show the defaults and the
changes are highlighted in red.
TargetDepth The distance you want the drill to go, usually more than the thickness of
the material, providing you put a piece of scrap material under the workpiece. This then
allows for the point of the drill.
PlungeFeedrate This is the rate the Z-Axis will drill the hole. This depends on material
and size of hole.
ClearancePlane This is the distance the Z-Axis will return to after drilling.
Name The new name for the operation. Try to avoid using brackets, like CamBam does
as default as Mach3 doesnt like them.
ToolDiameter This is the drill diameter in this case.
ToolNumber This is used by Mach3 to allow you to identify tools and to allow tool
changes.
The next operation would be the four cutouts.
So we must highlight the lines and arcs that make them up.
Select the first line and it should be highlighted in red. Then press and hold the Ctrl key
and select the other lines and arcs.
Now the lines and arcs must be converted to Polylines and joined. Press the Ctrl key and
while holding it down press P (Ctrl+P). This is the same as going to the Edit menu and
going to Polylines > Convert To Polylines. Now press the Ctrl key and while holding it
down press J (Ctrl+J). A box will appear and ask for the join tolerance. I usually put
0.1mm
With this done we can now select the machining operation.
Select the New 2.5D Profile operation icon from the top right of the screen.
DepthIncrement This sets the depth of cut per pass, in this case 1.25mm to give two
passes.
TargetDepth This is the overall depth of cut, usually the thickness of the material, plus
enough to break through, if you want to.
CutFeedrate This is the feedrate the cutter will feed at in the X and Y Axis, while cutting.
This depends on cutter, material and depth of cut etc. Experimentation is the best way to
find the right settings, starting on the cautious side.
PlungeFeedrate This is the feedrate the cutter will cut in the Z Axis, while cutting. This
depends on the cutter, material and depth of cut etc. Experimentation is the best way to
find the right settings, starting on the cautious side.
ClearancePlane This is the distance the Z Axis will return to between movements over
workpiece to clear it. Default is 1.5mm but I like a bit more 5mm.
InsideOutside This tells CamBam to cut on the inside or outside of the profile. In this
case we want to cut on the inside. The default is outside.
Name The name of the 2.5D profile operation.
ToolDiameter Diameter of the cutting tool. In this case a 3.0mm Router bit. This is
important as CamBam works out the movements base on the radius offset.
ToolNumber This allows Mach3 to know if you need to change tool or not. Sometimes I
will put an incremented tool number to generate a toolchange, just to pause the machine.
Mach3 will stop the cutter and move the Z Axis up and wait for the start command. This
gives time to allow for removing scrap material and using a vacuum cleaner to remove
dust and debris etc before continuing with the next operation. But if you are using the
same cutter you dont need to do this, it is optional, only if you are changing from say a
3.0mm drill to a 3.0mm router bit as we do between the drilling operation and the cutout
profile operation is it required.
We can now repeat the process for the other three cutouts. You could do them all in one
operation but I like to just check whats going on and vacuum up and remove scrap
between operations.
If you now press and hold the Ctrl key and press T (Ctrl+T) this will generate the tool
paths to verify everything looks ok so far. You can also go to the CAM menu and select
Generate Toolpaths.
You should end up with something like the following:
You can see from this the toolpaths are on the right side of the profile (inside).
Now convert the profile to Polylines by pressing and holding the Ctrl key and P (Ctrl+P)
then join the lines by pressing and holding the Ctrl key and J (Ctrl+J). The box will appear
asking for the joint tolerance, which should still be 0.1mm so just press ok.
Now insert a new 2.5d profile operation as we did for the cutouts. The parameters should
be as follows:
If you now press and hold the Ctrl key and press T (Ctrl+T) this will generate the tool
paths to verify everything looks ok so far. You can also go to the CAM menu and select
Generate Toolpaths.
You should end up with something like the following:
We are now finished and can generate the gcode program for the machine.
Select the CAM menu > Create Gcode File
Save the gcode file and give it a .tap extension for Mach3, such as 32T_Gear-001.tap
Now we are ready to load the gcode file into Mach3 and run it in demo (Simulator) mode
on a laptop for example, away from the machine, to check for errors or tweaks to the code.
You can tweak this file to suit your needs and to improve the way the machining is done.
Once you start to get to know what you are doing with the machine, the cutters, the
materials and Mach3, you will be able to create and modify programs very quickly.
If you are new to CNC machining, gcode, the Mach3 and Cambam software, I recommend
you spend as much time as possible learning about each thing before rushing into
machining anything. Try something simple first , on scrap material and make sure you
understand every stage first. In the long run it will be worth it.
7.
So now we have our gcode program loaded into Mach3 and ready to run, having tested it
on the demo version of Mach3, running on a separate laptop computer, ironed out any
little bugs and tweaked it to run as we wish.
We must now clamp the workpiece material to the table. In this example I printed out the
drawing of the component, full size, to enable me to visualise where to put the clamps and
also where to set the datum point. The setup looked like the following.
You may notice I placed a piece of scrap material under the polycarbonate material.
So now we need to set the datum reference point and set the X and Y Axis DROs to zero.
To do this I used a scriber point in the Dremel. I then moved the Y and X Axis roughly into
position with the rapid feed buttons on the control panel, making sure the Z Axis doesnt
hit anything. I then switch to the MPG Dial to move the desired axis to the centre of the
gear drawing that I placed on the polycarbonate. Once I was happy with the position I set
the X and Y Axis DROs to zero by pressing the buttons on the control panel.
I then replaced the scriber point with a 3mm drill.
Important Note! Always use a spanner to tighten the cutter in the Dremel or it could
come loose during machine. Also ALWAYS turn the switch to the off position on the front
of the Dremel, while changing cutters or when its not in use. Even though it is safe, with
its Mach3 charge pump electronics safety feature, I like to be double safe.
Now we have to set the Z Axis to zero so it knows where the material is. To do this use the
rapid feed button (Z-) to bring the cutter down close to the material. Then switch to the
MPG Dial to bring the Z Axis to touch the material. I use feeler gauges and use small
single steps of say 0.1mm then 0.01mm when really close. It isnt always critical to get it so
spot on, but you can if you need to.
So now when we are happy with the Z Axis we can zero the Z Axis DRO with the button
on the control panel. Then we can select Continuous feed again and rapid feed the Z Axis
clear of the material.
So now with the machine setup and ready we can turn the switch on, on the front of the
Dremel and press the Start button on the control panel. The Dremel will start up and the
machine will drill the centre hole. It will then raise the Z Axis back to its clear position and
stop and wait for you to change the tool for the next machining operation. I ALWAYS turn
the switch to the off position on the Dremel before removing the drill and replacing with a
3mm router bit. I tighten up the cutter using a spanner. Then you need re-zero the Z Axis
for the new cutter. Do this in the same way as before and set the Z Axis DRO to zero. Now
move the Z Axis clear of the material. Turn the Dremel power switch back on and we are
ready to go again. This is done by pressing the Start button on the control panel again.
The Dremel will start up again and the machine will continue to machine the cutout. It
will take two passes of 1.25mm each and then move the Z Axis to the clear position and
stop. You dont have to have the machine stop at every cutout, but you can if you want to
remove debris or scrap material or use a vacuum to clear chippings etc. You also get to see
how its doing. Because we dont have to do a toolchange, we can just press the Start
button on the control panel when ready.
When all the cutouts have been machined it will again stop and wait for you to press the
Start button on the control panel before starting to machine the teeth outer profile. We
leave this until last because when the teeth are complete the component will have been cut
free from the material and will no longer be clamped down. So if we tried to machine the
cutouts after the teeth the part would move and scrap would be generated. So you do have
to plan the order of machining to some degree to avoid this.
So when the program is finished the Dremel will stop and the machine will return to a safe
position, clear of the workpiece. It will also have set the machine to an emergency stop
state, with the stepper motors powered down.
You can now look at your new creation..
This is the end of this example. I hope this guide was helpful and gives you some idea, if
you dont already know, how to get started with this type of machine. I wasnt sure, while
writing this guide, how experienced the new owner would be and how much they would
already know. I was also very restricted with the time available to put all this together
while packing and sorting my imminent move to Spain.
The main advice is to get very used to Mach3 first. You must know how this works to
stand much chance with the machine. You can use the CamBam CAM software to
generate the gcode if you like or you can find an alternative that suits your needs better.
This is just the one I liked and it suited what I wanted to do and the way I worked, but it
may not suit you.
There is much info on the Internet on all aspects of Mach3 and CNC machining as well as
gcode and CAM. There are also many helpful forums out there with people more than
willing to help.
I have also included all the many photos and the videos I created of the machine. I will
place a shortcut on the desktop of the machine to them and all the other documents and
also burn a CD with all the same info and backup software etc.
I truly hope that this machine brings you as much pleasure and joy, in whatever you
choose to do with it, that I have had in the time I built and tested it. It truly has been the
most interesting, enjoyable, inspiring, complex but rewarding project I have ever done (So
far).