Hello Guest it is May 25, 2019, 09:38:07 AM

Author Topic: Lathe with 2 Z-axis - Help!  (Read 8033 times)

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,818 25,818
  • Carnoustie, Scotland
    • View Profile
Re: Lathe with 2 Z-axis - Help!
« Reply #20 on: September 14, 2009, 06:30:39 AM »
Not sure what you are meaning but if its as related to how Mach would normally operate it you would write a custom macro to activate and deactivate your outputs which in turn would operate the mechanism (relay, solenoid etc) that controls your hydraulics.
 You would then call the macro something like for opening m110.m1s and closing m111.m1s and save them in your profiles macro folder.
 Then each time you called M110 from code or MDI the chuck would open, M111 it would close.

Hood
Re: Lathe with 2 Z-axis - Help!
« Reply #21 on: October 02, 2009, 08:17:34 PM »
ActivateSignal(OutPut*) 
DeActivateSignal(OutPut*)

are what you will likely need, obviously the * is the output number you are using in Ports and Pins for that function.

As for writing the macro then best thing is just to look at some of the macros in the macro folder and also look at the VB Buttons in the wizards and it will help you out.

Ray is writing a manual at the moment so when thats done it will help a lot.

You could also probably do it via a Brain which might make things easier but they also have a learning curve.

Hood
"Ray is writing a manual at the moment so when thats done it will help a lot."
- What about Ray's manual?

Offline Hood

*
  •  25,818 25,818
  • Carnoustie, Scotland
    • View Profile
Re: Lathe with 2 Z-axis - Help!
« Reply #23 on: October 03, 2009, 08:04:09 PM »
Thanks Hood for link, it is useful,
I remove the hydraulic cylinders from x&z-ax, now that axis is moved only by steppers and screws,
now I have: chuck - open/close, load bar, 4 speed spindle gear,stop spindle, profiling tool on x-ax and 5 position ATC on z-ax (for
drilling and tapping) - What is the best way to manage with ATC? (poppabear says to set them as C-axe!?)
Thanks!

Offline Hood

*
  •  25,818 25,818
  • Carnoustie, Scotland
    • View Profile
Re: Lathe with 2 Z-axis - Help!
« Reply #24 on: October 03, 2009, 08:10:40 PM »
You can use any axis you wish that you have spare but A B and C can be set as rotational axis so you can use the rollover feature and if I remember right it will automatically do a shortest move without you needing to code that.

Hood