problem with radius compensation
- endian
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 176
- Thank you received: 45
06 Nov 2021 19:04 #225517
by endian
problem with radius compensation was created by endian
Hello,
I am working with gmoccappy lathe interface and running some test program on LCNC 2.8.2 (Linux debian 4.9.0-8-rt-686-pae #1 SMP PREEMPT RT Debian 4.9.110-3+deb9u6 (2018-10-08) i686 GNU/Linux) with mesa 7i76e.
I facing problem with tool radius compensation from picture below of test gcode path. Every diameter at picture below has sharp corner (R0.0) from right side, but just 3 ones from right are radius compensated fine and next 2 ones are bigger then it should be and you can see it in picture and in real too.
I do not know where it should be a problem. Everything around work fine but when it did this in the path it lost dimension and I am producing wrong part...
I am using F360 for creating the gcode path with default F360 postprocesor I just changed G28 homing to G53... when I am reading gcode from file everything looks fine. I am using tool setup just like this T2 M6 G43 for read all neccessary parameters for radius comp...
Screenshot of tooltable is at picture below, I am using just one tool with tip radius =0.4mm... angles, radius are from producer and tool offsets I setted up with contact probe.
thanks for help
regards Slav
I am working with gmoccappy lathe interface and running some test program on LCNC 2.8.2 (Linux debian 4.9.0-8-rt-686-pae #1 SMP PREEMPT RT Debian 4.9.110-3+deb9u6 (2018-10-08) i686 GNU/Linux) with mesa 7i76e.
I facing problem with tool radius compensation from picture below of test gcode path. Every diameter at picture below has sharp corner (R0.0) from right side, but just 3 ones from right are radius compensated fine and next 2 ones are bigger then it should be and you can see it in picture and in real too.
I do not know where it should be a problem. Everything around work fine but when it did this in the path it lost dimension and I am producing wrong part...
I am using F360 for creating the gcode path with default F360 postprocesor I just changed G28 homing to G53... when I am reading gcode from file everything looks fine. I am using tool setup just like this T2 M6 G43 for read all neccessary parameters for radius comp...
Screenshot of tooltable is at picture below, I am using just one tool with tip radius =0.4mm... angles, radius are from producer and tool offsets I setted up with contact probe.
thanks for help
regards Slav
Please Log in or Create an account to join the conversation.
- bevins
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
06 Nov 2021 19:12 #225518
by bevins
Replied by bevins on topic problem with radius compensation
You sure that's not a path blending issue? I don't know anything about lathes but have you tried G64 P.001 or something similar?
Please Log in or Create an account to join the conversation.
- endian
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 176
- Thank you received: 45
06 Nov 2021 20:03 #225524
by endian
Replied by endian on topic problem with radius compensation
I do not know sorry... I am struggling around it.. I am just searching what should be the problem.. But I do not know how it type to searching and better idea it was post a picture with problem but I should be that issue what you said...
I just put G21 G64 P0.01 at startup lcnc for all movements or I can put it in to the some file for smooth just it?
am I right please?
thank you
regards Slav
I just put G21 G64 P0.01 at startup lcnc for all movements or I can put it in to the some file for smooth just it?
am I right please?
thank you
regards Slav
Please Log in or Create an account to join the conversation.
- bevins
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
06 Nov 2021 20:51 #225526
by bevins
Replied by bevins on topic problem with radius compensation
Put it in the beginning on the setup line with the rest of the gcode setups.
Please Log in or Create an account to join the conversation.
- endian
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 176
- Thank you received: 45
06 Nov 2021 21:14 #225529
by endian
Replied by endian on topic problem with radius compensation
for a lathe it should inside .ini file looks like this
lathe, plane y, metric unit, cancel tool comp, setup path blending, etc etc...
RS274NGC_STARTUP_CODE = G7 G18 G21 G40 G49 G64 Pxxxxx G80 G90 G92 G94 G97 G98
great practise in metric machine should be value of G64 P(how many) please?
lathe, plane y, metric unit, cancel tool comp, setup path blending, etc etc...
RS274NGC_STARTUP_CODE = G7 G18 G21 G40 G49 G64 Pxxxxx G80 G90 G92 G94 G97 G98
great practise in metric machine should be value of G64 P(how many) please?
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7000
- Thank you received: 1172
06 Nov 2021 22:37 #225537
by BigJohnT
Replied by BigJohnT on topic problem with radius compensation
RS274NGC_STARTUP_CODE only works until you override it in G code so best to have a good preamble in the beginning of each G code file.
linuxcnc.org/docs/2.8/html/user/user-con...#_trajectory_control
JT
linuxcnc.org/docs/2.8/html/user/user-con...#_trajectory_control
JT
Please Log in or Create an account to join the conversation.
- endian
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 176
- Thank you received: 45
07 Nov 2021 07:10 #225550
by endian
Replied by endian on topic problem with radius compensation
Thanks everyone for reply...
The best way is to customize F360 postprocesor to generete at begining of each operation the G64 P(value of tolerance from each operation from F360 interface).
Are there any next high recomended G codes which I have to pay attention for lathe please?
Regards Slav
The best way is to customize F360 postprocesor to generete at begining of each operation the G64 P(value of tolerance from each operation from F360 interface).
Are there any next high recomended G codes which I have to pay attention for lathe please?
Regards Slav
Please Log in or Create an account to join the conversation.
- endian
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 176
- Thank you received: 45
07 Nov 2021 08:54 #225553
by endian
Replied by endian on topic problem with radius compensation
if somebody have a fever of customatization Fusion 360 as me and want to add some nice line of javascript code to your default postprocesor here below is everything what you need to add after setup work offsets by :
it will take each tolerance from each operation and set them before operation is started
to suppress last blend tolerance in code, you will need some next line of code to return tolerance to default G64 only by :
var tolerance = Math.max(getParameter("operation:tolerance"), 0);
writeBlock(
gFormat.format(64), "P" + tolerance
);
it will take each tolerance from each operation and set them before operation is started
to suppress last blend tolerance in code, you will need some next line of code to return tolerance to default G64 only by :
writeBlock(gFormat.format(64));
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds