Fusion/Centroid Post: Front tool post M4

Fusion/Centroid Post: Front tool post M4

info4DKZM
Enthusiast Enthusiast
251 Views
1 Reply
Message 1 of 2

Fusion/Centroid Post: Front tool post M4

info4DKZM
Enthusiast
Enthusiast

Hi, does anyone have (or could modify) a Centroid post to Default to M4 ? post currently puts out M3 which means manually editing.

Phil

0 Likes
252 Views
1 Reply
Reply (1)
Message 2 of 2

bob.schultz
Alumni
Alumni

Hello Phil,

 

It is a simple modification to output an M4 for clockwise spindle rotations.  First, find this code and make the following change in the onSection function.

    writeBlock(
      sOutput.format(spindleSpeed), mFormat.format(tool.clockwise ? 4 : 3)
    );

And then the following change in the mapCommand definition.

var mapCommand = {
  COMMAND_STOP:0,
  COMMAND_OPTIONAL_STOP:1,
  COMMAND_END:2,
  COMMAND_SPINDLE_CLOCKWISE:4,
  COMMAND_SPINDLE_COUNTERCLOCKWISE:3,
  COMMAND_STOP_SPINDLE:5,
  COMMAND_ORIENTATE_SPINDLE:19,
  COMMAND_LOAD_TOOL:6
};

You could also setup all of your tools to run in the counter-clockwise direction by default, if you don't want to modify the post.



Bob Schultz
Sr. Post Processor Developer

0 Likes