Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: shorton on December 02, 2013, 11:20:32 PM

Title: Home to machine zero?
Post by: shorton on December 02, 2013, 11:20:32 PM
Noob, hopefully easy question.

ogt my CNC router setup and working via Mach 3.  No limit switches on router (yet, plan to add asap).  For now, I turned off the home inputs in port config for XYZ.  Now, from reseaching here, I can move the spindle to what I want to call machine home and set refernce all and machine coordinates go to zero.  All good so far.  Now I jog to the zero coordinate of my workpiece, run my program.  After that I click goto home and I get a move to the workpiece zero. 

Are there 2 commands for moving to "user zero" and "machine zero"? 

What I'm after is before I turn the machine off, I'd like to move it to the machine zero so it's in the default position when I turn it back on.  Without having to jog manually.

Thanks,
Scott
Title: Re: Home to machine zero?
Post by: HimyKabibble on December 02, 2013, 11:41:02 PM
G53 G0 X0 Y0 Z0 will rapid to machine position X=0 Y=0 Z=0.

Regards,
Ray L.
Title: Re: Home to machine zero?
Post by: shorton on December 03, 2013, 08:49:13 AM
To demonstrate that I'm REALLY new at it.  Can you tell me how to enter a direct command?

Also, if that's the command for machine zero, what is the corresponding command to move to user/workspace zero?

How hard is it to make a button to execute such a command?

Title: Re: Home to machine zero?
Post by: Hood on December 03, 2013, 11:07:06 AM
What Ray has posted is exactly what you would command if wanting all axes go to machine coords zero at the same time.

If you want to go to the current work offset zero then its just  G0X0Y0Z0.

Easy enough to add a button as long as you are willing to edit a screenset and add a button to the screen. You would make it a VB button then once back in Mach you would go to Edit Button Scripts (from Operator menu) and then you will see your button flashing, click it then enter your code in the window that pops up, then file menu and save and then close.

The format for the code would be (for machine coords zero button)
code"G53G0X0Y0Z0"

Hood
Title: Re: Home to machine zero?
Post by: shorton on December 03, 2013, 11:25:21 AM
Perfect, Thanks guys.  Much appreciated.  I figured out where to enter it on the MDI screen.  Went back and forth from machine home to user home, just what I wanted.

Is their a tutorial anywhere on adding a button?  (and creating)?

Maybe, more ideally, I can get my Cam software to add the command for return to machine home as the last command.

Thanks again, Scott

Title: Re: Home to machine zero?
Post by: ger21 on December 03, 2013, 11:38:39 AM
  After that I click goto home and I get a move to the workpiece zero. 

There is no "Goto Home" button. You clicked Goto Zero.
Title: Re: Home to machine zero?
Post by: Hood on December 03, 2013, 11:53:52 AM
  After that I click goto home and I get a move to the workpiece zero. 

There is no "Goto Home" button. You clicked Goto Zero.

That all depends on the screenset being used ;)
 I have seen one or two that use that, think the guy that makes surfboards had that on the screenset that was supplied with the machine.

Maybe, more ideally, I can get my Cam software to add the command for return to machine home as the last command.

Thanks again, Scott



Most CAM you can edit the post processor to add that functionality.
Hood
Title: Re: Home to machine zero?
Post by: shorton on December 03, 2013, 12:11:44 PM
ger21, you are correct of course.  I wasn't at the Mach 3 PC when I wrote it. I meant the default goto zero button then. 

I am using the default screen set for now.  Although I saw one I might change to at calypsoventures once I get things going.

I'm a mentor for a high school robotics team.  We are working with a small CNC router for now.  Not to get OT from original question, but as long as I have some experts here... Do you know of a custom screen set I might look at that would be less "robust" and more dummied down for the kids to use?


Title: Re: Home to machine zero?
Post by: shorton on December 03, 2013, 12:13:29 PM
Hood:  I'm using CamBam.  For what we will be doing it I like it so far.  I'll look at it's postprocessor settings for Mach 3, thanks.

Title: Re: Home to machine zero?
Post by: Hood on December 03, 2013, 01:46:44 PM
Making your own screen is fairly easy or modifying an existing one is also easy.
There are a few screen editors available for Mach, my preference is Screen4 but a lot of people prefer MachScreen.
If you open a screenset in one of them then "Save As" you can work away messing with things and if anything goes wrong you have the original to fall back on.
Hood
Title: Re: Home to machine zero?
Post by: ger21 on December 03, 2013, 02:01:16 PM
 Not to get OT from original question, but as long as I have some experts here... Do you know of a custom screen set I might look at that would be less "robust" and more dummied down for the kids to use?


Yes, the one in my signature below. ;)
Title: Re: Home to machine zero?
Post by: shorton on December 03, 2013, 05:58:14 PM
Hood, thanks I'll see if i can play with one of them.

Gerry: I saw yours right after I asked. Love the homing routines. I watched some of the video. I need to master that, would be perfect for the way I envision our workflow. Thanks.