- Posts: 4819
- Thank you received: 2177
Knee mill table height; external offset or something else?
- Aciera
- Offline
- Administrator
-
Less
More
2 years 11 months ago #286417
by Aciera
I'm just somewhat doubtful that the 'pos' variable actually works across both the forward and inverse functions the way you think. But since I'm no good at C I may be wrong and your code may be right.
Replied by Aciera on topic Knee mill table height; external offset or something else?
I would only expect the z dro position to change as you move the table up. Are you expecting the quill to automatically retract?Thanks for suggestion, pos3 is there because without it there is no change in neither joint.2.pos-cmd nor joint.3.pos-cmd when table is moved. Z value in dro changes though. I would like to understand why it does that.
I'm just somewhat doubtful that the 'pos' variable actually works across both the forward and inverse functions the way you think. But since I'm no good at C I may be wrong and your code may be right.
Please Log in or Create an account to join the conversation.
- m0602232
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 14
2 years 11 months ago #286452
by m0602232
Replied by m0602232 on topic Knee mill table height; external offset or something else?
It would not be necessary for quill to retract automatically but I can't figure out how it could work otherwise.
If custom kinematics is made without additional variable, for example zeroing Z axis in dro does not work. It kind of zeroes only joint2 part so joint3 reading will stay in the dro.
I think it's because there is following error in joint3 (joint3.pos-cmd will stay at zero) but I'm not sure. Also joint3 position wont reflect to MDI commanded position, so basically only dro reading changes but nothing else works.
If custom kinematics is made without additional variable, for example zeroing Z axis in dro does not work. It kind of zeroes only joint2 part so joint3 reading will stay in the dro.
I think it's because there is following error in joint3 (joint3.pos-cmd will stay at zero) but I'm not sure. Also joint3 position wont reflect to MDI commanded position, so basically only dro reading changes but nothing else works.
Please Log in or Create an account to join the conversation.
- m0602232
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 14
2 years 11 months ago #286454
by m0602232
Replied by m0602232 on topic Knee mill table height; external offset or something else?
Ok it seems to be working now. I ended up using additional variable (pos3) in kinematics module and smoothing out the joint3 encoder input signal in HAL wit LIMIT3. Still need to verify that joint limits are completely functional but i guess they should be.
Thanks
Thanks
Please Log in or Create an account to join the conversation.
- m0602232
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 14
2 years 11 months ago #286533
by m0602232
Replied by m0602232 on topic Knee mill table height; external offset or something else?
No luck, trajectory planner seems to care only about axis limits. So back to square one.
I found some old posts from 2016, github.com/LinuxCNC/linuxcnc/issues/97
Apparently this remains to be unsolved issue with trajectory planner.
I found some old posts from 2016, github.com/LinuxCNC/linuxcnc/issues/97
Apparently this remains to be unsolved issue with trajectory planner.
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
-
Less
More
- Posts: 4819
- Thank you received: 2177
2 years 11 months ago #286548
by Aciera
Replied by Aciera on topic Knee mill table height; external offset or something else?
Joint limits are respected when the program is executed but violations will not be detected when a program is loaded. This can lead to a program aborting during runtime.
In your particular case there may be a workaround as it is possible to change the limit settings in the ini file from inside a running Linuxcnc session. So you could adjust the knee during job setup, adjust the limit values and then load/reload your gcode and it will behave just like a regular machine.
In your particular case there may be a workaround as it is possible to change the limit settings in the ini file from inside a running Linuxcnc session. So you could adjust the knee during job setup, adjust the limit values and then load/reload your gcode and it will behave just like a regular machine.
Please Log in or Create an account to join the conversation.
- m0602232
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 14
2 years 11 months ago #286605
by m0602232
Replied by m0602232 on topic Knee mill table height; external offset or something else?
It might respect joint limits but the trajectory planner does not seem to calculate deceleration approaching soft limits. I tried only by jogging onto soft limit -> following error.
Interesting, I have to study this inihal thing. Thanks again!
Interesting, I have to study this inihal thing. Thanks again!
Please Log in or Create an account to join the conversation.
Time to create page: 0.388 seconds