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 04-24-2009, 01:39 AM
happytriger2000's Avatar  
Join Date: Nov 2004
Location: currently in Taiwan
Posts: 157
happytriger2000 is on a distinguished road
How to change tool Manually?

Hi,
I'm testing out a g-code file generated by Rhinocam, and there are 3 tools needed to be changed, the g-code will be inputed to Mach 2 and my questions are:
1: how do I change the tool manually? and what needed to be set in Mach 2?

2: Do I need the M6start macro?

*the G-code is in the attachment.

* The spindle = RotoZip RZ5

Thanks for any help,

Freddy
Reply With Quote

  #2  
Old 04-24-2009, 10:23 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?

Call M6 to change it, and there should be a configuration setting to pause and wait for cycle start. Haven't seen Mach2 in years, but that's how it's done in Mach3.
__________________
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

  #3   Ban this user!
Old 04-26-2009, 01:43 AM
happytriger2000's Avatar  
Join Date: Nov 2004
Location: currently in Taiwan
Posts: 157
happytriger2000 is on a distinguished road

Hi ger21,
I think I need help on Mach 3 as I have been using Mach 2 all this time, upgrading to Mach 3 is quite a challenge to me.

I recorded a clip of the code I was running from:

When the code reaches to T3 M6, shouldn't the spindle raise to a point and wait for manual change?, and the machine is running strangely slow or not smooth compare to mach2.

Here is a clip of my machine in Mach 2:


Freddy
Reply With Quote

  #4   Ban this user!
Old 04-26-2009, 03:34 AM
happytriger2000's Avatar  
Join Date: Nov 2004
Location: currently in Taiwan
Posts: 157
happytriger2000 is on a distinguished road

Hi ger21,
OK I'm a bit confused....when you said "Call M6 to change it" , the code Line 5: N50 T3 M6, Do I leave it as it is? and I know I have to edit the VB, but which file? the M6Start? or Do I create a new .M1s file as M6.M1s?


G-code:

N10 G21
N20 G0 G17 G40 G49 G80 G90
N30 G64
N40 (Pencil Tracing)
N50 T3 M6 <-------------------Do I need to Edit Vb code in M6Start?
N60 S5000 M03
N70 G00 Z-2.2225
N80 X113.8931 Y77.2267
N90 G01 Z-27.1947 F889.0
N100 G01 Z-27.8297
N110 G01 X113.5821 Y76.6842 Z-27.9400 F1016.0
N120 G01 X113.3706 Y76.3152 Z-11.1806 F1143.0
N130 G01 X112.8049 Y76.4470 Z-10.2533
N140 G01 X112.2392 Y76.5125 Z-9.7715
N150 G01 X111.6735 Y76.5617 Z-9.4867
N160 G01 X111.1079 Y76.5971 Z-9.3423
N170 G01 X110.5422 Y76.6201 Z-9.3066
N180 G01 X109.9765 Y76.6375 Z-9.303


Freddy
Reply With Quote

  #5  
Old 04-26-2009, 07:45 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?

What do you want it to do when it gets to the M6? Do you have it set like this in General Config?

If you want to change somethng, edit the M6Start macro. Post the contents of it here so I can see what it's doing.
Attached Thumbnails
Click image for larger version

Name:	tc.jpg‎
Views:	60
Size:	55.2 KB
ID:	80294  
__________________
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

Sponsored Links
  #6   Ban this user!
Old 04-26-2009, 11:37 AM
happytriger2000's Avatar  
Join Date: Nov 2004
Location: currently in Taiwan
Posts: 157
happytriger2000 is on a distinguished road

Hi Gerry,
Thank you for replying.

When the code hits M6, the spindle move away from the ref point, let say Z= 50mm , Y= -25, x = 0 so I can change the tool by hand, then Auto Tool Zero at this point and then continue milling.

Total tool of 3,
tool 0 = 4 mm end mill
tool 1 = 2.5 radius
tool 2 = 2radius.

'ToolChange Macro For Bed type tool changer 11/05 Brian
Sub Main()
OldTool = GetOEMDRO (1200) 'Tool In spindle DRO You must add this to your settings screen
x = GetToolChangeStart( 0 )
y = GetToolChangeStart( 1 )
z = GetToolChangeStart( 2 )

tool = GetSelectedTool()
NewTool = tool
'Tool Changer Macro (Bed Type)
MaxToolNum = 3 'Max number off tools for the changer
ToolDown = -3.125 'Z Pos to Get or drop a tool
ToolUp = 0.0 'Z Hieght to Rapid from tool to tool
If NewTool = OldTool Then
Exit Sub
End If
While NewTool > MaxToolNum
NewTool = Question ("Enter New Tool Number up to " & MaxToolNum)
Wend
Code "G00 G53 Z" & ToolUp
While IsMoving()
Wend
Call MovePos(OldTool)
While IsMoving()
Wend
Code "G53 Z" & ToolDown
Code "G4 P.75"
While IsMoving()
Wend
ActivateSignal(Output1) 'Turn On Draw bar to release the tool
Code "G4 P1.0" 'Wait for the tool to release
'SystemWaitFor (7) 'Wait for the tool Release Limit switch
Code "G53 Z" & ToolUp
Call MovePos(NewTool)
While IsMoving()
Wend
Code "G53 Z" & ToolDown
Code "G4 P.75"
While IsMoving()
Wend
DeActivateSignal(Output1) 'Turn Off Draw bar to Clamp the tool
Code "G4 P1.0" 'Wait for the tool to Clamp
While IsMoving()
Wend
Code "G53 Z" & ToolUp
Call SetUserDRO (1200,NewTool)
SetCurrentTool( NewTool )
Code "G00 X" & x & " Y" & y 'Move back to where the tool change was prompted
End Sub

