Community
HSM Post Processor Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help remove G54-59 from post

2 REPLIES 2
Reply
Message 1 of 3
jmweng82
123 Views, 2 Replies

Help remove G54-59 from post

Hi i need to stop my processor creating G54 or similar in my code as my lathe doesn't use it but will run once i manually delete it as you can see it creates it at the start of every cycle. Ive attached my post processor below thanks

 

%O100121,MX,
N10 G90 G95 G18
N11 G71
N12 G92 S2700
;PROFILE ROUGHING2
N13 T2 D2
N14 G54
N15 M8
N16 G95
N17 G97 S597 M3
N18 G0 X80. Z5.
N19 G92 S2700
N20 G96 S150 M3
N21 G0 Z0.6
N22 X58.51
N23 G1 Z-30.8 F0.2
N24 X60.
N25 X62. Z-29.8
N26 G0 X80.
N27 Z5.
N28 G97 S597 M3
N29 M9
;PROFILE FINISHING1
N30 T1 D1
N31 G54
N32 M8
N33 G95
N34 G97 S796 M3
N35 G0 X80. Z5.
N36 G92 S2700
N37 G96 S200 M3
N38 G0 Z0.614
N39 X61.543
N40 G1 X61.138 F0.2
N41 X58.31 Z-0.8
N42 Z-30.8
N43 X62.31
N44 G0 X80.
N45 Z5.
N46 G97 S796 M3
N47 M9
N48 M30
%

2 REPLIES 2
Message 2 of 3
AchimN
in reply to: jmweng82

Search for this code block in your postprocessor:

  if (currentSection.workOffset != currentWorkOffset) {
    writeBlock(currentSection.wcs);
    currentWorkOffset = currentSection.workOffset;
  }


then add 2 slashes in front of each line, then the code is commented out and will not be used anymore.
Should then look like this:

  // if (currentSection.workOffset != currentWorkOffset) {
  //  writeBlock(currentSection.wcs);
  //  currentWorkOffset = currentSection.workOffset;
  // }

 



Achim.N
Principal Technology Consultant
Message 3 of 3
jmweng82
in reply to: AchimN

Hi thanks that seems to have work ill load it into the machine tomorrow and see if it runs thanks

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report