5axiskins &LinuxCnc 2.5.3
27 Jul 2013 00:15 #37072
by eslavko
5axiskins &LinuxCnc 2.5.3 was created by eslavko
Hello...
As I'm currently involved in 5 axis machine I like to see the 5axiskins is back.
But in manual there is no 5axiskins. So What is changed? How do they work now?
Any help? Or the reading source code is the only way? (not a C programmer here)
Thanks
As I'm currently involved in 5 axis machine I like to see the 5axiskins is back.
But in manual there is no 5axiskins. So What is changed? How do they work now?
Any help? Or the reading source code is the only way? (not a C programmer here)
Thanks
Please Log in or Create an account to join the conversation.
27 Jul 2013 08:19 #37081
by andypugh
Reading the coordinate to joint and joint to coordinate equations is probably the best way to see exactly what is going on, even if you are not a programmer.
Replied by andypugh on topic 5axiskins &LinuxCnc 2.5.3
Any help? Or the reading source code is the only way? (not a C programmer here)
Reading the coordinate to joint and joint to coordinate equations is probably the best way to see exactly what is going on, even if you are not a programmer.
Please Log in or Create an account to join the conversation.
27 Jul 2013 13:19 #37089
by eslavko
I can do that, but doesnt really know how it's configured? (don't even know if I look the current file for 2.5.3)
Where the pivot lenght is defined (Is it hardcoded to be 250? So I need to recompile as my pivot isn't 250. And tool lenght? Is it automaticali obtained from tool list or what?)
So some help will be nice
Replied by eslavko on topic 5axiskins &LinuxCnc 2.5.3
Any help? Or the reading source code is the only way? (not a C programmer here)
Reading the coordinate to joint and joint to coordinate equations is probably the best way to see exactly what is going on, even if you are not a programmer.
I can do that, but doesnt really know how it's configured? (don't even know if I look the current file for 2.5.3)
Where the pivot lenght is defined (Is it hardcoded to be 250? So I need to recompile as my pivot isn't 250. And tool lenght? Is it automaticali obtained from tool list or what?)
So some help will be nice
Please Log in or Create an account to join the conversation.
27 Jul 2013 20:39 #37093
by andypugh
Line 114 in the code creates a HAL pin called "5axiskins.pivot-length" which you can set to suit your machine.
Replied by andypugh on topic 5axiskins &LinuxCnc 2.5.3
Where the pivot lenght is defined (Is it hardcoded to be 250? So I need to recompile as my pivot isn't 250. And tool lenght?
Line 114 in the code creates a HAL pin called "5axiskins.pivot-length" which you can set to suit your machine.
Please Log in or Create an account to join the conversation.
27 Jul 2013 21:35 #37095
by eslavko
Replied by eslavko on topic 5axiskins &LinuxCnc 2.5.3
Ahhh... versions.....
Ok It's acessible in HAL. That's the answer.
Probably line 117 here
github.com/araisrobo/linuxcnc/blob/maste...nematics/5axiskins.c
or after more search line 114 here
github.com/jepler/linuxcnc-mirror/blob/m...nematics/5axiskins.c
Thanks...
Ok It's acessible in HAL. That's the answer.
Probably line 117 here
github.com/araisrobo/linuxcnc/blob/maste...nematics/5axiskins.c
or after more search line 114 here
github.com/jepler/linuxcnc-mirror/blob/m...nematics/5axiskins.c
Thanks...
Please Log in or Create an account to join the conversation.
27 Jul 2013 22:48 #37099
by andypugh
I think that the difference between the two is related to why it disappeared for a while.
Initially (araisrobo verson) there was a second pin for tool length.
That is not there in the current version.
I believe this is due to changes in tool length representation. The tool table was changed to allow tool length to be specified in XYABCUVW as well as Z.
If you start LinuxCNC version 2.5.3 (just released) and start via the config- picker then there is a config calles 5-axis/5axis.
This is a simulator config, with a visual representation so you can see how a real machine would work.
Start the machine in the usual way, then press the home button.
Press $ to select world mode
You will see that as you jog the rotary axes everything swings round the tool point, but there is no tool.
Edit the tool table, set the tool length of tool 1 to 100mm (this is a metric config).
M6 T1 G43 and you will see a tool appear. And the W position will be -100.
In the MDI tab you can type G0 W0 and you will see that all the axes move along a line defined by the too direction (pretty cool to watch).
G1 W -100 F300 will now drill a hole "through" the controlled point.
It all works rather nicely, but I suggest spending some time with the simulator to see if this version of "5 axis" motion is what you want.
In this simultation the 5axisgui component is in the HAL logical structure pretty much where your hardware drivers would go in a real system.
I don't know what the velocity calculation components are for in that HAL file, they do not appear to go anywhere.
Replied by andypugh on topic 5axiskins &LinuxCnc 2.5.3
github.com/araisrobo/linuxcnc/blob/maste...nematics/5axiskins.c
github.com/jepler/linuxcnc-mirror/blob/m...nematics/5axiskins.c
I think that the difference between the two is related to why it disappeared for a while.
Initially (araisrobo verson) there was a second pin for tool length.
That is not there in the current version.
I believe this is due to changes in tool length representation. The tool table was changed to allow tool length to be specified in XYABCUVW as well as Z.
If you start LinuxCNC version 2.5.3 (just released) and start via the config- picker then there is a config calles 5-axis/5axis.
This is a simulator config, with a visual representation so you can see how a real machine would work.
Start the machine in the usual way, then press the home button.
Press $ to select world mode
You will see that as you jog the rotary axes everything swings round the tool point, but there is no tool.
Edit the tool table, set the tool length of tool 1 to 100mm (this is a metric config).
M6 T1 G43 and you will see a tool appear. And the W position will be -100.
In the MDI tab you can type G0 W0 and you will see that all the axes move along a line defined by the too direction (pretty cool to watch).
G1 W -100 F300 will now drill a hole "through" the controlled point.
It all works rather nicely, but I suggest spending some time with the simulator to see if this version of "5 axis" motion is what you want.
In this simultation the 5axisgui component is in the HAL logical structure pretty much where your hardware drivers would go in a real system.
I don't know what the velocity calculation components are for in that HAL file, they do not appear to go anywhere.
Please Log in or Create an account to join the conversation.
28 Jul 2013 00:56 #37100
by eslavko
Replied by eslavko on topic 5axiskins &LinuxCnc 2.5.3
Sems that this is just right thing. Just stumble where tool length is in tool table?
There is just
Tool
Pocket
XYZ
ABC
UVW
Diameter
front,back, orient
and comment
There is just
Tool
XYZ
ABC
UVW
Diameter
front,back, orient
and comment
Please Log in or Create an account to join the conversation.
28 Jul 2013 02:38 #37102
by andypugh
XYZABCUVW are the tool lengths (to allow for all sorts of different tools, for example lathe tools have length in X and Z.)
In the case of the 5-axis demo I _think_ that tool length goes in the W column.
Replied by andypugh on topic 5axiskins &LinuxCnc 2.5.3
Sems that this is just right thing. Just stumble where tool length is in tool table?
There is just
Tool
XYZ
ABC
UVW
Diameter
front,back, orient
and comment
XYZABCUVW are the tool lengths (to allow for all sorts of different tools, for example lathe tools have length in X and Z.)
In the case of the 5-axis demo I _think_ that tool length goes in the W column.
Please Log in or Create an account to join the conversation.
28 Jul 2013 12:55 #37128
by eslavko
Replied by eslavko on topic 5axiskins &LinuxCnc 2.5.3
I was playing with demo but tool length doesn't work as I expect.
Inded if I write number in W column (I tried Z and C too) the head in simulator got tool (and axis preview show tool).
But when I rotate axis the reference point is still in the top of the head and not on the top of the tool as I expect.
Is it same on your test?
Inded if I write number in W column (I tried Z and C too) the head in simulator got tool (and axis preview show tool).
But when I rotate axis the reference point is still in the top of the head and not on the top of the tool as I expect.
Is it same on your test?
Please Log in or Create an account to join the conversation.
28 Jul 2013 13:26 #37129
by eslavko
Replied by eslavko on topic 5axiskins &LinuxCnc 2.5.3
Actualy I do little more play and see that something is not ok.
Lets say the T1 has W=100 Diam=10 in tool table
home all
enter M6 T1 G43
enter G1 B45 F300
now the tool should just tip at 45 deg angle (the top of the tool sholud be in same position), but in my case the tip of the tool travel the 45 degre arc - not good. The preview in axis and tk simulator show that.
now enter G1 C45
should rotate tool around Z axis with base at the tool tip. Now the funny part. In Axis preview they really do that. But in tk simulator they rotate around tool head point and not arround tool tip point. So wich one is correct?
And as I belive the B and C axis should maintain tool offset as is needed
Lets say the T1 has W=100 Diam=10 in tool table
home all
enter M6 T1 G43
enter G1 B45 F300
now the tool should just tip at 45 deg angle (the top of the tool sholud be in same position), but in my case the tip of the tool travel the 45 degre arc - not good. The preview in axis and tk simulator show that.
now enter G1 C45
should rotate tool around Z axis with base at the tool tip. Now the funny part. In Axis preview they really do that. But in tk simulator they rotate around tool head point and not arround tool tip point. So wich one is correct?
And as I belive the B and C axis should maintain tool offset as is needed
Please Log in or Create an account to join the conversation.
Time to create page: 0.092 seconds