Help needed with FFF post creation utility

Help needed with FFF post creation utility

BoostedVal
Participant Participant
208 Views
2 Replies
Message 1 of 3

Help needed with FFF post creation utility

BoostedVal
Participant
Participant

 Hi there, I am trying to turn off the power loss recovery on the creality cr-x, I am attempting to add M 413 to the start code in the post processor but am failing spectacularly, is there any documentation other than what is on the add in page, Thank you ( or is there a better way to turn it off )

0 Likes
Accepted solutions (1)
209 Views
2 Replies
Replies (2)
Message 2 of 3

serge.quiblier
Autodesk
Autodesk
Accepted solution

Hi @BoostedVal 

 

the fff post utility will allow you to create a post processor from scratch, using the explanations provided on the webpage.

 

But it won't change a library post to suit your need.

 

If you want to alter the creality post, here is some explanations and links to resources:

https://forums.autodesk.com/t5/hsm-post-processor-forum/technical-faq/td-p/7473258

If you want to add m-codes at the start of the program, it will be done either in the onOpen, or more frequently in the onSection function. onOpen is called before heating up the bed/extruder(s)..., onSection is called after.

Let's consider an initial partial code like this one:

  // homing
  writeBlock(gFormat.format(28));

  if (getProperty("enableBedLeveling") == "g29") {
    writeBlock(gFormat.format(29)); // enable auto bed leveling
  }
  if (getProperty("enableBedLeveling") == "m420") {
    writeComment("Enable auto bed leveling");
    writeBlock(mFormat.format(420), sOutput.format(1), zOutput.format(bedLevelingHeight)); // enable auto bed levelling
  }

  // lower build plate
  var initialPosition = getFramePosition(currentSection.getInitialPosition());

 

the g-code generated will be looking like this one:
G28
either G29
or M420 S1 Z depending on the post property selection for the bed levelling
G1....

If we need to add a M413 between G28 and the rest, it can be done this way:

  // homing
  writeBlock(gFormat.format(28));

  // addition
  writeBlock(mFormat.format(413));

  if (getProperty("enableBedLeveling") == "g29") {
    writeBlock(gFormat.format(29)); // enable auto bed leveling
  }
  if (getProperty("enableBedLeveling") == "m420") {
    writeComment("Enable auto bed leveling");
    writeBlock(mFormat.format(420), sOutput.format(1), zOutput.format(bedLevelingHeight)); // enable auto bed levelling
  }

  // lower build plate
  var initialPosition = getFramePosition(currentSection.getInitialPosition());

 

If you need to alter your post, please you must start by copying it from the library to a personal folder (either on the cloud, or local)

 

Have a pleasant day.

 

Regards.


______________________________________________________________

If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!



Serge.Q
Technical Consultant
cam.autodesk.com
Message 3 of 3

BoostedVal
Participant
Participant

Hi Serge, from the info and the links, I have found I have some learning to do at w3schools.com then watch the video links as this is way above my current skill level, once again thank you very much for your help its very much appreciated

0 Likes