- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey guys,
I need to tweak the post processor for TinyG for something I'm working on.
Basically, What I need to do is change the M3 S10000 line to write in After the 'plunge' is completed.
(2D POCKET8) M5 M9 T1 M3 S10000 //From here <-------------- G54 M9 G0 X2.0183 Y10.3813 Z0.4 Z0.2 G1 Z0.1 F33.3 Z-0.019 //To after this line Here <---------------- G3 X2.0173 Y10.3811 Z-0.02 I-0.0003 J-0.0009 Y10.3803 I0.0003 J-0.0004 F100. X2.0179 Y10.3811 I0.0003 J0.0004
And then on right before a 'Retract function, or before a positive Z Action, send M5
That way this:
X2.0118 Y10.3788 X2.0124 Y10.3781 G3 X2.0133 Y10.3778 Z-0.029 I0.0008 J0.0007 G0 Z0.4 X2.1502 Y10.3431 Z0.2 G1 Z0.1 F33.3 Z-0.019 G3 X2.1506 Y10.344 Z-0.02 I-0.0005 J0.0008 X2.1488 Y10.3449 I-0.0011 J0. F100. Y10.3431 I0.0007 J-0.0009
Would actually look like this:
X2.0118 Y10.3788 X2.0124 Y10.3781 G3 X2.0133 Y10.3778 Z-0.029 I0.0008 J0.0007 M5 <----------------Added G0 Z0.4 X2.1502 Y10.3431 Z0.2 G1 Z0.1 F33.3 Z-0.019 M3 10000 <----------------Added G3 X2.1506 Y10.344 Z-0.02 I-0.0005 J0.0008 X2.1488 Y10.3449 I-0.0011 J0. F100. Y10.3431 I0.0007 J-0.0009
Now looking at the code, I could probably get rid of the code block:
function onSpindleSpeed(spindleSpeed) {
if (properties.useActiveSpindle) {
writeBlock(sOutput.format(spindleSpeed));
} else {
writeComment(sOutput.format(spindleSpeed));
onCommand(COMMAND_STOP);
}
}or just get rid of the 'write block/comment' piece of it, and leave it in there.. but make it ineffective
I think I can just add a writeblock 'M3 S10000' in here just before the retract command
if (properties.useG53) {
// retract to safe plane
retracted = true;
// put M3 S10000 here
writeBlock(gFormat.format(53), "Z" + xyzFormat.format(0)); // retract
zOutput.reset();However, I can't find anything where it has the plunge command in the code... I ran the dump file for it, and I found this line of code:
383: onMovement(MOVEMENT_PLUNGE /*plunge*/)
Which tells me I should see something to be able to code against it, right?
Would appreciate any assistance or help I can get, hints are very welcome.
Thanks!
Solved! Go to Solution.
