- Posts: 1107
- Thank you received: 2
LinuxCNC Python module
2 years 10 months ago #288035
by JT
LinuxCNC Python module was created by JT
The 2.9 docs show a status
When I try and get the axes I get the following error:
I looked in src/emc/task/taskinf.cc and can't find stat->axes anywhere, so was this removed or is the documents wrong?
JT
Code:
axes (returns integer) - number of axes. Derived from [TRAJ]COORDINATES INI value.
When I try and get the axes I get the following error:
Code:
s.poll()
s.axes
AttributeError: 'linuxcnc.stat' object has no attribute 'axes'. Did you mean: 'axis'?
I looked in src/emc/task/taskinf.cc and can't find stat->axes anywhere, so was this removed or is the documents wrong?
JT
Please Log in to join the conversation.
2 years 10 months ago #288036
by JT
Replied by JT on topic LinuxCNC Python module
Looking at the original commit for taskinf.cc and I see:
So someone removed it at some point... how frustrating.
JT
Code:
stat->axes = localEmcTrajAxes;
So someone removed it at some point... how frustrating.
JT
Please Log in to join the conversation.
2 years 10 months ago #288037
by JT
Replied by JT on topic LinuxCNC Python module
Looks like Jeff deleted it with commit
43deeedd065faf31254933ee56af01c314823827
JT
43deeedd065faf31254933ee56af01c314823827
JT
Please Log in to join the conversation.
2 years 10 months ago #288038
by Aciera
Replied by Aciera on topic LinuxCNC Python module
Try 'axis_mask'
[edit]
This will not only give you how many axes there are but actually which ones (ie XYZABCUVW)
But, yes the reference to 'axes' should be removed from the docs .
[edit]
This will not only give you how many axes there are but actually which ones (ie XYZABCUVW)
But, yes the reference to 'axes' should be removed from the docs .
Please Log in to join the conversation.
- tommylight
-
- Online
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
2 years 10 months ago #288040
by tommylight
Replied by tommylight on topic LinuxCNC Python module
First post, shows "axes" and below "axis"
Did you try to stat "axis" ?
Did you try to stat "axis" ?
Please Log in to join the conversation.
2 years 10 months ago #288041
by Aciera
Replied by Aciera on topic LinuxCNC Python module
He's referring to these:
Of which 'axes' has been removed.
Attachment not found
Of which 'axes' has been removed.
Please Log in to join the conversation.
2 years 10 months ago #288042
by JT
Replied by JT on topic LinuxCNC Python module
I don't see why axes was removed as the [TRAJ] COORDINATES is still a valid and required ini entry.
It feels like axes was removed without any thought...
JT
It feels like axes was removed without any thought...
JT
Please Log in to join the conversation.
- tommylight
-
- Online
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
2 years 10 months ago #288043
by tommylight
Replied by tommylight on topic LinuxCNC Python module
Oh i see, thank you.
I was thinking maybe a typo, made that mistake more than once typing on this forum, despite knowing "axis" is a single axis and "axes" is multiple.
I was thinking maybe a typo, made that mistake more than once typing on this forum, despite knowing "axis" is a single axis and "axes" is multiple.
Please Log in to join the conversation.
2 years 10 months ago #288044
by Aciera
Replied by Aciera on topic LinuxCNC Python module
I have no clue what happened to this post lol...I don't see why axes was removed as the [TRAJ] COORDINATES is still a valid and required ini entry.
Maybe because it was felt to be redundant information as 'axis_mask' actually gives you more information about the [TRAJ] COORDINATES entry.
The axis status gave you the number of axes without having to know new math...
JT
Please Log in to join the conversation.
2 years 10 months ago #288047
by Aciera
Replied by Aciera on topic LinuxCNC Python module
I have created a pull request to fix the documentation
github.com/LinuxCNC/linuxcnc/pull/2789
github.com/LinuxCNC/linuxcnc/pull/2789
Please Log in to join the conversation.
Time to create page: 0.099 seconds
