Cylindrical mapping

More
09 Aug 2024 21:53 #307389 by fsabbatini



Cylindrical mapping in linuxcnc: you program a part with X Y and Z in a lathe and it is mapped in a rotary axis (using spindle a C axis)
Better explained here


Best regards!
The following user(s) said Thank You: Bari

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

More
10 Aug 2024 07:56 #307404 by Aciera
Replied by Aciera on topic Cylindrical mapping

Cylindrical mapping in linuxcnc: you program a part with X Y and Z in a lathe and it is mapped in a rotary axis (using spindle a C axis)

Looks interesting.
So are you saying you have implemented this in linuxcnc and if yes are you going to show us how you did it?

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

More
10 Aug 2024 22:48 #307444 by fsabbatini
Replied by fsabbatini on topic Cylindrical mapping
Exactly, i did implement it, i dont know why the video is not embbeded. This is my second attempt

youtube.com/shorts/X_OvO9vH9e8?si=9NnEw1TGMq_6w-eU



Attached the kinematics file, you will find two kinematics ,it works out with kinematics switch.
Basically is a custom lathe i built that is has X, X', Z axis with motorized tool where X and X' works together to form a Y axis, this would be kinematics 0.
Kinematics 1 is this cilindical mapping, where it must work in combination of:
  -First reference de spindle
  -C axis is always present but not used until kinematics 1 is activated (but spindle encoder is always linked to joint.xx.motor-pos-feedback pins in hal
  -Remapped Gcode G7.1:
      G7.1 Rxxxx for activating the transformation on specified diameter
      G7.1 without R to deactivating the transformation


Any questions are welcome

 
Attachments:
The following user(s) said Thank You: tommylight, besriworld, Aciera, jpg, spumco

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

More
11 Aug 2024 05:53 #307465 by spumco
Replied by spumco on topic Cylindrical mapping
Nice.

Couple questions...
  • Do you have an example of g-code which runs this kinematic switch? i.e. simple part code snippet to see what the cylindrical mapping looks like.
  • Have you done this for polar interpolation? (i.e. an axial tool on a C-axis lathe)
    • Reason I ask is that another forum member cooked (and shared) up a polar interpolation kinematics component, but after trying to digest it, I noticed he had hard-coded the tool offset on which the interpolation was based.
      • My guess is that due to the hardware he built (only a single live tool along the turret rotational axis) this offset was never going to change so he didn't write the component to be universal
    • My (slightly stalled) live-tool lathe project would be much more useful if polar interpolation was available.  As would LCNC in general, I think.
Thanks for sharing.  Still looking forward to the THKHMI and other changes you've made backstage in LCNC.

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

More
11 Aug 2024 19:40 #307493 by fsabbatini
Replied by fsabbatini on topic Cylindrical mapping
Hi Spumco!
So yes, at the end of the video link I shared you can see how it looks like, but basically you write the code as if you write it in a plane where the Y axis is mapped to the C axis to a particular diameter (specified with R parameter when calling G7.1)
Example
G0 z0 y0
Y100
Z100
Z0
Y0

That would map the Y axis on the C axis, easy thing (tomorrow I need to machine some parts and I will post the gcode and the finished part)

PD: attached a picture of the new panel working (still missing the label strips)
Attachments:
The following user(s) said Thank You: besriworld, spumco

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

More
11 Aug 2024 19:44 #307494 by fsabbatini
Replied by fsabbatini on topic Cylindrical mapping
I took a picture of the first kinematics on the file, Y axis is interpolation of X an X’
When second kind is active (Y axis is mapped to C and physical Y is not moved)
Attachments:
The following user(s) said Thank You: spumco

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

More
11 Aug 2024 23:53 #307508 by spumco
Replied by spumco on topic Cylindrical mapping
A "virtual Y" like most Y-axis lathes I've seen - cool.  Thanks for the explanation on the kinematics.

Your panel is spectacular, as is the GUI/HMI.

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

More
13 Aug 2024 02:59 #307609 by Bari
Replied by Bari on topic Cylindrical mapping
Just FYI if you just want to wrap G-code to a cylinder
www.scorchworks.com/Gcoderipper/gcoderipper.html

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

Time to create page: 0.180 seconds
Powered by Kunena Forum