Hello Guest it is April 26, 2024, 05:18:23 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 - mike^3

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 »
21
Hello community! I am almost done retrofitting my CHNC4 to mach 3,

I am having an issue though.

When I use the lathe wizard, it threads great when at 500 rpm, or whatever I set it at.

The problem is that the first pass is 45rpm, then 250, then 500 (requested rpm in the wizard).

Any ideas?

Im going to try to make some cam gcode with fusion 360 and see if that fixes it.

Thanks so much! I will upload a video shortly! :)

23
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 19, 2015, 09:01:28 AM »
WORKs!

Here Is my final code, I cant thank you enough! THANK YOU!

Sub Main()
' -------------------------------------------------------------------------------
' TPS 19.10.2015 
' Toolchange for a 8 place turret (single step)
' V 5.0.1
' -------------------------------------------------------------------------------

' pin2 is mapped to Input1
' pin3 is mapped to Input2
' pin4 is mapped to Input3
' pin5 is mapped to Input4
' charger seated is mapped to OEMTRIG1

'get the new tool ---------------------------------------------------------------
tool = GetSelectedTool()

' nothing to do
If GetSelectedTool() = GetCurrentTool() Then
     message("Tool is the same NO tool change needed")
   End
End If
 
If  tool > 8 Or tool < 1 Then 'check tool number to be in range
    Message (" Tool " & tool & " is not a valid Number 1-8 ONLY, ENDING Program RUN ")
    DoButton(3)
    End
End If


tryagain:

'get actual starttime
Starttime = Timer

Message "Moving to Tool# " &GetselectedTool()


   Akttime = Timer
   While Akttime - Starttime < 50 'try until timeout

    ActivateSignal(OutPut5)  'unlocks stop dog
    Sleep(100)              'wait for a second
    ActivateSignal(OutPut6)  'turn air motor on
    Sleep(100)              'wait for a second
    DeActivateSignal(OutPut5)    'locks stop dog
    Sleep(200)              'wait for a second
    DeActivateSignal(OutPut6)    'turn air motor off
    Sleep(300)

    'check the position
    If GetTurret() = tool Then
       GoTo finished
    End If   
       
    Akttime = Timer
    If Akttime - Starttime > 40 Then 'Timeout 20s
       Message("Turret timeout")
       DeActivateSignal(output5)    'locks stop dog
       Sleep(1000)                  'wait for a second
       DeActivateSignal(OutPut6)    'turn air motor off
       End
    End If
   Wend
   
finished:

   'recheck the turretpos and retry
   If  GetTurret() <> tool Then
        GoTo tryagain
   End If


    'look for OEMTRIG1
    If Not IsActive(OEMTRIG1) = false Then
        DOButton(3)
        MsgBox("Tool changer not seated!")
        End
    End If   

    Message("Tool " & tool & " Loaded")
    SetCurrentTool( tool )
   
End Sub

 

'function to get the actual turret position
Function GetTurret() As Long
   GetTurret = 0
    If IsActive(Input1) Then
        GetTurret = GetTurret + 1
    End If
   
    If IsActive(Input2) Then
        GetTurret = GetTurret + 2
    End If

    If IsActive(Input3) Then
        GetTurret = GetTurret + 4
    End If

    If IsActive(Input4) Then
        GetTurret = GetTurret + 8
    End If
   
End Function
   


24
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 19, 2015, 08:46:03 AM »
its working great, but it keeps saying tool changer not seated, but it is... ...checked the oem trigger and it is getting the signal;

25
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 19, 2015, 08:28:53 AM »
Ohh I see, ill play with the sleep times to see If i can get it to work....few min :)

26
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 19, 2015, 07:34:16 AM »
Hi!,

The last code just spins the turret, it doesn't stop, and then I hit etop after like 10 secs lol

27
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 18, 2015, 10:37:47 PM »
Thanks joanthon!


28
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 18, 2015, 10:23:36 PM »
It works!!! https://www.youtube.com/watch?v=sqyWY0Dk5fk

Thank you TPS! Question tho, you notice that the tool changer does one tool at a time when the wrong tool is sensed? Can we just do that  instead of free spin the turret and try to catch the correct tool?

Meaning when we ask for a tool, it will goto each tool, sit down for like 1/2 second, read input, if not at right tool, keep going, etc etc till it gets the right tool?

That would complete the tool changer!!!!

29
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 18, 2015, 04:19:38 PM »
Awesome, I think that part is essential for reliable parts, lol and non broken machines lol

30
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 18, 2015, 04:01:37 PM »
The challenge with replacing the air turret is complicated. I would have to build new plates, and blocks, and bearing seats, etc etc...

I was thinking of a PLC, but have no experience.

I havnt heard from you in a while, didn't know if you still wanted to work on it. ;)

The speed is very constant...I thought it would vary but observing it for as long as I have, (I even bought a big 60gallon compressor to make sure the air is constant)...

That air flow adjustment works great and its a very fine tuning option...which I slowed it down all the way, its not an issue of speed, for some reason mach might be seeing inputs when its not supposed too....I think that's why it was missing tools, also I tried different debouncing, and it did not help...

I would love to try your gcode as well TP, I got TPS's gcode I will try tonight...Is yours working  yet TP? I could try yours as well...

I appreciate all of your help....I am going to make a video once its all done, nicely of course, and explain how I got it work for future friends! :D


Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 »