File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -614,8 +614,6 @@ function onSection() {
614
614
var sectionId = getCurrentSectionId(); // what is the number of this operation (starts from 0)
615
615
var section = getSection(sectionId); // what is the section-object for this operation
616
616
var tool = section.getTool();
617
- writeln("");
618
- //writeComment("Section : " + (sectionId + 1));
619
617
var maxfeedrate = section.getMaximumFeedrate();
620
618
621
619
if (!isFirstSection() && properties.generateMultiple && (tool.number != getPreviousSection().getTool().number)) {
@@ -627,6 +625,8 @@ function onSection() {
627
625
writeHeader(getCurrentSectionId());
628
626
isNewfile = true; // trigger a spindleondelay
629
627
}
628
+ writeln(" " ); // put these here so they go in the new file
629
+ // writeComment("Section : " + (sectionId + 1) + " haveRapid " + haveRapid);
630
630
631
631
// Insert a small comment section to identify the related G-Code in a large multi-operations file
632
632
var comment = " Operation " + (sectionId + 1 ) + " of " + nmbrOfSections;
@@ -974,12 +974,14 @@ function onCommand(command) {
974
974
break;
975
975
case COMMAND_POWER_OFF:
976
976
//writeComment("power off");
977
- writeln("");
977
+ if (!haveRapid)
978
+ writeln("");
978
979
powerOn = false;
979
980
break;
980
981
case COMMAND_POWER_ON:
981
982
//writeComment("power ON");
982
- writeln("");
983
+ if (!haveRapid)
984
+ writeln("");
983
985
powerOn = true;
984
986
break;
985
987
}
You can’t perform that action at this time.
0 commit comments