Hi @Anonymous ,
I think you could modify your postprocessor in this way :
function onCommand(command) {
switch (command) {
case COMMAND_COOLANT_OFF:
setCoolant(COOLANT_OFF);
return;
case COMMAND_COOLANT_ON:
setCoolant(COOLANT_FLOOD);
return;
case COMMAND_START_SPINDLE:
onCommand(tool.clockwise ? COMMAND_SPINDLE_CLOCKWISE : COMMAND_SPINDLE_COUNTERCLOCKWISE);
return;
case COMMAND_LOCK_MULTI_AXIS:
return;
case COMMAND_UNLOCK_MULTI_AXIS:
return;
case COMMAND_START_CHIP_TRANSPORT:
writeBlock(mFormat.format(50));
return;
case COMMAND_STOP_CHIP_TRANSPORT:
writeBlock(mFormat.format(51));
return;
case COMMAND_BREAK_CONTROL:
return;
case COMMAND_TOOL_MEASURE:
return;
}
Moreover you shoud comment every block you find both 'onCommand(COMMAND_START_CHIP_TRANSPORT); ' and 'onCommand(COMMAND_STOP_CHIP_TRANSPORT);'. E.g:
// onCommand(COMMAND_START_CHIP_TRANSPORT);
// onCommand(COMMAND_STOP_CHIP_TRANSPORT);
Please test it carefully and let me know.