Hello Guest it is October 01, 2020, 09:06:19 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 »
61
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    

62
General Mach Discussion / Tool changer help?
« on: October 06, 2015, 09:46:57 AM »
Hello,
I have a tool changer on my lathe and need some help...

Its 8 stations, and i have 4 states that come off the tool changer.


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

Can anyone help me set up this in the inputs and tool change macro?

Thank you!

63
General Mach Discussion / New cnc lathe turret macro ? :D
« on: October 02, 2015, 08:51:58 PM »
Hi Guys, how would I make my macro if these were the steps I wanted? For a tool changer, I have 8 inputs on my c23 board for each tool change position. inputs 1 - 8 = tool 1 - 8

goto z0.2 (machine coordinates)

activate output 6

wait for signal on input 1 (high) for tool 1 ( and input 2-8 if I want tools 2 - 8) (it is an 8 station tool changer)

if signal is not seen within 20 secs, e-stop and alarm and stat (tool changer not sensing input)

then deactivate output 6

Update current tool to selected tool, and tool offset

resume program,

Any help guys?>

64
General Mach Discussion / Re: Turret macro question! VERY COOL TURRET :D
« on: October 02, 2015, 07:17:12 PM »
I could slow the turret down during tool change, this would eliminate the speed issue, (small adjustment on back of turret :).

I looked in the manual, and there are 4 outputs from the encoder, I will need to power it and read the inputs to see what the logic is.

I do think mach 3 can see it quick enough to handle.

I think it would all rely on the code.

Worse case scenario is that I install 8 hall effect transistors and replace the encoder with 8 outputs and feed then right to the inputs on my card.

Yes I do have lots of inputs, 34 I think to be exact ;)


65
General Mach Discussion / Re: Turret macro question! VERY COOL TURRET :D
« on: October 02, 2015, 06:29:47 PM »
Hi MC,

I have never used a PLC before, and yes the turret hauls butt....do you know of a PLC I can use?

66
General Mach Discussion / Turret macro question! VERY COOL TURRET :D
« on: October 02, 2015, 06:10:18 PM »
 ;D ??? ::) >:D ???


Hello Mach community! I have an awesome project I am working on, with your previous help I have been able do so much :)!.

I am converting a CHNC right now, I have one prob though....

The turret is very unique...

This is the process of what should happen:

Trigger output 5 ON (lift and spins turret counter clockwise)

Wait for input (this is where it gets narly)

There is 4 wires that come off of this encoder (signal outputs 12v), yet there is 8 positions, so I am assuming there is a BCD code, like tool one = 1001, tool two = 1010

The (1) represents wire (X) is high and (0) represents wire (x) is low

So I have the outputs wired to 4 inputs on my cnc4pc c23 card.

When is gets the right output on the right inputs, then

Trigger output 6 (fires a stop dog that stops the turret)

Trigger output 5 OFF
Trigger output 6 OFF

change current tool to selected tool and current offset to selected offset.

continue program.

If you could help it would be very appreciated!!! :D

Mike ???

67
Thanks RICH! Hows Mach 4 lathe coming along?

68
Thanks rich, I'm trying to get the threading to work now lol,

69
I emailed ya it was the front and rear tool post selection, all must be front or rear

70
hello!

When using my cnc lathe, that has a rear tool post with tool changer, I can't seem to get the gcode right for cutting.

Everytime I use the lathe wizard, it thinks the tool is in the front and posts that way, how do I change it to use the rear post?

I already tried to change the tool from front to rear im mach 3, still doesnt help, it still assumes that the tool is in the front.

Any help?

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