Knee mill table height; external offset or something else?

More
2 years 11 months ago #284302 by m0602232
Hi everybody!

I have an old Bridgeport Interact CNC retrofitted to Linuxcnc. Since quill traverse is only 127mm I would want to include linear encoder measuring table height. Table height is adjusted manually.

I did set it up using external offset and it seems to be working but what concerns me is the manual:
"When teleop jogging with external offsets enabled and non-zero values applied, encountering a soft
limit will stop motion in the offending axis without a deacceleration interval. Similarly, during
coordinated motion with external offsets enabled, reaching a soft limit will stop motion with no deac-
celeration phase. For this case, it does not matter if the offsets are zero."

Is there any other way to include table height encoder? It's basically only needed after tool changes when using long drillbits etc.

Any ideas will be appreciated, thanks!

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #284315 by andypugh
You could just add the two encoders together before passing the result to the position feedback, but that would lead to problems with homing and joint limits.

The best answer is probably to use a custom kinematics module where Z is the sum of the two joint positions, but then the joints can home independently and have separate travel limits.

I am guessing that this is a manually-opearted knee?

Take a look at the very old trivkins before it learned about tandem axes, a kinematics module can be pretty simple:
github.com/LinuxCNC/linuxcnc/blob/2.7/sr...inematics/trivkins.c
Basically two functions, one to convert joint to axis, and one to convert axis to joint.

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #284316 by andypugh
You could just add the two encoders together before passing the result to the position feedback, but that would lead to problems with homing and joint limits.

The best answer is probably to use a custom kinematics module where Z is the sum of the two joint positions, but then the joints can home independently and have separate travel limits.

I am guessing that this is a manually-opearted knee?

Take a look at the very old trivkins before it learned about tandem axes, a kinematics module can be pretty simple:
github.com/LinuxCNC/linuxcnc/blob/2.7/sr...inematics/trivkins.c
Basically two functions, one to convert joint to axis, and one to convert axis to joint.

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #284318 by m0602232
I thought about adding the encoders together but as far as I see it would be impossible to use because of joint limits being incorrect as you also stated.

Manually operated knee yes, originally there is no encoder but it is really inconvenient to use as is.

I will take a look at the link and will be back with even more questions i'm afraid :D , thank you!

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #284526 by m0602232
So I managed to link both encoders to Z-axis with custom kinematics module or at least the dro value changes correspondingly. The axis does not move when the table encoder is moved, it can be linked in HAL (sum2 joint.8.motor-pos-fb => joint.2.motor-pos-cmd) but then following error calculations go wrong.

Is there something else I can try? I dont completely understand how the kinematics module should be affecting joint outputs so there might be something wrong also.

File Attachment:

File Name: customkins.c
File Size:2 KB

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #286212 by m0602232
Progress, I think.

Kinematics module now connects two joints to an axis but there is some sort of issue. Forgot to take screenshot of halscope but when the knee is moved, velocity command of joint2 is full of extremely sharp spikes which causes pid to oscillate. In other words acceleration and max.speed limits are ignored. How should trajectory planner be involved in this kind of case? Could there be a way to smoothen the table encoder input before kinematics module? Any other ideas?
Thanks in advance.

Please Log in or Create an account to join the conversation.

Time to create page: 0.577 seconds
Powered by Kunena Forum