Author Topic: Tool change macro needed for lathe turret!  (Read 13942 times)

0 Members and 1 Guest are viewing this topic.

Offline mike^3

  • Active Member
  • Posts: 117
    • View Profile
Re: Tool change macro needed for lathe turret!
« Reply #10 on: August 07, 2013, 03:23:09 PM »
Awesome, I have one last question :)

ActivateSignal(output1)              'unlock the turrent
While not Isactive(output2)         'wait for the switch to signal end of stroke  *************************For this line, should it be input 2 not output 2 for sensing the turret up position?
Sleep(1000)                                'Give it time for the motion to fully stop

Thanks

Mike

Offline BR549

  • Mach4 Alpha
  • Posts: 6,855
    • View Profile
Re: Tool change macro needed for lathe turret!
« Reply #11 on: August 07, 2013, 03:35:24 PM »
INPUT2 , Sorry

(;-) TP

Offline mike^3

  • Active Member
  • Posts: 117
    • View Profile
Re: Tool change macro needed for lathe turret!
« Reply #12 on: November 10, 2013, 07:12:37 PM »
Hey BR :) I needed to modify the tool change and use a rotary air cylinder, can we make this work?



This is what needs to happen, I have searched the forums and came up with nothing even close.

Here it is, operations in the tool change:

Call up selected tool (1 through 8 )
do nothing if at the current tool selected
if not at the tool then these steps must happen.

(lets say for example the tool is at tool position 2, and I call up tool 1)

move x0.2 z-0.2 (Machine coordinates)
Activate solenoid 1 (de activates lathe stop dog)
Activate solenoid 2 (pop up lathe turret)
Activate solenoid 3 (activates air driven worm gear and turns turret in only 1 direction)
Wait for signal from input 1 (no other input) (there are mechanical switches that all give off 5v once the rotary disc is in position, but input 1 means tool 1, input 2 means tool 2, input 3 means tool 3, etc. etc.)

Once it receives signal from input 1 (or  input 1-8 depending on which tool is capped for):
          Deactivate solenoid 1 (to stop the turret from spinning)
          Deactivate solenoid 3 (stoped airdriven worm gear)
          Deactivate solenoid 2 (drops turret into locked seat)

Update DRO and tool offsets

Return to program.

Any ideas?

Thanks :)

Offline ariawanbayu

  • Holding
  • Posts: 1
    • View Profile
Re: Tool change macro needed for lathe turret!
« Reply #13 on: July 19, 2018, 11:18:05 AM »
could someone send me a wiring diagram from tool turret motor to mach3 controller for using this program ? pleaseeee I need some help for my last project on my college :(  this is my email ariawanbayu11@gmail.com , thank you guys.