Saturday, February 21, 2015

Custom M codes for coolant nozzles

  Ok, I was making a screen set for my mill that gets rid of all the stuff that is not used. And I thought wouldn't it be nice to have an M code that sets the coolant nozzle functions automatically. The special function screen could be pretty much forgotten about.

  The M codes are M1000 through M1008, (M1000 is function code 0, M1008 is function 8 etc.). Sweep angle can be set using the same process.

   Using the VB script editor in Mach3, this code was made:

    SetUserDRO(2060, 8)
 
   The 2060 is the DRO code that the function number is displayed in, on the special function page.

   This was named M1008 saved  and placed in the macros folder in Mach3.

  In the G code an M1008  is written and an 8 will automatically be put into the special function dro. I use sheetcam and it allows for code snippets to made and added. The code snippet is selected and added before a machining operation.

   When the m code is placed before tool number the special function brain must be unenabled. If it is after the tool code it doesn't matter.




     The above picture shows the code that sheet cam added. Lines N080,N090,N100.  The far right shows the nozzle position code.







Wednesday, February 4, 2015

Camper update

   Ok, this project has turned into a long term one. I was hoping to be able use it at the camp Mack  archery shoot in April. But I don't think it will be done by then due to budget constraints. Right now I need to get the aluminum hinges and angles to continue the build.

   All the plywood used in the galley and storage bench is recycled from old kitchen panels a friend gave me after a remodeling job.
rear of galley there will be fold down shelves here

galley 



door with full window

this is the side that will have the fold out tent 

a seat/storage in the front

Coolant nozzle formulas

    I had some free time so I put together a cad drawing of the formulas that are used in my coolant nozzle brains, this way I don't forget.
 
    I was also thinking it might be better to put the formulas in the arduino program. This way it may be easier to change if  I ever upgrade to Mach4. It looks like Mach4 does not use the same types of brains. It uses Lua (Oh Boy! looks like I'm going to have to learn more stuff) instead of the graphical programming. This way I may be able to  pass the inputs over the modbus and let the arduino do all the calculations.

  Will wait a couple of years and study how Mach4  modbus works.




Sunday, October 26, 2014

Servo coolant screen set is done

 Ok folks I have finished the servo coolant nozzle screen set for Mach3. So far it has been working pretty good.
   When I installed it on the ORK mill, I got my tool off set measurements wrong. It drove me nuts for an hour or two. I was thinking, Gosh it worked perfect on my cardboard testing setup. Here I was measuring the tool  length from the flange instead of the difference between my zero tool and current tool. Have been doing other things besides machining and forgot.

   I tried my best to make it easy to install. The screen set folder contains a few setting pictures and installing directions. There are two options in the nozzle parking Brains Ver1 and Ver2.   Ver2 is the default  and has a more positive, solid  action. Some of the arduino code needs to be changed for Ver1 to work correctly. There is a note pad file in the screen set folder with all the details.

  The screen set can be found on this CNC zone thread. http://www.cnczone.com/forums/open-source-controller-boards/176725-arduino-controlled-coolant-nozzles.html

 From this project, I have learned a lot about screen sets, brains, Arduino programming, Modbus, Inkscape and trigonometry.   At times I felt like my brain was going to explode.

 Here is a couple of videos showing how things work. Any questions can be left here, the CNC zone thread or on my Youtube channel. Have fun and be safe :)







Monday, October 6, 2014

Outer fabric skin and making clean edges

 
     The pictures below show the skinning of the front bulkhead. Since the walls will be assembled later the corners and edges need to be flat and even. The fabric is placed over the wall, half of it is folded back and glue is applied. Then it is placed back over the glue and pressed down with an iron on the lowest heat setting. This technique as also used to apply the inside fabric and the builders paper.




Tape is used to make clean strait edges. Excess is trimmed off 

flip over fabric edge

applying tightbond 2 glue 

Fold at edge of the tape

add more glue to folded edge


press flat with iron and remove tape

finished corner nice and flat to screw to the floor section.

inside of front wall

outer skin, just need to apply more Tightbond 2  that will
soak in and give a hard surface finish. 

close up  of outer fabric

Small camper build

     After many years of packing my car full to travel to archery festivals, I decided it's time to build
a small travel trailer. This way I can load up the trailer with gear, have a galley for cooking and a warm place to sleep. Oh yeah, so i can bring more fire wood, the Denton hill shoot was really cold this year and the camp mack shoot is always cold.

      The camper is made to slide on to a 4X8 foot utility trailer. Weight is my biggest factor in the build. It is going to made with pine framing with foam cores and covered with fabric and glue. It is designed with a pop up roof and the left side folds down to in crease the sleeping area. When traveling it can be used with out opening the top or side bunk, (like a couple of hours sleep at a wallmart parking lot).

       Since I don't have a garage it will be built in my basement in pieces over the winter and assembled out side in the spring. The parts will be left and right walls, front wall, roof, galley and floor.

 



right side showing galley an entry door
left side showing fold down bunk and pop up top















 






unfinished boards from old skids that were used in shipping  new
chicken house equipment

ripped and planed boards.They were left to dry out for a month or two,measured and
checked for shrinkage.  

Floor with foam core to add strength, new materials were used
in this part. I for got to rip the boards to a wider width.

top floor showing storage holes. The  covering was trimmed
with a router


front bulk head 












covered in builders paper 
right side


covered in paper 

The inside is covered with old table cloths I had laying around
coated and sealed with acrylic paint with no pigment added

finished interior of the front bulk head.


Thursday, July 24, 2014

Can't stop adding new features

   More ideas keep popping in my my head for the nozzle screen set. The use of modbus has enabled me to implement more features. May not need them all but they are there if I need them.


    Features:
   1) auto tracking of depth of cut
   2) auto aim at bottom of tool
   3) air cleaning of tool
   4) air blast nozzles
   5) auto park of nozzles at tool change
   6) sweep function
   7) special  function for up to 6 tools (combinations of 1 through 6)


       To the right is the special function page. When the tool number DRO matches the number on this page it will automatically run the combinations in the table. The number of tools can be increased to more than 6, but the brain gets hard to see after a curtain size. The default is (0) so if  a job uses 10 tools and 4 of them use the auto tracking for depth of cut this works out OK.
     The sweep column is for setting the angle of sweep from the bottom of the tool.


 The page to the left is same as before with some extra DRO's for the auto aim at the bottom of tool.



 To the right is the brain that controls the auto tracking of the right side. This has 3 trig functions to triangulate the the angle of the nozzle. The number of brains are adding up I think there around 8 of them. Some are simple and some have up to 20+ inputs.
Its also easier to keep things more organized by breaking things down to smaller separate functions.
 
There is also the arduino sketch that keeps growing. but that's for a different post latter on.