Hello Guest it is December 05, 2023, 10:50:33 PM

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.

Topics - marcello

Pages: 1
General Mach Discussion / starting cycle after tool change
« on: September 24, 2008, 09:18:42 AM »
Hello friends,

i have a router with 3 head (tool changer) connected to Zaxis and activated by 3 pneumatic actuator.(output 1 to 3)

everything is working well the machine change positoning and tools ,but i need the machine to recontinue the automatic cycle after tool changing without pressing cycle start.

here is my m6start.m1s

Code: [Select]
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 )
a = GetToolChangeStart( 3 )
b = GetToolChangeStart( 4 )
c = GetToolChangeStart( 5 )
tool = GetSelectedTool()
NewTool = tool
MaxToolNum = 3     'Max number off tools for the changer
ToolDown   = -3.125 'Z Pos to Get or drop a tool
ToolUp     = 10.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)
Code "G00 G53 Z" & ToolUp
While IsMoving()
Call oldPos(OldTool) 'get the old tools position
While IsMoving()
DeActivateSignal(Output1) 'turn off 1st head
DeActivateSignal(Output2) 'turn off 2nd head
DeActivateSignal(Output3) 'turn off 3rd head

Xo = GetOEMDRO (1150) 'old position
Yo = GetOEMDRO (1151) 'old position
While IsMoving()
Call newPos(NewTool)'get the new tools position
While IsMoving()
Xn = GetOEMDRO (1152) 'new position
Yn = GetOEMDRO (1153) 'new position

While IsMoving()


SetCurrentTool( NewTool )
Code "G91 X" & (Xn-Xo) &"Y" & (Yn-Yo) 'change position to new tools
Code "G92 X" & x  & "Y" & y           
code "G90"
Code "G0 Z" & z
Call SetUserDRO (1200,NewTool)
End Sub

Sub oldPos(ByVal ToolNumber As Integer)

Select Case ToolNumber
       Case Is = 1
         Xpos1 = 0
         YPos1 = 10
       Case Is = 2
         Xpos1 = 0
         YPos1 = 20
       Case Is = 3
         Xpos1 = 0
         YPos1 = 30
End Select

Call SetUserDRO (1150,Xpos1) 'old position

Call SetUserDRO (1151,Ypos1) 'old position

End Sub

Sub newPos(ByVal ToolNumber As Integer)

Select Case ToolNumber
       Case Is = 1
         Xpos = 0 'position of first tools
         YPos = 10
       ActivateSignal(Output1)' active first tools
       Case Is = 2
         Xpos = 0  ' position of 2nd tools
         YPos =20
       ActivateSignal(Output2)' active 2nd tools
       Case Is = 3
         Xpos = 0  'position of 3rd tools
         YPos = 30
         ActivateSignal(Output3)' active 3rd tools
End Select
Call SetUserDRO (1152,Xpos) ' new position
Call SetUserDRO (1153,Ypos) ' new position

End Sub

General Mach Discussion / shuttle.exe don't work?
« on: December 10, 2007, 02:59:38 PM »
hello guys.
why the key inside shuttle.exe do not work when i use mach3.swf screen.

LazyCam (Beta) / problem with lazycam
« on: November 27, 2007, 02:49:05 PM »
hello everybody.
why when  i inport a dxf file(one chain) into lazycam, lazycam directly transform it to multi chain check attached file and pics

General Mach Discussion / feedrate override doesn't take effect?
« on: November 13, 2007, 03:35:20 PM »
hello everybody.
I'm using mach3 with grex g100 and I'm facing the following problem:
the feedrate override doesn't take effect while the cycle is started
only take effect after pressing (feed hold) and then (cycle start) buttons

General Mach Discussion / feedrate override and mpg jog problem with grex
« on: November 09, 2007, 04:09:11 PM »
hello everybody.
I'm facing the following two problem with milling machine using mach3 and grex.

1.the traveling speed(UNIT/MIN) do not change when the FRO change using analogue input of G100,but u can see it working offline (no device,check picture)

2. the mpg jog work for a few second before stop working i change to the second axis
it work for a seconds and stop working and the same for the 3th axis  and after i cant change any axis using mpg but it's still working using arrow from screen.

Marcel khalaf.

General Mach Discussion / how to modify the top menu?
« on: September 27, 2007, 10:33:10 AM »
hello everybody
is it possible to change the top menu in mach3

hello everybody.
is it possible to edit add remove  and modify the menu in mach3 ???

Pages: 1