4 Axes Machine Questions
- Todd Zuercher
- Topic Author
- Offline
- Platinum Member
- Posts: 5007
- Thank you received: 1441
Please Log in or Create an account to join the conversation.
To have both Z axes move the same the easiest is just to program Z and W on the same line to move to the same distance.
I'm sure you can switch back and forth in HAL somehow if that is really needed.
John
Please Log in or Create an account to join the conversation.
www.linuxcnc.org/component/option,com_ku...w/catid,38/id,12300/
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Topic Author
- Offline
- Platinum Member
- Posts: 5007
- Thank you received: 1441
I haven't found an easy way to output code from our cam program we currently use (Enroute) to produce code with both z and w together (I can do just z or just w). The majority of code we are running on these machines are 2 1/2-D v-carving. This would also require regenerating the g-code for hundreds of old files, some of which I might not even be able to find the original cam files. I do know that some of our oldest files are already set up with both z and w commands, but they were done with another cam program that we no longer use (or have?? they predate my employment).
Thanks for the link. but it doesn't seem to give any definitive answers.
So can I set up an M code to cause the W head to move with the Z and its commands, and another to return it to normal separate Z and W movements? What should the hal command(s) for such an M code look like, and what other special considerations would have to be made to the hal file? While the W and Z work together I would need the W and Z to continue to use their respective machine coordinate systems (W is touched off at one number and Z is slightly different).
Please Log in or Create an account to join the conversation.
In the gantry you have two motors that can be homed seperately and then move together when running code.
If that will work for you then look at the options of running them seperately.
Of course you could also just set up two machine configurations, one with the axis slaved and one with them seperate.
Rick G
Please Log in or Create an account to join the conversation.
Another possibility would be to run a script on your g code files to add the W move.
The big question is this a stepper machine or servo?
John
Please Log in or Create an account to join the conversation.
The big question is this a stepper machine or servo?
If it is the machine I think it is, it's a bit of both. (step-dir servo)
Please Log in or Create an account to join the conversation.
It seems to me that you might look at the gantry kinematic as a starting point.
Gantrykins appears to allow you to switch axis assignments on-the-fly.
So, to hook W to W, you would use an M100 like
#!/bin/sh
halcmd setp gantrykins.joint-8 8
And to slave it to X M101 like:
#!/bin/sh
halcmd setp gantrykins.joint-8 0
This is untested. If it doesn't work it can be made to work. (possibly with a tweaked version of trivkins instead)
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Topic Author
- Offline
- Platinum Member
- Posts: 5007
- Thank you received: 1441
My main consern about setting up the W slaved, is that I would still need to be able to jog and touch off the Z and W seperately, to set and adjust the depth on the tools. Would I still be able to do this in a configuration with them slaved using gantrykins? I need to go read up on gantrykins I realy haven't looked at it at all yet.
Please Log in or Create an account to join the conversation.
I know that you can jog individually, even when slaved in Gantrykins, by switching to joint mode ($).My main consern about setting up the W slaved, is that I would still need to be able to jog and touch off the Z and W seperately, to set and adjust the depth on the tools. Would I still be able to do this in a configuration with them slaved using gantrykins? I need to go read up on gantrykins I realy haven't looked at it at all yet.
You should be able to experiment using the stepper-gantry sample config. (it will work without any steppers attached). Just pretend that X is Z and look at the inputs to stepgens 0 and 5(?) in halmeter or the watch window.
I don't know if you can touch-off in joint mode. I suspect not, as touch-off is an axis thing. I am not sure what the consequences of that are.
Please Log in or Create an account to join the conversation.