Siemens Turning Post

Siemens Turning Post

roy.haynes
Contributor Contributor
559 Views
1 Reply
Message 1 of 2

Siemens Turning Post

roy.haynes
Contributor
Contributor

Can anyone tell me how you amend the post so that it outputs G291 at the start of every program and G290 at the end of every program as my Siemens 808d controller is set to ISO dialect and the post is for DIN dialect and all our existing programs are in ISO so we don't want to reset the controller to DIN but have found that the G291 & G290 switch the dialect used in the program without issues and time.

0 Likes
Accepted solutions (1)
560 Views
1 Reply
Reply (1)
Message 2 of 2

andrea.amilo
Community Manager
Community Manager
Accepted solution

Hi @roy.haynes ,

 

I think you could modify Siemens turning postprocessor in this way.

You could insert G291 in onSection function, at line 725 :

 

  
  writeBlock(gFormat.format(291));

  if (properties.showNotes && hasParameter("notes")) {
    var notes = getParameter("notes");
    if (notes) {
      var lines = String(notes).split("\n");

and G290 in onSectionEnd function, at line 1530 :

 

function onSectionEnd() {
  writeBlock(gFormat.format(290));
  // cancel SFM mode to preserve spindle speed
  if (tool.getSpindleMode() == SPINDLE_CONSTANT_SURFACE_SPEED) {
    startSpindle(false, true, getFramePosition(currentSection.getFinalPosition()));
  }

Please test it carefully.

 



Andrea Amilo

Senior Technical Consultant

Autodesk Knowledge Network | Fusion 360 Webinars | Autodesk Make
0 Likes