Hello Guest it is October 01, 2020, 09:52:36 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 - mike^3

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 »
21
This might be because the spindle is not trying to correct its speed...Heres a video, any help?

https://www.youtube.com/watch?v=FjkSUMz8I6o

22
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! :)

24
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
   


25
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;

26
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 :)

27
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

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


29
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!!!!

30
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

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