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

MACHINE POST MODIFICATION

3 REPLIES 3
Reply
Message 1 of 4
jfaustino9PRJ7
235 Views, 3 Replies

MACHINE POST MODIFICATION

i offloaded and saved a version of the post processer i want to alter, but i have no clue which line change in order to get the coolant on (M08) to move to a different line. I am not familiar with script well enough to know what to do. if anyone could help i would greatly appreciate.

here is a sample of what id like to learn to do

-------------------------------------------

im trying to learn how to customize the way the post processor creates code for my cnc mill
the first thing i want to learn to do is move the line in which it creates a coolant on(M08) code. this is what it look like when i post.
BORE2)
T2 M6
(12 ZRN 3 FLT CEM)
S7000 M3
G4 P26
G90 G94 G17
M8
G8
G0 E2 X0.552 Y-0.4284
H2 Z0.6
Z0.09
G1 Z0.06 F84.
G19 G3 Y-0.3784 Z0.01 R0.05
----------------------------------------
move code to here...
BORE2)
T2 M6
(12 ZRN 3 FLT CEM)
S7000 M3
G4 P26
G90 G94 G17
G8
G0 E2 X0.552 Y-0.4284
H2 Z0.6
M08
Z0.09
G1 Z0.06 F84.
G19 G3 Y-0.3784 Z0.01 R0.05
id like to move it to the line just above the first feed rate.
how do i alter it so that it does that for me??
thank you
3 REPLIES 3
Message 2 of 4
CNC_Lee
in reply to: jfaustino9PRJ7

@jfaustino9PRJ7 

If the generic posts are not providing the required output, I offer post processor development services and happy to work out a solution for your machine! Please message me if still needing assistance.

If my post answers your question, please use Accept as Solution.

CNC Lee
Fusion 360 CAM Post Processor Expert
https://linktr.ee/cnclee
Message 3 of 4
AdamKunzo
in reply to: jfaustino9PRJ7

What post processor are you using?

Message 4 of 4

Hello @jfaustino9PRJ7,

 

It looks like you are using the Fadal post processor, though this advice should work for any post processor.

 

Find the following line in the onSection function ...

  setCoolant(tool.coolant); // writes the required coolant codes

 

... and move it directly after the writeInitialPositioning call.

  writeInitialPositioning(initialPosition, insertToolCall, wcsCode);
  setCoolant(tool.coolant); // <<< MOVE THIS LINE TO HERE


Bob Schultz
Sr. Post Processor Developer

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

Post to forums  

Autodesk Design & Make Report