Tiny-G Post Processor Changes?

Tiny-G Post Processor Changes?

Anonymous
Not applicable
1,058 Views
5 Replies
Message 1 of 6

Tiny-G Post Processor Changes?

Anonymous
Not applicable

I have been running the Tiny-G for a few months and have noticed some consistent and one intermittent problem. Here is a sample outpu from Fusion 360 that has 3 problems. 

 

(BRIDGE PINS TEST 3)
(18 STRAIGHT)
(T1 D=0.125 CR=0. - ZMIN=-0.42 - FLAT END MILL)
G0 G90 G94 G17
G20
G53 Z0.
(BIDGE PIN HOLES)
M5
M9
T1
M3 S5000
G54
M8
G0 X1.4957 Y-1.6119 <------------------------ #1 If you are using the z0 position to being at the top of the model this will gouge your work.

                                                                       It really should go to retract height first then move.
Z0.6
Z0.0187
G1 Z-0.0613 F10.
X1.4988 Y-1.6065
G3 X1.4741 Y-1.65 Z-0.081 I-0.0124 J-0.0217 F20. <--------------------- #2 The Tiny-G does not like 4 digits of precision in G20 mode. This code results

                                                                                                           in a plunge cut instead of a helical arc. Editing the parameters to .000 precision

                                                                                                           seems to fix it. It appears to be the J parameter in G2/G3 commands that are                                                                                                                     particularly sensitive.
