How do I alter amada laser post

How do I alter amada laser post

pmpollock
Participant Participant
439 Views
3 Replies
Message 1 of 4

How do I alter amada laser post

pmpollock
Participant
Participant

I am trying to alter an existing Amada Laser post so that the M102 and M100 lines are above the G98 line of code.

Where in the post processor do I modify?

Attached is an example of the program and the existing post 

Thanks in advance

[email protected]

0 Likes
440 Views
3 Replies
Replies (3)
Message 2 of 4

boopathi.sivakumar
Autodesk
Autodesk

Hi @pmpollock 

Edit the post and find for this line writeBlock(mFormat.format(100)); //Laser mode on

add the codes as mentioned below

    writeBlock(mFormat.format(100)); //Laser mode on
// add from here
    if (isFirstSection){
      if (properties.PostG98){
        writeBlock(gFormat.format(98),"X"+(properties.StartX),"Y"+(properties.StartY),"I"+properties.SpacingX,"J"+properties.SpacingY,"P"+properties.XQuant,"K"+properties.YQuant);
      }
    }
// to here
    writeln("U1");

and go the line number 142 and block the codes as mentioned below

  // absolute coordinates and feed per min
  writeBlock(gAbsIncModal.format(90), gFormat.format(92), xOutput.format(properties.wcsX), yOutput.format(properties.wcsY));
//  if (properties.PostG98){
//    writeBlock(gFormat.format(98),"X"+(properties.StartX),"Y"+(properties.StartY),"I"+properties.SpacingX,"J"+properties.SpacingY,"P"+properties.XQuant,"K"+properties.YQuant);
//  }
  switch (unit) {

 save the post and test

 


Boopathi Sivakumar
Principal Technology Consultant

0 Likes
Message 3 of 4

pmpollock
Participant
Participant

Boopathi:

Thanks for your reply.

I am still having issues. I understand the first part to add the lines of code under the writeBlock(mFormat.format(100)); //Laser mode on.

I did this. at line 212:

 

writeBlock(mFormat.format(102) + "(" + properties.materialType + materialThickness + ")"); // material designation
writeBlock(mFormat.format(100)); //Laser mode on
if (isFirstSection){
if (properties.PostG98){
writeBlock(gFormat.format(98),"X"+(properties.StartX),"Y"+(properties.StartY),"I"+properties.SpacingX,"J"+properties.SpacingY,"P"+properties.XQuant,"K"+properties.YQuant);
}
}
writeln("U1")
}

BUT... Please help me understand what you mean by "going to the line number 142 and block the codes?

 

Can you alter the post I have attached and send back in this e-mail?

Again... trying to get the M102 and M100 to be before the G98 line.

 

Thanks very much for your help

0 Likes
Message 4 of 4

boopathi.sivakumar
Autodesk
Autodesk

Hi @pmpollock 

Just edit the post and find for the line // absolute coordinates and feed per min 

You should able to see the codes like below

  // absolute coordinates and feed per min
  writeBlock(gAbsIncModal.format(90), gFormat.format(92), xOutput.format(properties.wcsX), yOutput.format(properties.wcsY));
  if (properties.PostG98){
    writeBlock(gFormat.format(98),"X"+(properties.StartX),"Y"+(properties.StartY),"I"+properties.SpacingX,"J"+properties.SpacingY,"P"+properties.XQuant,"K"+properties.YQuant);
  }

you need to add // (forward slash) before the lines as shown below

  // absolute coordinates and feed per min
  writeBlock(gAbsIncModal.format(90), gFormat.format(92), xOutput.format(properties.wcsX), yOutput.format(properties.wcsY));
  // if (properties.PostG98){
  //   writeBlock(gFormat.format(98),"X"+(properties.StartX),"Y"+(properties.StartY),"I"+properties.SpacingX,"J"+properties.SpacingY,"P"+properties.XQuant,"K"+properties.YQuant);
  // }

Save the post and test now the M codes should come before the G98


Boopathi Sivakumar
Principal Technology Consultant

0 Likes