Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Trouble with Post and Drilling Holes

dtompkins93
Contributor

Trouble with Post and Drilling Holes

dtompkins93
Contributor
Contributor

Hi, I have an old CMS router running an Osai control module. I found the stock Osai Post Processor, and have edited some of it to suit my old machines quirks. However, I am having trouble with drilling holes. When i use the drill operation, and select all of my holes, it only seems to drill the first one. Then, it positions itself over each hole, but the plunge code is missing. All X and Y coordinates, no Z coordinates or G81 (Drill Cycle). My bandaid so far has been to select only one hole per Drilling Operation, and then use patterns and mirrors to get all of holes done. However, this is very time consuming, and doesn't allow me make use of features like the "Select all same diameter". I have attached my edited Post Processor, and a small sample file to show what I mean. In the sample file, I have made two setups, the first selecting all holes in one, the second using my bandaid. I have also attached the corresponding G Code output. Thanks in advance for any help you can provide.

 

Sample File 

0 Likes
Reply
Accepted solutions (1)
305 Views
2 Replies
Replies (2)

boopathi.sivakumar
Autodesk
Autodesk
Accepted solution

Hi @dtompkins93 

Currently the post is set to output only for first cycle, It seems like you need output cycle for each hole then the post needs to be edited as shown, find for the below codes it should be somewhere in 769

  if (isFirstCyclePoint()) {
    repositionToCycleClearance(cycle, x, y, z);

 

you have to change the isFirstCyclePoint to true

  if (true) {
    repositionToCycleClearance(cycle, x, y, z);

Save the post and test it

 


Boopathi Sivakumar
Senior Technology Consultant

0 Likes

dtompkins93
Contributor
Contributor
Thank you so much, this worked perfectly. I wish I had seen your reply sooner.
0 Likes