Hello Guest it is April 19, 2024, 08:09:13 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 »
51
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 12, 2015, 08:05:55 AM »
That works great thomas! May I ask one last thing? Also can I paypal you some money for helping me?

1. Can I put in a command that, after output 6 deactivates wait 1 second, then the macro looks for oemtrigger1 and if it is low, then estop the machine and msgbox 'Tool changer not seated!

2. Can we put in, only tools 1-8 are valid, if >8 and <1 dont proceed, kinda like this

If  NewTool > 8 Or NewTool < 1 Then
MsgBox" Tool # not a valid Number 1-8 ONLY, ENDING Program RUN "
DoButton(3)
End
End If

THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D :D :D :D :D :D :D :D :D :D :D :D

52
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 10, 2015, 07:45:49 AM »
Hi TPS, I am running into a challenge, I cant get the turret to stop accurately

...So...I was thinking... can we put a deactivate output 5 before the deactivate output 6 with a time delay (that I can adjust)?

So that when output 5 disables (engages the stop dog) keep output 6 active for like 1 second until the stop dog stops the turret.

The stop dog is NOT a pin, its like a finger, and when output 5 is disabled...the finger grabs onto the bottom turret and when the turret spins, it will then stop to the next tool. Then we can deactive output 6 (after 1 second), which stops the air and drops the turret (the finger from the stopdog will stop the turret, and then output 6 will just stop the air to the air motor and then drop the turret)

I believe this will make it work perfectly...

So...

activate output 5 ' unlocks stop dog

wait for a second

activate output 6 ' raises turret and spins

wait for case command

when case is true for right tool

deactivate output 5 'locks the stop dog
wait 1 second
then
deactivate output 6 ' stops the turret and lowers it

continue program...

:D

Could we put this in? Along with estop and time outs?

Is there anything I can do in return for your help? 

Thank you!

53
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 09, 2015, 03:35:18 PM »
Sweet thank u, I'll try it on my lathe shortly and upload a vid! ;)

54
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 09, 2015, 01:05:48 PM »
Seems to be working great here, can you put in 2 things?

1. There is a switch (oemtrigger1) when it is active low the turret is not seating properly, can you put this in after each tool change, if it does not sense the HI then try again, but if it does not sense the HI then estop the machine and msg box "Turret not seating!"

2. Can you put an estop in after ther turret timeout, to 3stop the machine? and msg box "Turret could not find tool ESTOP machine"?

You are awesome my friend!!

55
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 09, 2015, 09:17:50 AM »
Thanks will try it soon!

56
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 09, 2015, 09:02:21 AM »
I mean see the input, (so turret does just keep spinning and spinning and spinning)

 ;D

57
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 09, 2015, 09:01:45 AM »
Seems to work, can you add a time out incase it doesnt see the code?

And It still would need a deactivate output 6, so the turret stops LOL

58
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 09, 2015, 08:52:58 AM »
Hello,

I can see the 4 inputs, but your code seems off, you are only looking for one input for each tool change, input1

look at your code ;)

59
General Mach Discussion / Re: CNC Lathe turret tool changer help?
« on: October 09, 2015, 08:46:58 AM »
Hi Thanks for the response, that does not seem to work....

60
General Mach Discussion / CNC Lathe turret tool changer help?
« on: October 07, 2015, 04:06:28 PM »
 ;D I appreciate all help!!!

Hello everyone! I am retrofitting my CHNC4, I am working on the lathe portion now. Currently there are 4 wires coming off the lathe encoder.

Here is the output states of each wire to what tool it is at.


Output 6 is the output to start and stop the turret.

Tool   pin 2   pin 3   pin 4   pin 5
1   1   0   0   0
2   0   1   0   0
3   1   1   0   0
4   0   0   1   0
5   1   0   1   0
6   0   1   1   0
7   1   1   1   0
8   0   0   0   1


Here is the script I started. However I have 2 questions:

Question #1: What do I need to add to the script to update the current tool and tool offset to reflect selected tool?

Question #2: How would I be able to compare the signals for example when I get to tool 7 when pin 2,3, and 4 are HI? To tell mach, yes you are at tool 7 because all states are HI? I tried to put Active1 & active2 etc etc when the 2 or more signals need to be compared. However when I emulate an active state on those inputs, mach does not activate output6 or stop when I hit the emulated key (it shows on the diagnostic screen that it is active when I hit the key)

If GetSelectedTool() = GetCurrentTool() Then
     message("Tool is the same NO tool change needed")
   END
    End If
 
 
 If GetSelectedTool = 1 Then
 Message "Moving to Tool# " &GetselectedTool()

    Do
     ActivateSignal(OutPut6)
   If IsActive(Active1) Then Exit Do
   Loop
    DeActivateSignal(Active1)
       Message("Tool#1 Loaded")
   End If
 
 If GetSelectedTool = 2 Then
 Message "Moving to Tool# " &GetselectedTool()

    Do
     ActivateSignal(OutPut6)
   If IsActive(Active2) Then Exit Do
   Loop
    DeActivateSignal(OutPut6)
       Message("Tool#1 Loaded")
   End If
   
 If GetSelectedTool = 3 Then
 Message "Moving to Tool# " &GetselectedTool()

    Do
     ActivateSignal(OutPut6)
   If IsActive(Active1) & IsActive(Active2) Then Exit Do
   Loop
    DeActivateSignal(OutPut6)
       Message("Tool#1 Loaded")
   End If   

 If GetSelectedTool = 4 Then
 Message "Moving to Tool# " &GetselectedTool()

    Do
     ActivateSignal(OutPut6)
   If IsActive(Active3) Then Exit Do
   Loop
    DeActivateSignal(OutPut6)
       Message("Tool#1 Loaded")
   End If   
   
 If GetSelectedTool = 5 Then
 Message "Moving to Tool# " &GetselectedTool()

    Do
     ActivateSignal(OutPut6)
   If IsActive(Active1) & IsActive(Active3) Then Exit Do
   Loop
    DeActivateSignal(OutPut6)
       Message("Tool#1 Loaded")
   End If   
   
 If GetSelectedTool = 6 Then
 Message "Moving to Tool# " &GetselectedTool()

    Do
     ActivateSignal(OutPut6)
   If IsActive(Active2) & IsActive(Active3) Then Exit Do
   Loop
    DeActivateSignal(OutPut6)
       Message("Tool#1 Loaded")
   End If   
   
 If GetSelectedTool = 7 Then
 Message "Moving to Tool# " &GetselectedTool()

    Do
     ActivateSignal(OutPut6)
   If IsActive(Active1) & IsActive(Active2) & IsActive(Active3) Then Exit Do
   Loop
    DeActivateSignal(OutPut6)
       Message("Tool#1 Loaded")
   End If   
   
 If GetSelectedTool = 8 Then
 Message "Moving to Tool# " &GetselectedTool()

    Do
     ActivateSignal(OutPut6)
   If IsActive(Active4) Then Exit Do
   Loop
    DeActivateSignal(OutPut6)
       Message("Tool#1 Loaded")
   End If      
   
     End    

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