Custom OSAI Post Processor

Custom OSAI Post Processor

jta49
Contributor Contributor
2,716 Views
8 Replies
Message 1 of 9

Custom OSAI Post Processor

jta49
Contributor
Contributor

I have a Hendrick Manufacturing HLD-L68 CNC router. I process all of my Gcode files using the OSAI post processor supplied by fusion, however my machine cannot read the G90, G91, and ho(x) codes. I am looking for a post processor that will not output these codes so I do not have to manually take them out myself. Any help is appreciated. 

 

I have included two files to show what I take out each time, one is correct and one is the file with the invalid g90,g91 etc codes. 

 

Thankyou, 

 

James

0 Likes
Accepted solutions (1)
2,717 Views
8 Replies
Replies (8)
Message 2 of 9

Arun.rs
Autodesk
Autodesk

HI @jta49 

 

 Thanks for raising your concern via Forum.

Open 'osai.cps' file in a 'Visual Studio Code' or 'Notepad++' to do the required modifications.

 

1. Go to line number 243, and remove ' gAbsIncModal.format(90' so final code will like below 

 writeBlock(gFeedModeModal.format(94));

 

2. Go to line number 1170, change the below code 

 

From this:

if (_useG28) {
      gAbsIncModal.reset();
      writeBlock(gMotionModal.format(0), gFormat.format(79), gAbsIncModal.format(91), words);
      writeBlock(gAbsIncModal.format(90));

To this:

if (_useG28) {
      gAbsIncModal.reset();
      writeBlock(gMotionModal.format(0), gFormat.format(79), words);

 

3.  To remove H offset , go to line number 544 and 551 and remove ' hFormat.format(lengthOffset)'

Osai.png

 

4. To give Y home position 100 in program end, go to line number 1140. Give 100 instead of 0 for '_yHome '

 _yHome = toPreciseUnit(100, MM);

 

Save the file and test the NC output carefully.

 

Regards

If my post answers your question, please click the 'Accept Solution' button. This helps everyone find answers more quickly!



Arun.RS
Senior Technology Consultant

Message 3 of 9

jta49
Contributor
Contributor

Hey there, Thanks for the response and I really appreciate the help @Arun.rs . I have made the proper edits however when I try to import into fusion I am getting an "invalid post processor" error message. Any Idea what is going on?

0 Likes
Message 4 of 9

Arun.rs
Autodesk
Autodesk

Hi @jta49 

 

Thanks for your feedback.

 

The error is because of a extra comma in line number 551 .

 

Comma.png

Remove the same and save the file.

 

Hope this helps!

 

Regards

If my post answers your question, please click the 'Accept Solution' button. This helps everyone find answers more quickly!



Arun.RS
Senior Technology Consultant

0 Likes
Message 5 of 9

jta49
Contributor
Contributor

I have edited it but now I am getting another random G90 code (see line 17 and line 106) along with a weird ending y value of 3.937 ? Any thoughts on how to fix that @Arun.rs ?

0 Likes
Message 6 of 9

jta49
Contributor
Contributor

Ah I realized for the Y-value at the end I am exporting in Inches and I assume it is converting to MM? That is why it is outputting the 3.9? @Arun.rs 

0 Likes
Message 7 of 9

Arun.rs
Autodesk
Autodesk
Accepted solution

Hi @jta49 

 

Apologies for reply.

 

If your machine is not accepting G90 codes then you have to remove ' gAbsIncModal.format(90) ' from the post.

 

Use 'Ctrl+H' for replace .

 

Repplace.png

 

Yes, the 3.9 is converting to inches .

 

Regards

If my post answers your question, please click the 'Accept Solution' button. This helps everyone find answers more quickly!



Arun.RS
Senior Technology Consultant

0 Likes
Message 8 of 9

jta49
Contributor
Contributor

Worked Perfectly! Thanks so much @Arun.rs 

Message 9 of 9

jchaissonPWX3J
Explorer
Explorer

@Arun.rs , 

 

would you be willing to help me i have a very similar situation and I'm stuck. We are trying to switch from MasterCAM to InventorCAM. We have a C.R. ONSRUD 5-Axis Router thats uses an OSAI Controller and when i try and get C.R. ONSRUD to help im told they only can help and support MasterCAM Post Processors. When i compare NC files of  the same part i get similar G-Code formating but not exactly the same. please message me if you can help. 

0 Likes