- Posts: 19306
- Thank you received: 0
Kinematics modification
tommy wrote: SIM config is gantry and also "head-head" design of BC axis (same as mine), so I could use it's kinematics module, except rotation of B-axis should be inverted somehow.
I am not 100% clear if just reversing the motor sense (swapping wires, or changing HAL) would have the desired effect.
Please Log in to join the conversation.
andypugh wrote: I am not 100% clear if just reversing the motor sense (swapping wires, or changing HAL) would have the desired effect.
That doesn't help ..
As it is my machine set now, jog for each axis works as it should (positive/negative direction) and also is showed correctly in DRO. Problem occurs when rotating (jog or run) B-axis, which because of pivot length offset and tool length offset triggers movement of X axis, and in this case X moves in wrong direction.
Please Log in to join the conversation.
tommy wrote: As it is my machine set now, jog for each axis works as it should (positive/negative direction) and also is showed correctly in DRO. Problem occurs when rotating (jog or run) B-axis, which because of pivot length offset and tool length offset triggers movement of X axis, and in this case X moves in wrong direction.
Is the Y-axis correct?
Are your machine axes a right-handed coordinate set when viewed from the point of view of tool movement relative to the work? It can sometimes be a little confusing, especially with a moving-table gantry.
It is relatively easy to alter the kinematics, if you are sure that your coordinate system is correct.
Please Log in to join the conversation.
andypugh wrote: Is the Y-axis correct?
No, also Y axis moves in wrong direction when for example G0 B45 C45 is executed, as in this case X and Y should move in positive direction.
andypugh wrote: Are your machine axes a right-handed coordinate set when viewed from the point of view of tool movement relative to the work? It can sometimes be a little confusing, especially with a moving-table gantry.
It is relatively easy to alter the kinematics, if you are sure that your coordinate system is correct.
I hope this image helps, directions of axis are same and C rotates around Z (clockwise), B rotates around Y (clockwise) :
Please Log in to join the conversation.
The convention is that looking from the negative end of the axis towards the positive that positive rotations are clockwise. (So, as an aside, the typical mill spindle rotates backwards in the C-axis sense, but a lathe spindle turns forwards on a front-tool lathe.)
If your machine is set up that way and the kins still doesn't work,then you need to swap a few + and - signs about.
Please Log in to join the conversation.
Please Log in to join the conversation.
andypugh wrote: If your machine is set up that way and the kins still doesn't work,then you need to swap a few + and - signs about.
Solved! some experimenting with sim configuration calling modified kinematics did the trick!
Modifications were needed in this section of kinematics file:
Please Log in to join the conversation.
I guess modifying just those lines is not enough or might be wrong entirely...
Any suggestions what else should be done to work properly, just to refresh from a start, I just wanted to reverse B axis rotation.
Here is my current kinematics:
Please Log in to join the conversation.
tommy wrote: I noticed one thing after doing modifications above, and that is if B axis is not at zero position and I switch from MDI to Manual Control following error on linear axis shows up!
That isn't really a surprise, because when you switch to world-mode the Y axis is suddenly a long way out of position.
Was this the situation previously? Is it acceptable to home B to zero before switching modes?
Please Log in to join the conversation.
andypugh wrote: That isn't really a surprise, because when you switch to world-mode the Y axis is suddenly a long way out of position.
Was this the situation previously? Is it acceptable to home B to zero before switching modes?
With "original" 5axis kinematics there was no problem, but but unfortunately B rotates in wrong direction.
Homing is done in Joint mode so there is no issue.
I'm not sure this is related to this problem, but when I do homing of B axis in joint mode in preview window this axis rotates in opposite direction as it is on machine. After switching to world mode, preview rotates correctly.
Please Log in to join the conversation.
