Post processor expression help

Post processor expression help

markdiGXTYE
Contributor Contributor
752 Views
7 Replies
Message 1 of 8

Post processor expression help

markdiGXTYE
Contributor
Contributor

Does anyone know the expression to get the total number of holes being drilled? I'm using this parameter to identify the holes but I would like to get a total number:

 

markdiGXTYE_0-1709824975264.png

 

0 Likes
Accepted solutions (1)
753 Views
7 Replies
Replies (7)
Message 2 of 8

serge.quiblier
Autodesk
Autodesk

Hello @markdiGXTYE 

 

the hole num is not even a predefined variable in AMPPU.

It's just a counter created by the post author.

The numbers of holes in an operation is not passed by PowerMill to the post engine.

And there is no easy way to determine this, at the start of the operation.

Having a comment Hole 1 on 10 cannot be created.

 

Regards


______________________________________________________________

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



Serge.Q
Technical Consultant
cam.autodesk.com
0 Likes
Message 3 of 8

markdiGXTYE
Contributor
Contributor

Would there be any other way you could think of to determine how many x,y moves there were or how many blocks or counters there were in a drilling cycle?

0 Likes
Message 4 of 8

kevin.hammond3WX4X
Advocate
Advocate

I have seen posts where the hole count is used to prompt for tip checks and to check hole size.

 

kevinhammond3WX4X_2-1709884129572.png

 

kevinhammond3WX4X_3-1709884191517.png

 

 

 

0 Likes
Message 5 of 8

markdiGXTYE
Contributor
Contributor

Yeah I would like to use this for tool life management. The machine will keep track of how many holes were drilled with a certain tool. I tried to put your expression in but it still wouldn't count the holes, it just puts a 0. I may not have things set right though. Does this work for you?

0 Likes
Message 6 of 8

kevin.hammond3WX4X
Advocate
Advocate

I missed this part 

kevinhammond3WX4X_0-1710141113254.png

 

0 Likes
Message 7 of 8

Jonathan.Artiss-DSI
Advisor
Advisor
Accepted solution

After some thought, I believe you should be able to capture this inside PowerMill through a macro. That information can then be sent to the post and listed in the output, whoever your tool management stuff is being output. 

Jonathan Artiss
Senior Applications Engineer | DSI

Autodesk Expert Elite member
DSI, Design and Software International Autodesk Gold Partner

0 Likes
Message 8 of 8

markdiGXTYE
Contributor
Contributor

Thanks for the help! I sent you a DM

0 Likes