X1.4988 Y-1.6065 Z-0.1007 I0.0124 J0.0217
X1.4741 Y-1.65 Z-0.1204 I-0.0124 J-0.0217
X1.4988 Y-1.6065 Z-0.1401 I0.0124 J0.0217
X1.4741 Y-1.65 Z-0.1598 I-0.0124 J-0.0217
X1.4988 Y-1.6065 Z-0.1794 I0.0124 J0.0217
X1.4741 Y-1.65 Z-0.1991 I-0.0124 J-0.0217
X1.4988 Y-1.6065 Z-0.2188 I0.0124 J0.0217
X1.4741 Y-1.65 Z-0.2385 I-0.0124 J-0.0217
X1.4988 Y-1.6065 Z-0.2582 I0.0124 J0.0217
X1.4741 Y-1.65 Z-0.2779 I-0.0124 J-0.0217
X1.4988 Y-1.6065 Z-0.2976 I0.0124 J0.0217
X1.4741 Y-1.65 Z-0.3172 I-0.0124 J-0.0217
X1.4988 Y-1.6065 Z-0.3369 I0.0124 J0.0217
X1.4741 Y-1.65 Z-0.3566 I-0.0124 J-0.0217
X1.4988 Y-1.6065 Z-0.3763 I0.0124 J0.0217
X1.4741 Y-1.65 Z-0.396 I-0.0124 J-0.0217
X1.4988 Y-1.6065 Z-0.4157 I0.0124 J0.0217
X1.4821 Y-1.6036 Z-0.42 I-0.0124 J-0.0217
X1.4908 Y-1.6528 I0.0043 J-0.0246
X1.4821 Y-1.6036 I-0.0043 J0.0246
G1 X1.4832 Y-1.6098 F10.
G0 Z0.2
X1.925 Y-1.535
Z0.0246
G1 Z-0.0554 F10.
X1.9312
G3 X1.8812 Z-0.0751 I-0.025 J0. F20.
X1.9312 Z-0.0947 I0.025 J0.
X1.8812 Z-0.1144 I-0.025 J0.
X1.9312 Z-0.1341 I0.025 J0.
X1.8812 Z-0.1538 I-0.025 J0.
X1.9312 Z-0.1735 I0.025 J0.
X1.8812 Z-0.1932 I-0.025 J0.
X1.9312 Z-0.2129 I0.025 J0.
X1.8812 Z-0.2325 I-0.025 J0.
X1.9312 Z-0.2522 I0.025 J0.
X1.8812 Z-0.2719 I-0.025 J0.
X1.9312 Z-0.2916 I0.025 J0.
X1.8812 Z-0.3113 I-0.025 J0.
X1.9312 Z-0.331 I0.025 J0.
X1.8812 Z-0.3507 I-0.025 J0.
X1.9312 Z-0.3703 I0.025 J0.
X1.8812 Z-0.39 I-0.025 J0.
X1.9312 Z-0.4097 I0.025 J0.
X1.9044 Y-1.5101 Z-0.42 I-0.025 J0.
X1.908 Y-1.5599 I0.0018 J-0.0249
X1.9044 Y-1.5101 I-0.0018 J0.0249
G1 X1.9049 Y-1.5163 F10.
G0 Z0.2
X2.3447 Y-1.4418
Z0.0245
G1 Z-0.0555 F10.
X2.351
G3 X2.301 Z-0.0752 I-0.025 J0. F20.
X2.351 Z-0.0949 I0.025 J0.
X2.301 Z-0.1145 I-0.025 J0.
X2.351 Z-0.1342 I0.025 J0.
X2.301 Z-0.1539 I-0.025 J0.
X2.351 Z-0.1736 I0.025 J0.
X2.301 Z-0.1933 I-0.025 J0.
X2.351 Z-0.213 I0.025 J0.
X2.301 Z-0.2327 I-0.025 J0.
X2.351 Z-0.2523 I0.025 J0.
X2.301 Z-0.272 I-0.025 J0.
X2.351 Z-0.2917 I0.025 J0.
X2.301 Z-0.3114 I-0.025 J0.
X2.351 Z-0.3311 I0.025 J0.
X2.301 Z-0.3508 I-0.025 J0.
X2.351 Z-0.3705 I0.025 J0.
X2.301 Z-0.3901 I-0.025 J0.
X2.351 Z-0.4098 I0.025 J0.
X2.3246 Y-1.4168 Z-0.42 I-0.025 J0.
X2.3273 Y-1.4668 I0.0013 J-0.025
X2.3246 Y-1.4168 I-0.0013 J0.025
G1 X2.325 Y-1.4231 F10.
G0 Z0.2
X2.7598 Y-1.3362
Z0.0244
G1 Z-0.0556 F10.
X2.7645 Y-1.332
G3 X2.727 Y-1.3651 Z-0.0753 I-0.0187 J-0.0165 F20.
X2.7645 Y-1.332 Z-0.095 I0.0187 J0.0165
X2.727 Y-1.3651 Z-0.1147 I-0.0187 J-0.0165
X2.7645 Y-1.332 Z-0.1343 I0.0187 J0.0165
X2.727 Y-1.3651 Z-0.154 I-0.0187 J-0.0165
X2.7645 Y-1.332 Z-0.1737 I0.0187 J0.0165
X2.727 Y-1.3651 Z-0.1934 I-0.0187 J-0.0165
X2.7645 Y-1.332 Z-0.2131 I0.0187 J0.0165
X2.727 Y-1.3651 Z-0.2328 I-0.0187 J-0.0165
X2.7645 Y-1.332 Z-0.2525 I0.0187 J0.0165
X2.727 Y-1.3651 Z-0.2721 I-0.0187 J-0.0165
X2.7645 Y-1.332 Z-0.2918 I0.0187 J0.0165
X2.727 Y-1.3651 Z-0.3115 I-0.0187 J-0.0165
X2.7645 Y-1.332 Z-0.3312 I0.0187 J0.0165
X2.727 Y-1.3651 Z-0.3509 I-0.0187 J-0.0165
X2.7645 Y-1.332 Z-0.3706 I0.0187 J0.0165
X2.727 Y-1.3651 Z-0.3903 I-0.0187 J-0.0165
X2.7645 Y-1.332 Z-0.4099 I0.0187 J0.0165
X2.7286 Y-1.3304 Z-0.42 I-0.0187 J-0.0165
X2.7629 Y-1.3667 I0.0172 J-0.0182
X2.7286 Y-1.3304 I-0.0172 J0.0182
G1 X2.7329 Y-1.3349 F10.
G0 Z0.2
X3.1471 Y-1.2521
Z0.0242
G1 Z-0.0558 F10.
X3.1409 Y-1.2511
G3 X3.1902 Y-1.2596 Z-0.0755 I0.0246 J-0.0043 F20.
X3.1409 Y-1.2511 Z-0.0952 I-0.0246 J0.0043
X3.1902 Y-1.2596 Z-0.1149 I0.0246 J-0.0043
X3.1409 Y-1.2511 Z-0.1345 I-0.0246 J0.0043
X3.1902 Y-1.2596 Z-0.1542 I0.0246 J-0.0043
X3.1409 Y-1.2511 Z-0.1739 I-0.0246 J0.0043
X3.1902 Y-1.2596 Z-0.1936 I0.0246 J-0.0043
X3.1409 Y-1.2511 Z-0.2133 I-0.0246 J0.0043
X3.1902 Y-1.2596 Z-0.233 I0.0246 J-0.0043
X3.1409 Y-1.2511 Z-0.2527 I-0.0246 J0.0043
X3.1902 Y-1.2596 Z-0.2723 I0.0246 J-0.0043
X3.1409 Y-1.2511 Z-0.292 I-0.0246 J0.0043
X3.1902 Y-1.2596 Z-0.3117 I0.0246 J-0.0043
X3.1409 Y-1.2511 Z-0.3314 I-0.0246 J0.0043
X3.1902 Y-1.2596 Z-0.3511 I0.0246 J-0.0043
X3.1409 Y-1.2511 Z-0.3708 I-0.0246 J0.0043
X3.1902 Y-1.2596 Z-0.3904 I0.0246 J-0.0043
X3.1409 Y-1.2511 Z-0.4101 I-0.0246 J0.0043
X3.1614 Y-1.28 Z-0.42 I0.0246 J-0.0043
X3.1697 Y-1.2307 I0.0042 J0.0246
X3.1614 Y-1.28 I-0.0042 J-0.0246
G1 X3.1624 Y-1.2738 F10.
G0 Z0.2
X3.6008 Y-1.1726
Z0.0109
G1 Z-0.0691 F10.
X3.606 Y-1.1761
G3 X3.5646 Y-1.1481 Z-0.0888 I-0.0207 J0.014 F20.
X3.606 Y-1.1761 Z-0.1085 I0.0207 J-0.014
X3.5646 Y-1.1481 Z-0.1282 I-0.0207 J0.014
X3.606 Y-1.1761 Z-0.1479 I0.0207 J-0.014
X3.5646 Y-1.1481 Z-0.1675 I-0.0207 J0.014
X3.606 Y-1.1761 Z-0.1872 I0.0207 J-0.014
X3.5646 Y-1.1481 Z-0.2069 I-0.0207 J0.014
X3.606 Y-1.1761 Z-0.2266 I0.0207 J-0.014
X3.5646 Y-1.1481 Z-0.2463 I-0.0207 J0.014
X3.606 Y-1.1761 Z-0.266 I0.0207 J-0.014
X3.5646 Y-1.1481 Z-0.2856 I-0.0207 J0.014
X3.606 Y-1.1761 Z-0.3053 I0.0207 J-0.014
X3.5646 Y-1.1481 Z-0.325 I-0.0207 J0.014
X3.606 Y-1.1761 Z-0.3447 I0.0207 J-0.014
X3.5646 Y-1.1481 Z-0.3644 I-0.0207 J0.014
X3.606 Y-1.1761 Z-0.3841 I0.0207 J-0.014
X3.5646 Y-1.1481 Z-0.4038 I-0.0207 J0.014
X3.5956 Y-1.1849 Z-0.42 I0.0207 J-0.014
X3.575 Y-1.1394 I-0.0103 J0.0228
X3.5956 Y-1.1849 I0.0103 J-0.0228
G1 X3.5931 Y-1.1792 F10.
G0 Z0.6
M9
G53 Z0. <-------------------------- #3 Instead of parking at Z0 this should be retract height.
M30

