Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Siemens 840D post issue "SAFE_TC" replaces "G0 SUPA Z0" - Hermle C42 Siemens 840D

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
tony3W49B
225 Views, 4 Replies

Siemens 840D post issue "SAFE_TC" replaces "G0 SUPA Z0" - Hermle C42 Siemens 840D

I'm here again, asking for help with a post processor.😀

I have attached my post to this. When I post this I get "G0 SUPA Z0" which is in the post options. There is also G28 & G53. However, my machine requires "SAFE_TC" instead.

 

Any of your very clever people any ideas as to where the post can be edited to post out "SAFE_TC", please.

I have managed to take this post from a 3 axis post to a 5 axis post, which for me is excellent. This is just causing me an issue.

I have tried copy, and overwriting the line {title:"SUPA", id:"SUPA"} with {title:"SAFE_TC", id:"SAFE_TC"} but this didn't work. The post properties still had the original options and still posted as per the option I chose below:-

 

tony3W49B_0-1678982517617.png

 

Any help is very much appreciated, as always.

Thanks in advance

4 REPLIES 4
Message 2 of 5
serge.quiblier
in reply to: tony3W49B

Hello @tony3W49B 

 

Adding a sub value to the property safePositionMethod is the way to go.

But it won't suffice.

 

Magic does not exists in posts, so, a little sweat is also necessary.

 

Go down in the writeRetract function near the end of your post.

And notice that piece of code :

    switch (method) {
    case "G28":
      gMotionModal.reset();
      gAbsIncModal.reset();
      writeBlock(gFormat.format(28), gAbsIncModal.format(91), words);
      writeBlock(gAbsIncModal.format(90));
      break;
    case "G53":
      gMotionModal.reset();
      writeBlock(gAbsIncModal.format(90), gFormat.format(53), words, dFormat.format(0)); // retract
      if (lengthOffset != 0) {
        writeBlock(dFormat.format(lengthOffset));
      }
      break;
    case "SUPA":
      gMotionModal.reset();
      writeBlock(gMotionModal.format(0), "SUPA", words, dFormat.format(0)); // retract
      if (lengthOffset != 0) {
        writeBlock(dFormat.format(lengthOffset));
      }
      break;
    default:
      error(localize("Unsupported safe position method."));
      return;
    }

 

You can then edit it, to handle your new option:

    switch (method) {
    case "G28":
      gMotionModal.reset();
      gAbsIncModal.reset();
      writeBlock(gFormat.format(28), gAbsIncModal.format(91), words);
      writeBlock(gAbsIncModal.format(90));
      break;
    case "G53":
      gMotionModal.reset();
      writeBlock(gAbsIncModal.format(90), gFormat.format(53), words, dFormat.format(0)); // retract
      if (lengthOffset != 0) {
        writeBlock(dFormat.format(lengthOffset));
      }
      break;
    case "SUPA":
      gMotionModal.reset();
      writeBlock(gMotionModal.format(0), "SUPA", words, dFormat.format(0)); // retract
      if (lengthOffset != 0) {
        writeBlock(dFormat.format(lengthOffset));
      }
      break;
    case "SAFE_TC":
      writeBlock("SAFE_TC"); // retract
      break;
    default:
      error(localize("Unsupported safe position method."));
      return;
    }

 

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 5
tony3W49B
in reply to: serge.quiblier

@serge.quiblier 

 

Thanks for your response. After carrying out your instructions, :-

 

switch (method) {
case "G28":
gMotionModal.reset();
gAbsIncModal.reset();
writeBlock(gFormat.format(28), gAbsIncModal.format(91), words);
writeBlock(gAbsIncModal.format(90));
break;
case "G53":
gMotionModal.reset();
writeBlock(gAbsIncModal.format(90), gFormat.format(53), words, dFormat.format(0)); // retract
if (lengthOffset != 0) {
writeBlock(dFormat.format(lengthOffset));
}
break;
case "SUPA":
gMotionModal.reset();
writeBlock(gMotionModal.format(0), "SUPA", words, dFormat.format(0)); // retract
if (lengthOffset != 0) {
writeBlock(dFormat.format(lengthOffset));
}
break;
case "SAFE_TC":
writeBlock("SAFE_TC"); // retract
break;
default:
error(localize("Unsupported safe position method."));
return;
}

 

I still get the below:-

tony3W49B_0-1678984803548.png

I've dropped down the safe retracts box and the "SAFE_TC" option is not there.

Code below:-

N13 G71
N14 G64
N15 G17
N16 G0 SUPA Z0 D0
N17 CYCLE800(1,"",0,27,0,0,0,0,0,0,0,0,0,0)

N18 ; HIGHFEED ROUGH BOSS
N19 T1 D1
N20 M6
N21 ; TXSW09M050B22.0R07 SWMT0904ZER-MM AH130
N22 S764 M3

 

Message 4 of 5
serge.quiblier
in reply to: tony3W49B

Hi @tony3W49B 

 

Have you changed the property definition?

Initial code:

  safePositionMethod: {
    title      : "Safe Retracts",
    description: "Select your desired retract option. 'Clearance Height' retracts to the operation clearance height.",
    group      : "homePositions",
    type       : "enum",
    values     : [
      // {title: "G28", id: "G28"},
      {title:"G53", id:"G53"},
      {title:"Clearance Height", id:"clearanceHeight"},
      {title:"SUPA", id:"SUPA"}
    ],
    value: "SUPA",
    scope: "post"
  },

 

New code

  safePositionMethod: {
    title      : "Safe Retracts",
    description: "Select your desired retract option. 'Clearance Height' retracts to the operation clearance height.",
    group      : "homePositions",
    type       : "enum",
    values     : [
      // {title: "G28", id: "G28"},
      {title:"G53", id:"G53"},
      {title:"Clearance Height", id:"clearanceHeight"},
      {title:"SUPA", id:"SUPA"},  // Adding a comma at the end of the line
      {title:"SAFE_TC", id:"SAFE_TC"},  // Adding the newest option
    ],
    value: "SAFE_TC",  // Changing the default value to the newest option
    scope: "post"
  },

 

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 5 of 5
tony3W49B
in reply to: serge.quiblier

@serge.quiblier 

You are a genius!!!!!

 

Thanks for your help!

 

Superstar.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report