Hello Guest it is April 26, 2024, 08:14:48 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.


Messages - Graham Waterworth

1021
General Mach Discussion / Re: Spindle output messes up tool change
« on: December 30, 2011, 04:54:43 PM »
If you can not find the problem post your macro files M3.m1s, M4.m1s, M5.m1s, M6Start.m1s and M6End.m1s so we can have a look at them, it looks as if there is interlock code in them.

Graham

1022
General Mach Discussion / Re: Spindle output messes up tool change
« on: December 30, 2011, 09:41:22 AM »
I was asking to see if there was some sort of interlock in the M3/4 that is cancelled in the M5

Graham

1023
General Mach Discussion / Re: Spindle output messes up tool change
« on: December 30, 2011, 06:52:49 AM »
If you issue a M5 before the tool change will it work?

Graham

1024
Try it like this

'power on the optical home detector and wait 500 ms before homing
ActivateSignal(Output3)
Sleep (500)
' home 3 axis
DoButton(24)
DoButton(23)
DoButton(22)
while ismoving()
wend
'cut power on the optical home detector
DeActivateSignal(Output3)

Graham

1025
General Mach Discussion / Re: changing Machine zero
« on: December 27, 2011, 01:20:32 PM »
Check the offsets table and see if there is a figure in tool 1.  If so remove it e.g. set it to zero

Graham

1026
General Mach Discussion / Re: changing Machine zero
« on: December 27, 2011, 12:54:41 PM »
Have you got a tool offset set, is there a G43 H1 of something like in the program.

Graham

1027
You will need to add the 5" to the formula in the sub routine, add another #nnn to do this.

Graham

1028
General Mach Discussion / Re: gcode for "home"
« on: December 19, 2011, 12:06:06 PM »
Or you can search for home with G28.1 X0 Y0 Z0

Graham

1029
General Mach Discussion / Re: Lathe Turret Macro
« on: December 19, 2011, 10:51:12 AM »
The tool change routine would look something like this :-

Dim new_tool As Integer
Dim old_tool As Integer
Dim move_a As Integer
Dim a_angle As Integer

new_tool=GetSelectedTool()
old_tool=GetCurrentTool()
a_angle=45

If new_tool>0 And new_tool <9 Then
  If old_tool <> new_tool Then
    move_a = 8 - old_tool + new_tool
    move_a = move_a Mod 8
    move_a = move_a * a_angle
    ActivateSignal(OutPut7)
    Sleep 500
    Code "G00 G91 A" & move_a
    While IsMoving()
    Wend
    DeActivateSignal(OutPut7)
    Code "G90"
    SetCurrentTool(new_tool)
  End If
End If



Graham

1030
General Mach Discussion / Re: Lathe Turret Macro
« on: December 18, 2011, 03:57:59 PM »
The problem is you are using absolute g-code for the A axis,  change the g-code to work in incremental moves.