File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -614,8 +614,6 @@ function onSection() {
614614 var sectionId = getCurrentSectionId(); // what is the number of this operation (starts from 0)
615615 var section = getSection(sectionId); // what is the section-object for this operation
616616 var tool = section.getTool();
617- writeln("");
618- //writeComment("Section : " + (sectionId + 1));
619617 var maxfeedrate = section.getMaximumFeedrate();
620618
621619 if (!isFirstSection() && properties.generateMultiple && (tool.number != getPreviousSection().getTool().number)) {
@@ -627,6 +625,8 @@ function onSection() {
627625 writeHeader(getCurrentSectionId());
628626 isNewfile = true; // trigger a spindleondelay
629627 }
628+ writeln(" " ); // put these here so they go in the new file
629+ // writeComment("Section : " + (sectionId + 1) + " haveRapid " + haveRapid);
630630
631631 // Insert a small comment section to identify the related G-Code in a large multi-operations file
632632 var comment = " Operation " + (sectionId + 1 ) + " of " + nmbrOfSections;
@@ -974,12 +974,14 @@ function onCommand(command) {
974974 break;
975975 case COMMAND_POWER_OFF:
976976 //writeComment("power off");
977- writeln("");
977+ if (!haveRapid)
978+ writeln("");
978979 powerOn = false;
979980 break;
980981 case COMMAND_POWER_ON:
981982 //writeComment("power ON");
982- writeln("");
983+ if (!haveRapid)
984+ writeln("");
983985 powerOn = true;
984986 break;
985987 }
You can’t perform that action at this time.
0 commit comments