confusion about 9 AXIS display

More
09 May 2023 18:49 #271055 by vedatech
confusion about 9 AXIS display was created by vedatech
I have a four axis machine XBCW which I was using the axis interface with. It seemed ok until my computer died and I had to rebuild with linuxcnc-2.9.0~pre1. The machine motors work fine but the AXIS Preview display doesn't work like it used to or how I expect.
I am testing with sim/axis/axis_9axis.ini
When I manually jog X,Y,Z,A,B the cone moves as expected.
Jogging C shows no movement no matter the position.
U,V and W always move parallel to X, Y and Z no matter the values of A, B and C
I understood the U,V,W coordinates to be a translated and rotated system.
Am I missing something?

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

More
09 May 2023 19:05 #271057 by Aciera
Replied by Aciera on topic confusion about 9 AXIS display
Maybe you need to set up the GEOMETRY string in your ini:

GEOMETRY = XYZABCUVW - Controls the preview and backplot of rotary motion. This item consists of a sequence of axis letters, optionally preceded by a "-" sign. This sequence specifies the order in which the effect of each axis is applied, with a "-" inverting the sense of the rotation. The proper GEOMETRY string depends on the machine configuration and the kinematics used to control it. The example string GEOMETRY=XYZBCUVW is for a 5-axis machine where kinematics causes UVW to move in the coordinate system of the tool and XYZ to move in the coordinate system of the material. The order of the letters is important, because it expresses the order in which the different transformations are applied. For example rotating around C then B is different than rotating around B then C. Geometry has no effect without a rotary axis. Foam-cutting machines (FOAM = 1) should specify "XY;UV" or leave the value blank even though this value is presently ignored in foam-cutter mode. A future version may define what ";" means, but if it does "XY;UV" will mean the same as the current foam default.


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

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

More
10 May 2023 01:18 #271078 by vedatech
Replied by vedatech on topic confusion about 9 AXIS display
Its not my .ini I'm talking about, its the sim/axis/axis_9axis.ini in the installation. In the older version when I rotated B and then moved W it moved at the B angle to the Z axis, not parallel to Z. So either the old or new display is wrong. What is it supposed to be?

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

More
10 May 2023 06:21 - 10 May 2023 07:39 #271082 by Aciera
Replied by Aciera on topic confusion about 9 AXIS display
Try to change the sim ini to
GEOMETRY = XYZCBAUVW
And see if that fixes the c-rotation for you.

[edit]
I'm sorry the rest I wrote here before was a bunch of nonsense as I could not remember it working in version 2.8 but it actually did as I just verified on my machine in the shop.
Something clearly changed since version 2.8 as now the U,V,W moves are not rotated anymore.
Last edit: 10 May 2023 07:39 by Aciera.

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

More
10 May 2023 09:22 - 10 May 2023 09:44 #271096 by Aciera
Replied by Aciera on topic confusion about 9 AXIS display
Looks like there have been some changes between 2.9 (which I cannot test) and current master, so this may depend on what you have installed.
docs for master:
www.linuxcnc.org/docs/devel/html/config/...#sec:display-section

GEOMETRY = XYZABCUVW
- Controls the preview and backplot of motion. This item consists of a sequence of axis letters and control characters, optionally preceded with a "-" sign:
  1. The letters X, Y, Z specify translation along the named coordinate.
  2. The letters A, B, C specify rotation about the corresponding axes X, Y, Z.
  3. The letters U, V, W specify translation along the related axes X, Y, Z.
  4. Each letter specified must occur in
    [TRAJ]COORDINATES
    to have an effect.
  5. A "-" character preceding any letter inverts the direction of the operation.
  6. The translation and rotation operations are evaluated right-to-left. So using
    GEOMETRY=XYZBC
    specifies a C rotation followed by a B rotation followed by Z, Y, X translations. The ordering of consecutive translation letters is immaterial.
  7. The proper GEOMETRY string depends on the machine configuration and the kinematics used to control it. The order of the letters is important. For example, rotating around C then B is different than rotating around B then C.
  8. Rotations are by default applied with respect to the machine origin. Example:
    GEOMETRY=CXYZ
    first translates the control point to X, Y, Z and then performs a C rotation about the Z axis centered at the machine origin.
  9. UVW translation example:
    GEOMETRY=XYZUVW
    causes UVW to move in the coordinate system of the tool and XYZ to move in the coordinate system of the material.
  10. Foam-cutting machines (
    FOAM = 1
    ) should specify "XY;UV" or leave the value blank even though this value is presently ignored in foam-cutter mode. A future version may define what ";" means, but if it does "XY;UV" will mean the same as the current foam default.
  11. Experimental: If the exclamation mark (
    !
    ) character is included in the GEOMETRY string, display points for A, B, C rotations respect the X, Y, Z offsets set by G5x, G92 codes. Example: Using
    GEOMETRY = !CXZ
    for a machine with
    [TRAJ]COORDINATES=XZC
    . This provision applies for liveplots only — G-code previews should be done with zero G5x, G92 offsets. This can be facilitated by setting offsets in programs only when task is running as indicated by #<_task> == 1. If nonzero offsets exist at startup due to persistence, offsets should be zeroed and preview reloaded.

Note I cannot get rotated UVW moves to work on my master installation dating from march but I cannot test the current source or version 2.9 at the moment. If you are seeing this issue using 2.9 or a current master build then open an issue on the github site:
github.com/LinuxCNC/linuxcnc/issues
 
Last edit: 10 May 2023 09:44 by Aciera.

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

More
10 May 2023 15:54 #271111 by vedatech
Replied by vedatech on topic confusion about 9 AXIS display
I'm still not clear on what is intended for UVW coordinates. Should UVW moves be rotated by ABC or are they always just translations of XYZ? That might be ok for a foam cutter but that is not what I need.

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

More
10 May 2023 16:00 - 10 May 2023 16:22 #271112 by vedatech
Replied by vedatech on topic confusion about 9 AXIS display
Forgot. My build is linuxcnc-2.9.0~pre1 running on Ubuntu 22.04 5.15.0-1037-realtime PREEMPT_RT
OK, after reading the previous detailed explanation I see that the ! character in the GEOMETRY causes UVW to include rotations ABC. I was unaware of the ! operator. So I think my question is answered. Thanks
Last edit: 10 May 2023 16:22 by vedatech.

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

More
10 May 2023 16:42 #271113 by Aciera
Replied by Aciera on topic confusion about 9 AXIS display
I have filed this as an issue on github:
github.com/LinuxCNC/linuxcnc/issues/2481

Thanks for reporting.

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

Time to create page: 0.133 seconds
Powered by Kunena Forum