Hello Guest it is July 17, 2019, 05:20:15 PM

Author Topic: Tool Changes and hair loss!  (Read 3149 times)

0 Members and 1 Guest are viewing this topic.

Tool Changes and hair loss!
« on: June 24, 2008, 09:07:51 PM »
First off, I apologise if this has been asked 100 times before but I couldn't find it by searching, or reading the manual.

I'm trying to figure out how to get Mach to restart after changing tools. After reading the manual I've noticed the following things:

1. Code jumps right to the M6 line in the code (from Lcam) (first tool is not 0)

2. Tool change LED does not flash as described

3. machine does not go to safe Z (I think I have this set up correctly)

4. entering a new tool in the T DRO, hitting enter and cycle start does nothing.  (have stop spindle and wait for start checked in config.)

5. "Nested comment in line "X" always appears in the message center when cycle start is clicked.

This is causing me GREAT grief! I'm doing something wrong but don't know what. Any help is appreciated!

Ryan
« Last Edit: June 24, 2008, 09:09:55 PM by lowslo »

Offline Chaoticone

*
  • *
  •  5,524 5,524
  • Precision Chaos
    • View Profile
Re: Tool Changes and hair loss!
« Reply #1 on: June 24, 2008, 10:02:59 PM »
Changeing the tool number in the tool DRO will not call a tool change. Only an M6 from the MDI line or from your code will do this and it can't be tool 0 I don't think. If this is what your doing then.........

What do you want it to do exactly? The M6 start and M6 end macros will have to be made to suit you I think. Have a look in those and post the code up for us to see if you will. From mach, go to operator, VB script editor. open file and browse to macros, the profile your runing and should see the M6Start.m1s and M6End.m1s files there. Lets see what's in those. However, i think it should just pause and wait for start if you do have stop spindle and wait checked.

Hope this helps.

Brett
« Last Edit: June 24, 2008, 10:04:38 PM by Chaoticone »
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!

Offline Chaoticone

*
  • *
  •  5,524 5,524
  • Precision Chaos
    • View Profile
Re: Tool Changes and hair loss!
« Reply #2 on: June 24, 2008, 10:07:05 PM »
Wait........ as a simple test, do this please. Go to MDI and type in
M6 T1  then M6 T2 and see what it does. Jum from MDI page to run page after each and see if tool number dro is changeing. Also press cycle start when there. Should see pree cycle start after tool change in the status line from MDI page if it is waiting on you.

Brett
« Last Edit: June 24, 2008, 10:11:13 PM by Chaoticone »
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: Tool Changes and hair loss!
« Reply #3 on: June 24, 2008, 10:14:17 PM »
Yes, I'm getting the M6 command from Lcam generated code.

I'll try to post what you asked for. (I'm a total VB moron)

M6 start macro is

tool = GetSelectedTool()
  SetCurrentTool( tool )

end is

 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
       
Re: Tool Changes and hair loss!
« Reply #4 on: June 24, 2008, 10:16:52 PM »
Wait........ as a simple test, do this please. Go to MDI and type in
M6 T1  then M6 T2 and see what it does. Jum from MDI page to run page after each and see if tool number dro is changeing. Also press cycle start when there. Should see pree cycle start after tool change in the status line from MDI page if it is waiting on you.

Brett

That worked. Now what does that tell us?

Offline Chaoticone

*
  • *
  •  5,524 5,524
  • Precision Chaos
    • View Profile
Re: Tool Changes and hair loss!
« Reply #5 on: June 24, 2008, 10:21:08 PM »
I have sent you a personal message.

Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!