Hello Guest it is March 28, 2024, 08:30:52 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - stvracer

Pages: 1
1
General Mach Discussion / Re: Tool change M-code in V2.60?
« on: November 23, 2007, 09:50:38 PM »
I am having the same issue with 2.58 and 2.6 when you type t2m6 g43 into the MDI the tool dro does not change the tool offsets seem to work but with an automatic tool changer I was afraid to use it I downgraded back to 2.00.065 and it is working again.

Steve
Skfab

2
General Mach Discussion / Re: Tool changer macro help
« on: April 09, 2007, 01:08:25 AM »
I got it to work by putting a pause after the (g53 g0 z0) that let the plc engage and lockout the input1. I could not get SystemWaitFor ( INPUT4 ) to let the system go even with the input signal working. Is there additional code that goes with systemwaitfor ()  that makes it work?

3
General Mach Discussion / Re: Tool changer macro help
« on: April 08, 2007, 01:23:01 PM »
Thanks I will give that a try later today. MY tool change bit is only on about .5 second after the tool change is this ok?

4
General Mach Discussion / Tool changer macro help
« on: April 08, 2007, 01:01:21 AM »
Hi All
 I can't seem to get Mach3 2.00.061 to wait for my plc to change the tool when the config screen is set to automatic tool changer. It works fine if I set it to stop spindle and wait but I have to be there to push the cycle start after each tool change is complete. Any help would be much appreciated, Here is my m6start.m1s macro.



Num_Positions = 16
Code ("G53 g0 z0")
While IsMoving()
Wend
'SystemWaitfor ( INPUT4 )'toolchange complete signal
OldTool = GetOemDRO (1200) 'Tool In spindle DRO
While OldTool > Num_Positions Or OldTool <= 0     ' Check for a valid tool   
OldTool = Question ("Invalid Tool , Current Tool Number?")   
Wend
tool = GetSelectedTool() 
While Tool > Num_Positions Or Tool <= 0 ' Check for a valid tool   
Tool = Question ("Invalid Tool Requested, New Tool Number?")   
Wend   
NewTool = Tool
If NewTool = OldTool Then
   Exit Sub
End if
ToolDif1 = NewTool - OldTool 
ToolDif2 = OldTool - NewTool
If ToolDif1 < ToolDif2 Then
CarMove = ToolDif2
ActivateSignal( 8 )           'set carrosel to turn cw
Else
CarMove = ToolDif1
DeActivateSignal( 8 )         'set carrosel to turn ccw
End If
setmodoutput ( 64 , CarMove ) ' set plc counter to rotate number of positions
ActivateSignal( 9 )           ' activate toolchange
While IsActive (20)           ' wait for counter
Wend
DeActivateSignal( 9 )         ' insert tool and retract
Call SetUserDRO (1200,NewTool) 


Thanks
Steve
SKFab             
 

Pages: 1