After homing the spindle position is not understood by the GUI
- Robert312
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 1
29 Sep 2025 20:41 #335569
by Robert312
After homing the spindle position is not understood by the GUI was created by Robert312
Less verbose question that would help the situation:
What informs the GUI as to where the virtual spindle is placed in reference to the bounding box? (What else, other than the center of the min and max joint values)
Summarized Problem: Why doesn't the orientation of the spindle in the AXIS GUI reflect the actual position of the machine's spindle in space? Within the bounding box. The bounding box dimensions and size are correct.
In our Linux CNC configuration when we turn on the machine and open AXIS, the GUI displays a 3D bounding box built by the min and max values given for the joints/axis in the INI file. The GUI then puts the virtual spindle in the center of our workspace which is fine initially however our HOME position for our Bostomatic 3-axis milling machine is in the top front corner. I was expecting that when we press home all then the GUI virtual spindle will realize it is not in the correct position, however it does not, after it homes the virtual spindle is in the same position in AXIS as when the application opened (the center). Where as our machine correctly went through the homing procedure where the soft-limit switch and home is shared and the actual spindle is now in that top front corner (which would be the top front corner of the GUI bounding box if it did what I wanted it to). In this config the min and max values for the x, y and z axis are respectively (-9,9), (-6, 6) and (-6, 6). Which makes sense why AXIS is assuming that the origin, (the (0,0,0)) is the same at the home position. So then I thought the solution would be to change the x, y, and z axes' mins and maxes to be: (-18, 0), (-12, 0) and (-12, 0) so that the (0, 0, 0) position is that corner where the home actually is. This does put the virtual spindle in the right position. However this messes up the range of the axes because is assumes the position the machine is in when it is turned on IS on the edge of the bounding box and therefor won't jog in the positive direction because AXIS thinks it has no room but the machine indeed does. And therefor the GUI and the machine are still not on the same page just off in a different way. We have discovered using G92 to help align the g code but this does not solve our problem. SO, how do I get AXIS on the same page as the machine.
What informs the GUI as to where the virtual spindle is placed in reference to the bounding box? (What else, other than the center of the min and max joint values)
Summarized Problem: Why doesn't the orientation of the spindle in the AXIS GUI reflect the actual position of the machine's spindle in space? Within the bounding box. The bounding box dimensions and size are correct.
In our Linux CNC configuration when we turn on the machine and open AXIS, the GUI displays a 3D bounding box built by the min and max values given for the joints/axis in the INI file. The GUI then puts the virtual spindle in the center of our workspace which is fine initially however our HOME position for our Bostomatic 3-axis milling machine is in the top front corner. I was expecting that when we press home all then the GUI virtual spindle will realize it is not in the correct position, however it does not, after it homes the virtual spindle is in the same position in AXIS as when the application opened (the center). Where as our machine correctly went through the homing procedure where the soft-limit switch and home is shared and the actual spindle is now in that top front corner (which would be the top front corner of the GUI bounding box if it did what I wanted it to). In this config the min and max values for the x, y and z axis are respectively (-9,9), (-6, 6) and (-6, 6). Which makes sense why AXIS is assuming that the origin, (the (0,0,0)) is the same at the home position. So then I thought the solution would be to change the x, y, and z axes' mins and maxes to be: (-18, 0), (-12, 0) and (-12, 0) so that the (0, 0, 0) position is that corner where the home actually is. This does put the virtual spindle in the right position. However this messes up the range of the axes because is assumes the position the machine is in when it is turned on IS on the edge of the bounding box and therefor won't jog in the positive direction because AXIS thinks it has no room but the machine indeed does. And therefor the GUI and the machine are still not on the same page just off in a different way. We have discovered using G92 to help align the g code but this does not solve our problem. SO, how do I get AXIS on the same page as the machine.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20727
- Thank you received: 7049
29 Sep 2025 22:11 #335576
by tommylight
Replied by tommylight on topic After homing the spindle position is not understood by the GUI
Yeah, no idea how to put this nicely, but you can not just put values at random and expect things to work, so:
-linear joints/axis must move in positive space, not negative
-z axis must move in negative space
-rotating axis/joints can move either way, depends on what the CAM being used outputs.
The above "must" is conditional as there are situations when stuff needs to move in negative space, but those were usually very old cnc controls.
First figure out what your CAM outputs, then set the workspace accordingly.
Then make sure the axis/ joints move in the correct direction, spindle going from left to right side should be increasing positive values for X on the DRO, spindle moving away from you should also increase values for Y in DRO, and spindle going down should increase the negative value for Z in DRO.
-linear joints/axis must move in positive space, not negative
-z axis must move in negative space
-rotating axis/joints can move either way, depends on what the CAM being used outputs.
The above "must" is conditional as there are situations when stuff needs to move in negative space, but those were usually very old cnc controls.
First figure out what your CAM outputs, then set the workspace accordingly.
Then make sure the axis/ joints move in the correct direction, spindle going from left to right side should be increasing positive values for X on the DRO, spindle moving away from you should also increase values for Y in DRO, and spindle going down should increase the negative value for Z in DRO.
Please Log in or Create an account to join the conversation.
- rodw
-
- Away
- Platinum Member
-
Less
More
- Posts: 11413
- Thank you received: 3825
03 Oct 2025 11:40 #335777
by rodw
Replied by rodw on topic After homing the spindle position is not understood by the GUI
the HOME ini setting may help. linuxcnc.org/docs/stable/html/config/ini-homing.html#_home
It took me a long time for me to understand to use G54 Offsets to touch off at the origin to use for the gcode program.
It took me a long time for me to understand to use G54 Offsets to touch off at the origin to use for the gcode program.
Please Log in or Create an account to join the conversation.
Time to create page: 0.056 seconds