Sub MovePos(ByVal ToolNumber As Integer)

Select Case ToolNumber
Case Is = 1
Xpos = 12.00
YPos = 2.00
Case Is = 2
Xpos = 14.00
YPos = 2.00
Case Is = 3
Xpos = 16.00
YPos = 2.00
Case Is = 4
Xpos = 18.00
YPos = 2.00
Case Is = 5
Xpos = 12.00
YPos = 4.00
Case Is = 6
Xpos = 14.00
YPos = 4.00
Case Is = 7
Xpos = 16.00
YPos = 4.00
Case Is = 8
Xpos = 18.00
YPos = 4.00
End Select

Code "G53 X" & XPos & " Y" & YPos
End Sub
Main
Reply With Quote

  #7   Ban this user!
Old 04-26-2009, 01:27 PM
happytriger2000's Avatar  
Join Date: Nov 2004
Location: currently in Taiwan
Posts: 157
happytriger2000 is on a distinguished road

I found a thread which is similar to what I want to achieve:
http://www.cnczone.com/forums/showthread.php?t=75878
but where do you put "Code("G1 Z1") Code("G1 X-1 Y0") " in the M6start.m1s?

Freddy
Reply With Quote

  #8  
Old 04-26-2009, 01:46 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?

Code("G1 Z1")
Code("G1 X-1 Y0")
tool = GetSelectedTool()
SetCurrentTool( tool )

The code you posted is for an automatic tool changer. That's not your M6Start, is it??
__________________
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

  #9   Ban this user!
Old 04-26-2009, 02:04 PM
happytriger2000's Avatar  
Join Date: Nov 2004
Location: currently in Taiwan
Posts: 157
happytriger2000 is on a distinguished road

Originally Posted by ger21 View Post
Code("G1 Z1")
Code("G1 X-1 Y0")
tool = GetSelectedTool()
SetCurrentTool( tool )

The code you posted is for an automatic tool changer. That's not your M6Start, is it??
Hi Gerry,
No no, that's not the code, I was just modifying it.

About the following code, are those code the answer for my manual tool change?, if yes, therefore raise z= 50mm, y = -25, x=0 ------------

-----> Code("G1 Z50")
Code("G1 X0 Y-25")
tool = GetSelectedTool()
SetCurrentTool( tool )

is this code correct?

Freddy
Reply With Quote

  #10  
Old 04-26-2009, 04:26 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?

I'm not 100% sure what you want to do, but I think so.
__________________
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

Sponsored Links
  #11   Ban this user!
Old 04-26-2009, 10:46 PM
happytriger2000's Avatar  
Join Date: Nov 2004
Location: currently in Taiwan
Posts: 157
happytriger2000 is on a distinguished road

Hi Gerry,
I tested and it seems ok, but the speed is a bit slow, how do I speed it up?

Freddy
Reply With Quote

  #12   Ban this user!
Old 04-26-2009, 11:53 PM
happytriger2000's Avatar  
Join Date: Nov 2004
Location: currently in Taiwan
Posts: 157
happytriger2000 is on a distinguished road

I replaced G1 to G0:

Code("G0 Z35")
Code("G0 X0 Y-40")
tool = GetSelectedTool()
SetCurrentTool( tool )

Next: having the new tool loaded, I want it to "Auto Tool Zero" by touching the copper tube ( thread by Erniebro), like the link below:
http://www.cnczone.com/forums/showth...d=56079&page=1

Question:

Can I save the M6Start.m1s lie this:

Code("G0 Z35")
Code("G0 X0 Y-40")
tool = GetSelectedTool()
SetCurrentTool( tool )

PlateThickness = GetUserDRO(1151) 'Z-plate thickness DRO

If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P5" ' this delay gives me time to get from computer to hold probe in place
Code "G31Z-40 F500" 'probing move, can set the feed rate here as well as how far to move
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetVar(2002) 'get the axact point the probe was hit
Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, PlateThickness) 'set the Z axis DRO to whatever is set as plate thickness
Code "G4 P0.25" 'Pause for Dro to update.
Code "G0 Z25.4" 'put the Z retract height you want here
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Exit Sub
End If


Freddy
Reply With Quote

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
Very slow tool change on Tool Room Mill Capt Crunch Haas Mills 3 12-21-2007 12:20 PM
Manually Change Endmill DroopyPawn G-Code Programing 9 11-20-2007 01:04 AM
How to change Tool change position(About MAZATROL T1 control) liushuixingyun Mazak, Mitsubishi, Mazatrol 5 07-07-2007 02:58 PM
How to do tool change Art Ransom Machines running Mach Software 0 11-21-2006 06:46 AM
Tool Change WOODKNACK General CAM Discussion 10 07-12-2003 09:26 PM




All times are GMT -5. The time now is 11:04 PM.





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