MACHINE POST MODIFICATION

jfaustino9PRJ7
Explorer
Explorer

MACHINE POST MODIFICATION

jfaustino9PRJ7
Explorer
Explorer

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
0 Likes
Reply
279 Views
3 Replies
Replies (3)

CNC_Lee
Collaborator
Collaborator

@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
Autodesk CAM Post Processor Expert
https://linktr.ee/cnclee
0 Likes

AdamKunzo
Collaborator
Collaborator

What post processor are you using?

0 Likes

bob.schultz
Autodesk
Autodesk

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

0 Likes