Would it be possible to write the code above into a sub program?
I don't usually have a lot of luck when running code from Fusion360, posting code, and then running it on my Tormach Slant Bed Lathe. I use a lot of tools that aren't really able to be setup in Fusion 360's Tool Library, so often I will use PathPilot's Conversational programming. I recently did the coolant hack that NYCCNC did, where he edited the post processor and used solenoids to send coolant to the turrett or the gang block, depending on which tool number is called.
My question is, is there a way to edit the post processor on the PathPilot computer itself, so that when I post code from the PathPilot conversational programming, the edited code I want from the Fusion360 post processor edit will be automatically generated from PathPilot conversational? I know I can manually edit the g-code after writing the conversational code, but I want to have it posted automatically from PathPilot conversational. Below is the edited code from the Fusion360 to PathPilot post processor that NYCCNC did.
Obviously I did not include the rest of the post processor code.
// set coolant after we have positioned at Z
(Added by Sithech Customs)
if(tool.number=>1 && tool.number=<8)
{
writeBlock(mFormat.format(64), "P5");
writeBlock(mFormat.format(65), "P6");
}
else if(tool.number=>11 && tool.number=<20)
{
writeBlock(mFormat.format(65), "P5");
writeBlock(mFormat.format(64), "P6");
}
Similar Threads:
Would it be possible to write the code above into a sub program?
Nico, Sithech Customs, LLC., sithechcustoms.com
sithech.customs@gmail..com