Hello Guest it is July 07, 2020, 12:06:20 AM

Author Topic: Tool table offset ignored  (Read 1005 times)

0 Members and 1 Guest are viewing this topic.

Tool table offset ignored
« on: March 24, 2016, 05:43:54 AM »
I have a problem with the tool table it concerns the tool table entries beyond pos 8

Machine: Retrofited Emcoturn 140 with a Sauter turret ( 8 Positions) running on Mach3Turn

Everything works fine until I want to use another tool in one of the tool positions. The tool offset from the tool table is only for a few seconds visible before it change back to the prior off set.
I am use several sizes of drills in Pos 4, the tool table entries are T0404, T0412 and T0420.
If I give the tools change command T0412 the correct Z value shows only for a second and it changes back to the value of the T0404 Z value.

Does anyone know a solution for this problem?

Statler

Offline RICH

*
  • *
  •  7,410 7,410
    • View Profile
Re: Tool table offset ignored
« Reply #1 on: March 24, 2016, 07:07:20 AM »
What version of Mach are you using?
May also want to post your macro / M6 / script for review.

RICH
Re: Tool table offset ignored
« Reply #2 on: March 24, 2016, 09:10:07 AM »
Hi Rich,

Mach3 version R.3.043.066

I hope this is the script info you mean (from the M6start.m1s file)


Code "M200"

Sleep (3000)

    NewTool=GetSelectedTool()
OldTool=GetCurrentTool()
MaxToolNum = 8


If OldTool<>NewTool Then
 While Tool <> NewTool
 ActivateSignal(Output3)
 If isactive(Input1)And isactive(Input2)And Not isactive(Input3)And Not isactive(Input4) And Not isactive (Oemtrig1) Then
    Tool=1
    End If
 If isactive(Input1)And Not isactive(Input2)And isactive(Input3)And Not isactive(Input4) And Not isactive (Oemtrig1) Then
    Tool=2
    End If
 If isactive(Input1)And isactive(Input2)And isactive(Input3)And Not isactive(Input4) And Not isactive (Oemtrig1) Then
    Tool=3
    End If
 If isactive(Input1)And Not isactive(Input2)And Not isactive(Input3)And isactive(Input4) And Not isactive (Oemtrig1) Then
    Tool=4
    End If
 If isactive(Input1)And isactive(Input2)And Not isactive(Input3)And isactive(Input4) And Not isactive (Oemtrig1) Then
    Tool=5
    End If
 If isactive(Input1)And Not isactive(Input2)And isactive(Input3)And isactive(Input4) And Not isactive (Oemtrig1) Then
    Tool=6
    End If
 If isactive(Input1)And isactive(Input2)And isactive(Input3)And isactive(Input4) And Not isactive (Oemtrig1)Then
    Tool=7
    End If
 If isactive(Input1)And Not isactive(Input2)And Not isactive(Input3)And Not isactive(Input4) And isactive (Oemtrig1)Then
    Tool=8
    End If
  Wend
  If isactive(OEMTRIG5) Then
  Sleep (100)
  DeActivateSignal(Output3)
  End if
 
  ActivateSignal(Output4)
  Sleep(100)
  ActivateSignal(Output7)
  Sleep(1500)
  DeActivateSignal(Output4)
  DeActivateSignal(Output7)
End If
 
SetOEMDRO(824,Newtool)
While IsMoving
Wend


 End   


Grtz Statler