Very small 4 axis mill for cutting plastic materials
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4801
- Thank you received: 2161
11 Jul 2026 11:21 - 11 Jul 2026 11:34 #347678
by Aciera
Modified filter script:
Tested with /sim/axis/vismach/5axis/table-rotary-tilting/xyzac-trt.ini with the following modifications to the ini file:
NOTE that trt-kins and trt-vismach simulations uses unconventional rotational directions so the tool cone in the preview is on the opposite side of the path.
A axis max limits need to be expanded to be able to tilt the table to 90° for the vismach simulation
Replied by Aciera on topic Very small 4 axis mill for cutting plastic materials
Modified filter script:
Tested with /sim/axis/vismach/5axis/table-rotary-tilting/xyzac-trt.ini with the following modifications to the ini file:
[DISPLAY]
GEOMETRY = XYZ-CANOTE that trt-kins and trt-vismach simulations uses unconventional rotational directions so the tool cone in the preview is on the opposite side of the path.
[FILTER]
PROGRAM_EXTENSION = .pts points file
pts = ./LinuxCNC_pts_filter_4_axis.pyA axis max limits need to be expanded to be able to tilt the table to 90° for the vismach simulation
[AXIS_A]
MAX_LIMIT = 90[JOINT_3]
MAX_LIMIT = 90Attachments:
Last edit: 11 Jul 2026 11:34 by Aciera.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4801
- Thank you received: 2161
11 Jul 2026 12:46 #347681
by Aciera
trt-kinematics have parameters to compensate for offsets between the machine reference point and the rotation-point of the table rotary:
See for example 'xyzac-trt.ini':
Note though that, as indicated, the vismach simulation does not support these.
I do not.
Replied by Aciera on topic Very small 4 axis mill for cutting plastic materials
Yes of course, already set and configured ( i think), but a bit fuzzy on G53 vs G54 values, as i have G54 X0Y0 at the center of the C axis, but G53 are far from it.
trt-kinematics have parameters to compensate for offsets between the machine reference point and the rotation-point of the table rotary:
See for example 'xyzac-trt.ini':
# not currently supported by xyzac-trt-gui:
HALCMD = setp xyzac-trt-kins.x-rot-point 0
HALCMD = setp xyzac-trt-kins.y-rot-point 0
HALCMD = setp xyzac-trt-kins.z-rot-point 0Note though that, as indicated, the vismach simulation does not support these.
Yup, know of any good open source one?
I do not.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
-
Topic Author
- Online
- Moderator
-
Less
More
- Posts: 21827
- Thank you received: 7453
11 Jul 2026 23:22 - 13 Jul 2026 00:29 #347697
by tommylight
Replied by tommylight on topic Very small 4 axis mill for cutting plastic materials
Spindle mounted at the right side of the X axis, and all that mounted to the Z axis (see HiWin HGH25 left)
How the tool should be positioned during cutting, only the see-thru thin sheet over the brown (orange?) part must be cut, so about 0.5-1mm deep
C axis (3D printed round part with teeth for belt) is mounted above the Y axis and moves with it.
Full view of the important parts:
So far i have tried and tested over 10 configs, and over 40 scripts generated by Gemini, so this has become a late evening sport and an exercise in futility, although there were some moments when it seemed it is working, just to fail miserably.
None of those had TCP, just variations of axis/joints and different planes of works space.
Last two configs have TCP, and the subsequent failure to obey the joint/axis velocities and accelerations, the parallel port one a lot, the Mesa one less often so at least i can test a bit with TCP on and feed/speed lowered beyond useful.
And that brings us to:
Aciera, thank you for helping with this, i did not reply last night as i did not have much time to test, so gave it another go tonight (well yesterday, i see now it is 2:04AM here), so here are some of the results, probably in a non-coherent manner:
-in sim, it starts sine but after a short while it rolls/winds the C axis a lot as can be seen on the preview by the tool making a full rotation around the cut line, but in the same spot on the cut line, then continues nicely for most of the cut.
-on a machine, after fixing the limits and G53 0, it does the same thing, but here LinuxCNC errors out and stops the machine, even at very, very low feed rate and low max velocity, usually C axis at the beginning and Y axis a bit later. I am sure i read somewhere here about TCP causing this but could not find it, so i will try again today/tomorrow.
-the thing with C axis going from approx. 110 to -280 in about 10 lines of gcode does not seem OK, and i could not find what is causing that, it happens on several converted/filtered files, not just one, always after several lines of OK code.
-
Again, thank you, will report back whenever i can.
How the tool should be positioned during cutting, only the see-thru thin sheet over the brown (orange?) part must be cut, so about 0.5-1mm deep
C axis (3D printed round part with teeth for belt) is mounted above the Y axis and moves with it.
Full view of the important parts:
So far i have tried and tested over 10 configs, and over 40 scripts generated by Gemini, so this has become a late evening sport and an exercise in futility, although there were some moments when it seemed it is working, just to fail miserably.
None of those had TCP, just variations of axis/joints and different planes of works space.
Last two configs have TCP, and the subsequent failure to obey the joint/axis velocities and accelerations, the parallel port one a lot, the Mesa one less often so at least i can test a bit with TCP on and feed/speed lowered beyond useful.
And that brings us to:
Aciera, thank you for helping with this, i did not reply last night as i did not have much time to test, so gave it another go tonight (well yesterday, i see now it is 2:04AM here), so here are some of the results, probably in a non-coherent manner:
-in sim, it starts sine but after a short while it rolls/winds the C axis a lot as can be seen on the preview by the tool making a full rotation around the cut line, but in the same spot on the cut line, then continues nicely for most of the cut.
-on a machine, after fixing the limits and G53 0, it does the same thing, but here LinuxCNC errors out and stops the machine, even at very, very low feed rate and low max velocity, usually C axis at the beginning and Y axis a bit later. I am sure i read somewhere here about TCP causing this but could not find it, so i will try again today/tomorrow.
-the thing with C axis going from approx. 110 to -280 in about 10 lines of gcode does not seem OK, and i could not find what is causing that, it happens on several converted/filtered files, not just one, always after several lines of OK code.
-
Again, thank you, will report back whenever i can.
Attachments:
Last edit: 13 Jul 2026 00:29 by tommylight. Reason: more info
Please Log in or Create an account to join the conversation.
- tommylight
-
Topic Author
- Online
- Moderator
-
Less
More
- Posts: 21827
- Thank you received: 7453
13 Jul 2026 00:33 #347724
by tommylight
Replied by tommylight on topic Very small 4 axis mill for cutting plastic materials
Almost forgot, also swapped in hal the X and Z axis, so now if you turn the machine on the left side it is exactly as in the Vismach preview, and set the ini for A axis to home at 90, so i do not have to do that at every start.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4801
- Thank you received: 2161
13 Jul 2026 06:33 - 13 Jul 2026 06:33 #347729
by Aciera
sounds like you might have downloaded the first version of the filter script which I modified shortly after posting to fix exactly this issue. So make sure you use the current one with the transition handling:
I have tested this with all three {1,2,3}.pts files and the result looks fine to me. (The C axis values never goes negative)
Replied by Aciera on topic Very small 4 axis mill for cutting plastic materials
-the thing with C axis going from approx. 110 to -280 in about 10 lines of gcode does not seem OK
sounds like you might have downloaded the first version of the filter script which I modified shortly after posting to fix exactly this issue. So make sure you use the current one with the transition handling:
if dt < -180: # handle 180 -> -180 transition
current_c += (dt+360)
elif dt > 180: # handle -180 -> 180 transition
current_c += (dt-360)
else:
current_c += dtI have tested this with all three {1,2,3}.pts files and the result looks fine to me. (The C axis values never goes negative)
Last edit: 13 Jul 2026 06:33 by Aciera.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
-
Topic Author
- Online
- Moderator
-
Less
More
- Posts: 21827
- Thank you received: 7453
14 Jul 2026 01:01 #347753
by tommylight
Replied by tommylight on topic Very small 4 axis mill for cutting plastic materials
OK, just got back from the shop, and we have results, pretty good ones, now i think i have to mess with some TCP parameters as some moves are not where they should be, but in general it seems it works, it is much better than any of my attempts to coerce Gemini.
Almost 3AM here, going to watch "A Brief History of Exploring Mars" by "Classic Aerospace History" on youtube, and maybe sleep.
Was a good day, finished a lot of things on a cnc router till 9PM, ate, went for a coffee, came back to this.
Been quite some time since i had such productive day, missed it...
Aciera, thank you.
Almost 3AM here, going to watch "A Brief History of Exploring Mars" by "Classic Aerospace History" on youtube, and maybe sleep.
Was a good day, finished a lot of things on a cnc router till 9PM, ate, went for a coffee, came back to this.
Been quite some time since i had such productive day, missed it...
Aciera, thank you.
Please Log in or Create an account to join the conversation.
- tommylight
-
Topic Author
- Online
- Moderator
-
Less
More
- Posts: 21827
- Thank you received: 7453
18 Jul 2026 01:13 #347821
by tommylight
Replied by tommylight on topic Very small 4 axis mill for cutting plastic materials
Been busy finishing and commissioning a router i built, sorry for the lack of updates.
Please Log in or Create an account to join the conversation.
Time to create page: 0.719 seconds