CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > Mach Software (ArtSoft software)


Mach Software (ArtSoft software) Discuss Mach 1 , 2 and the new Mach3 here NC software here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-23-2010, 05:38 AM
 
Join Date: Jul 2008
Location: UK
Posts: 135
HankMcSpank is on a distinguished road
Just "Ref Z Home" available? (vs ref all home)

Hi there,

Up until now, I've been using "Ref all home" button to take all axises (axii?) to their respective homing switches - however, is there a command (or button) that I can use where only the Z axis homes to its switch? (for say a tool change)

Also, Is there anything command that could say be integrated into my GCode that would do this each time a tool change is required? (because it's kinda getting old shuttling up the Z axis each time I need to swap out tools!)

Last edited by HankMcSpank; 02-23-2010 at 06:59 AM.
Reply With Quote

  #2   Ban this user!
Old 02-23-2010, 07:33 AM
 
Join Date: Nov 2007
Location: USA
Posts: 187
multiplex is on a distinguished road

curious about this too!

figured one way would be to add in a button just to execute the z axis (or whatever axis).
Reply With Quote

  #3   Ban this user!
Old 02-23-2010, 09:03 AM
 
Join Date: Jul 2008
Location: UK
Posts: 135
HankMcSpank is on a distinguished road

Some googling suggests for the latter part of my question that Gcode command G28 will do what I want.

I found this link...

http://www.mail-archive.com/emc-user.../msg07873.html

Extract here...

"a G28Z0 with no space will home the Z axis only"

So I guess if I edit my Gcode to have that immediately before a Tool change, that'd work.

It'd be nice to have a button in Mach 3 though - is there one? Could one be done via a screen editor (ie is it possible to submit Gcode via a nominated Mach3 button?)
Reply With Quote

  #4  
Old 02-23-2010, 10:47 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,463
ger21 is on a distinguished road
Buy me a Beer?

Make a new button, and set it for VB script, and use the code DoButton(24).
Or, save it as a macro, say M500.m1s (I think it's m1s, don't have Mach installed here). Then you can just call M500 to home the Z axis.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #5   Ban this user!
Old 02-25-2010, 05:27 PM
 
Join Date: Jul 2005
Location: USA
Posts: 1,879
Torchhead is on a distinguished road

One of the nice options in the CAM package SheetCAm is there is a Tool Change option that lets you automatically drop in several lines of G-code anytime you change tool numbers in the process list. So you can do something like this:

M05 (turn off spindle)
G00 Z 2.500 (raise Z up 2.5 inches)
G00 X8 Y8 (rapid to tool change location)
M00 (pause until Cycle start [RUN] is hit)

You don't have to move up to a Home so the calibration of the machine stays the same.
If you need to rezero the tool end on the top of material then just jog it down and hit Z zero button.

The option sticks the correct g-code in the right spots so you don't have to edit code.

You could put the same thing in a macro named M100 or higher and call it in the code.

You can also drop in a Z ref command in the same code snip
G28.1 Z .500 (rapid up to .5 then move at homing speed to Z home switch)
but I'm not sure what advantage that gives you since a home up in the air has no relation to the end of a tool or where the top of the material (Z 0) is.

TOM caudle
www.CandCNC.com
Totally Modular CNC Electronics
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-28-2010, 05:43 PM
 
Join Date: Jul 2008
Location: UK
Posts: 135
HankMcSpank is on a distinguished road

Thanks guys...I've read you replies a few times & while I understand the concepts, having just implemented a Z homing switch, this Z plane usage during a tool change is doing my head in!

I now think I've asked for the wrong thing - in the end I managed to program a spare switch on my contour shuttle, to home the Z Plane...but now I realise that's not going the help me!

Here's what I'm trying to achieve (my mill does not have a gantry)

Start Mach3
Hit "ref all home".
Load up Gcode file.
Clamp material to table
Got to Z (place centre of the table under tool)
Fine adjust axis to line up precise location of "working" 0,0 - zero X & Y.
Touch off top of material - zero Z.
Start Cycle off...........code is stepped through until a tool change is triggered

Now this is where it get fuzzy.

I intend putting plastic depth rings on all my cutters - each one being located the same preset distance from the tool tip ...the theory being, this would allow to locate Z0 just the once (when the first tool is loaded), then after every tool change it no more touching off would be necessary.

I need to try & figure this out...I know you've given me some leads, but being a relative new hobbyist, I'm still grappling with the concepts!

I guess all I need is what you've said - a simple macro, that when a tool change is triggered ..Mach3 raises the Z Axis about 50mm - can Mach 3 do this?

(I don't have spindle on/off control, so there'd be almost nothing in the Macro).

how to call a macro by Mach3 - specifically when a tool change is triggered?
Does it have to be a special name & directory location?
could anyone give me a lead what the Macro should contain (remember all I want is the Z plane to raise by 50mm - nothing else!)


Many thanks.
Reply With Quote

  #7  
Old 02-28-2010, 06:08 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,463
ger21 is on a distinguished road
Buy me a Beer?

M6 is the tool change macro. There are actually two macros. M6 start and M6 end. You probably want to modify the M6end.m1s file to move to your tool change position. It already has code to remember where it is and to return there after the change.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #8   Ban this user!
Old 03-01-2010, 06:58 AM
 
Join Date: Jul 2008
Location: UK
Posts: 135
HankMcSpank is on a distinguished road

I've found those two Macros, trouble is, it's not clear what I need to add in to get the Z azis to raise 50mm at tool change & then drop 50mm again to proceed with the cycle...

Here's the (default) contents of those macros...

M6Start.m1s
tool = GetSelectedTool()
SetCurrentTool( tool )


M6End.m1s.....
x = GetToolChangeStart( 0 )
y = GetToolChangeStart( 1 )
z = GetToolChangeStart( 2 )
a = GetToolChangeStart( 3 )
b = GetToolChangeStart( 4 )
c = GetToolChangeStart( 5 )
SafeZ = GetSafeZ()
if SafeZ > z then StraightTraverse x, y,SafeZ, a, b, c
StraightFeed x, y, z , a, b, c


on the face of it, I'd have thought this would be easy to implement (don't most people want their Z axis to rise automatically when a tool change is triggered?). with respect to these macros - I'm not getting much with Google (ok, perhaps nothing simple!)- could some kind soul indicate what simple enties would need to go into those two macros?