0 Likes
Accepted solutions (1)
1,059 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

I made this change to the post processor and was able to solve problem #2:

 

var xyzFormat = createFormat({decimals:3, forceDecimal:true});
var rFormat = xyzFormat; // radius
var abcFormat = createFormat({decimals:3, forceDecimal:true, scale:DEG});
var feedFormat = createFormat({decimals:(unit == MM ? 0 : 1), forceDecimal:true});

 

Many others have posted in the Tiny-G forum about this very problem.

0 Likes
Message 3 of 6

Anonymous
Not applicable

I do not know how to reference the retract height. But, for me, .2 inches from Z0 is helpful. So, a hack for problem #3 could be:

 

function onClose() {
writeln("");

onCommand(COMMAND_COOLANT_OFF);

if (properties.useG53) {
writeBlock(gFormat.format(53), "Z" + xyzFormat.format(0) + 2); // retract
zOutput.reset();
}

0 Likes
Message 4 of 6

AchimN
Community Manager
Community Manager
Accepted solution

@Anonymous Thanks for your feedback. There will be an update to the tinyG post available within a few hours here:

http://cam.autodesk.com/posts/?p=tinyg

 

Please try that one and let me know if you still have issue.



Achim.N
Principal Technology Consultant
Message 5 of 6

Anonymous
Not applicable

I can verify that this works with my problem files.

 

 

0 Likes
Message 6 of 6

AchimN
Community Manager
Community Manager

Excellent, thanks for your feedback.



Achim.N
Principal Technology Consultant
0 Likes