A axis position

More
26 Jan 2023 18:49 #262953 by looping
A axis position was created by looping
Hello
I'm just starting to play with 4 axis configuration and trying to mill 6 faces out of a 20mm rod.
In linuxcnc all looks good only when I don't have any G54 Z offset.
But if I have an offset on the Z axis, it looks strange.

Do I must move my machine origine to the A axis to be able to have a nice preview ?
Attachments:

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

More
26 Jan 2023 18:51 #262954 by looping
Replied by looping on topic A axis position
Files to reproduce
Attachments:

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

More
28 Jan 2023 17:34 #263099 by andypugh
Replied by andypugh on topic A axis position
The G-code preview assumes that the centre of rotation is the axis zero.
You just have to accept that the preview in rotary mode is nothing more than an indication. (The preview has no way to know where your axis of rotation is, the G-code does not include that information)

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

More
28 Jan 2023 17:52 #263102 by looping
Replied by looping on topic A axis position
I agree but the preview is just an indication but in this case it is misleading : On the second preview it may look like the path will be out of machine boundaries but in fact it is not.

The preview has no way to know where your axis of rotation is, the G-code does not include that information)

The axis position, as it is machine dependent, should rather be in the INI file

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

More
28 Jan 2023 19:48 #263108 by dgarrett
Replied by dgarrett on topic A axis position
2.9 and up:

> 10. Rotations applied after translations may use the "!" provision to act with
> respect to the current machine offset. Example: GEOMETRY=!CXYZ translates the
> control point to the X, Y, Z position and then performs a C rotation about the
> machine origin displaced by the current G5x,G92 X, Y, Z offsets. (Changing
> offsets may require a program reload).

Ref:

linuxcnc.org/docs/2.9/html/config/ini-config.html

github.com/LinuxCNC/linuxcnc/commit/c392629

 
The following user(s) said Thank You: tommylight, Pro_El

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

More
28 Jan 2023 20:03 #263114 by looping
Replied by looping on topic A axis position
Wow
That's great

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
28 Jan 2023 20:21 #263116 by tommylight
Replied by tommylight on topic A axis position

Wow
That's great

+1

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

More
29 Jan 2023 20:00 #263181 by looping
Replied by looping on topic A axis position
I upgraded LinuxCnc to the last buildbot version and updated my INI file with :
[DISPLAY]
GEOMETRY = !AXYZ

Did I miss something ?
Attachments:

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

More
02 Feb 2023 19:23 #263542 by looping
Replied by looping on topic A axis position
The build (>=758) improved a bit, but still some work to be done : The shape of the path is now correct with or without an offset.
But the path remains located on the machine origin.

[DISPLAY]
GEOMETRY = !AXYZ
Attachments:

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

More
04 Feb 2023 11:13 #263660 by andypugh
Replied by andypugh on topic A axis position

The build (>=758) improved a bit, but still some work to be done : The shape of the path is now correct with or without an offset.
But the path remains located on the machine origin.

The only way I see round this is to add a "magic comment" that the preview could parse. Something like (ORIGIN, 100 0 0) 
Or maybe an INI entry, but that couldn't be changed at runtime. 
 

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

Moderators: piasdom
Time to create page: 0.074 seconds
Powered by Kunena Forum