Dynamic work Offset in 5-Axis XYZAC

More
25 Jul 2023 17:36 #276239 by Aciera
Replied by Aciera on topic Dynamic work Offset in 5-Axis XYZAC

Now I am facing another problem, the DWO offsets are mentioned in INI file but it seems that linuxcnc is not able to configure the offset and move the 5-Axis to it's new Rotation Point accordingly.
It is still using the Old Rotation Point.

This is not clear to me. The DWO is calculated when you call G55.4 and added to your current Work Offset (eg G54). The Rotation Point is set to define the position of your table rotary assembly respective to your machine absolute zero. In this sense the Rotation Point does not change at all unless you change the rot-point values in the ini.
Note that the vismach simulation does not use the Rotation Point values at all,  it is hard coded to have the Machine Absolute zero in the center of the rotary table.

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

More
27 Jul 2023 16:09 - 27 Jul 2023 16:10 #276382 by akg1904
Replied by akg1904 on topic Dynamic work Offset in 5-Axis XYZAC
Hi,

Thanks for the Reply.
I tried to understand how DWO works in linuxCNC but there are many thing which I don't understand.

From my understanding DWO can be used to mill a part when it is not placed center on the machine bed or can be used if one wants to load more than one part on a bed.

So I have integrated Plopez9000 dwo_on.ngc and dwo_off.ngc. I optimized the ini and hal file so that offset and rot-points can be specified in the INI itself under [XYZAC_KINS].

I launched LinuxCNC, moved X, Y, Z and rotated C axis individually while toggling between G55.4 and G55.5 in the MDI and noticed no change in the DRO. Only when I rotate A-axis and gave G55.4 there was a change in Y and Z axis accordingly.

The following is a section in the dwo_on.ngc file that I didn't understand:

(CURRENT WORKOFFSET X,Y,Z SETTING)
#<x-pos> = #[5221+[#5220-1]*30]
#<y-pos> = #[5222+[#5220-1]*30]
#<z-pos> = #[5223+[#5220-1]*30]


Am I supposed to calibrate or configure something here? What is 5221, 5222, 5223 and 5220 and what is the mathematical operation about?

How does the fixture position get updated to some other point on bed?
Also is there a test to check if everything is working fine?

I cant seem to understand how DWO works.....

Regards
Abhishek
Last edit: 27 Jul 2023 16:10 by akg1904.

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

More
27 Jul 2023 16:31 - 27 Jul 2023 16:35 #276384 by Aciera
Replied by Aciera on topic Dynamic work Offset in 5-Axis XYZAC
I think you misunderstand what the DWO feature does. Maybe this helps:

(CURRENT WORKOFFSET X,Y,Z SETTING)
#<x-pos> = #[5221+[#5220-1]*30]
#<y-pos> = #[5222+[#5220-1]*30]
#<z-pos> = #[5223+[#5220-1]*30]

Am I supposed to calibrate or configure something here? What is 5221, 5222, 5223 and 5220 and what is the mathematical operation about?


Those are numbered parameters as explained here:
linuxcnc.org/docs/html/gcode/overview.ht...:numbered-parameters

So the code is supposed to read the x,y,z-values of the current work offset (eg G54, G55 ...).

However I think that there may be a bug in those three lines as the parameter values are 20 apart and not 30 as the code uses.
Parameter #5220 shows the currently active coordinate system.
The (x,y,z) values for G54 are stored in parameters (#5221, #5222, #5223)
those for for G55 are stored in parameters (#5241, #5242, #5243)
those for for G56 are stored in parameters (#5261, #5262, #5263)

So in my opinion the code should be:
(CURRENT WORKOFFSET X,Y,Z SETTING)
#<x-pos> = #[5221+[#5220-1]*20]
#<y-pos> = #[5222+[#5220-1]*20]
#<z-pos> = #[5223+[#5220-1]*20]
Last edit: 27 Jul 2023 16:35 by Aciera.

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

More
27 Jul 2023 18:49 #276394 by Aciera
Replied by Aciera on topic Dynamic work Offset in 5-Axis XYZAC
Also, just to be clear, DWO as implemented in the way we are discussing recalculates the offset position only when G55.4 is called it will not do continuous calculations.

I launched LinuxCNC, moved X, Y, Z and rotated C axis individually while toggling between G55.4 and G55.5 in the MDI and noticed no change in the DRO. Only when I rotate A-axis and gave G55.4 there was a change in Y and Z axis accordingly.
 

Not sure as I have not had time to actually play around with it yet, maybe I'll get a chance to look at it tomorrow.

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

More
28 Jul 2023 07:37 #276440 by Aciera
Replied by Aciera on topic Dynamic work Offset in 5-Axis XYZAC
Just tested on my xyzac-trt simulation (although with [x,y,z]-rot-point = (0,0,0)) and it seems to work just fine.
Also the bug in dwo_on.ngc is confirmed so you might want to modifiy to this:

Warning: Spoiler!
The following user(s) said Thank You: akg1904

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

Time to create page: 0.059 seconds
Powered by Kunena Forum