Once again - all my tools will have the same distance to tip - therefore all I need is for the Z axis to raise 50mm (I turn off the spindle manually, change the tool manually, start the spindle manually - press cycle start), the tool then drops 50mm again to continue with the cutting.

Many thanks!
Reply With Quote

  #9  
Old 03-01-2010, 10:55 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,463
ger21 is on a distinguished road
Buy me a Beer?

Let me play around tonight and figure it out.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #10   Ban this user!
Old 03-01-2010, 01:11 PM
 
Join Date: Jul 2008
Location: UK
Posts: 135
HankMcSpank is on a distinguished road

That would be great! (and probably of a lot of use to many others too!)

Many thanks.

Last edited by HankMcSpank; 03-01-2010 at 01:38 PM.
Reply With Quote

Sponsored Links
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to "offset" Double sided PCB if I don't have abolute "home" on my CNC ? Calico PCB milling 11 07-12-2011 06:02 AM
uncontroled start of spindle when "z" home. bcbackoader 5T/5M 0 10-16-2008 06:37 PM
"Home-made" V-groove rollers and rails Gerald_D Linear and Rotary Motion 10 06-14-2008 02:02 AM
Home Made "Junk Box" Power Supply emtffkev General Electronics Discussion 11 04-20-2007 07:11 AM
Bridgeport Series "I" will not home, please help technical school in need!! phantomcow2 Bridgeport and Hardinge Mills 6 12-15-2005 05:11 PM




All times are GMT -5. The time now is 02:24 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361