Hello Guest it is October 16, 2019, 11:43:57 PM

Author Topic: Home to machine zero?  (Read 3798 times)

0 Members and 1 Guest are viewing this topic.

Home to machine zero?
« 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
Re: Home to machine zero?
« Reply #1 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.
Regards,
Ray L.
Re: Home to machine zero?
« Reply #2 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?

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Home to machine zero?
« Reply #3 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
Re: Home to machine zero?
« Reply #4 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

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: Home to machine zero?
« Reply #5 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.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Home to machine zero?
« Reply #6 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
Re: Home to machine zero?
« Reply #7 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?


Re: Home to machine zero?
« Reply #8 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.

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Home to machine zero?
« Reply #9 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