Hello Guest it is August 09, 2022, 04:25:36 PM

Author Topic: Just learning, need help  (Read 409 times)

0 Members and 1 Guest are viewing this topic.

Just learning, need help
« on: January 11, 2022, 01:21:55 PM »

Hello all,
My name is Bruce and I'm an old carpenter at UC Davis medical center in Sacramento Ca. and I'm just gettin my feet wet in the cnc pool.
Question- after a milling operation is complete the code directs the cutting head to a specific location to rest,  and the location seems to change with every code that is written. I use fusion 360 to model and post process and mach 4 to run the machine. i would like to learn how to manage the machines movement after the milling is complete. like just moving the cutter out of the way in order to remove finished part and replace with blank, make sense?
Appreciate the help
Re: Just learning, need help
« Reply #1 on: January 12, 2022, 12:32:43 PM »
I'm not familiar with fusion so I can't help you much. I use cambam and in CB you can manually tell the machine what to do. CB will add code before or after the mop. See if you can add code to your last mop to tell the machine where to go after the last mop is finished. You can also add the code in mach 4 by clicking edit gcode. Simply add a last lines.

G0 z3.000 ro what ever height you wish
G0 x0.000 Y0.000 or what ever position you wish to go to..

Do it in 2 lines so z pulls the cutter up before you start any sideways movement.
Re: Just learning, need help
« Reply #2 on: January 12, 2022, 02:49:16 PM »
i will give this a shot. i think that the current last line that shifts the cutter is M30, so i will erase this and add my own. thanks for the input.
Re: Just learning, need help
« Reply #3 on: January 12, 2022, 06:53:23 PM »
Leave m30 and m5. They are machine codes and are needed. Put the new code after the last g code. Sorry for not being clear.

Offline kf2qd

*
  •  132 132
    • View Profile
Re: Just learning, need help
« Reply #4 on: April 19, 2022, 07:47:44 PM »
Thar is what G28 is used for. The head is retracted in Z and moved to an XY position that is part of the system setup.