Get Toolpath/Tool parameters in AMPU script

Get Toolpath/Tool parameters in AMPU script

cfastNJWK6
Advisor Advisor
1,097 Views
2 Replies
Message 1 of 3

Get Toolpath/Tool parameters in AMPU script

cfastNJWK6
Advisor
Advisor

I am trying to get {powermill}.Tool.FeedSpeed.LeadInFactor into a script in the post-processor.  The post is for a Heidenhain control.  We are currently using "Q" variables to set the different feedrates.  This gives the machine operator a chance to change all cut, rapid, link, and plunge feedrates at the beginning of the program.  I am having difficulty setting the initial lead in and lead out feedrates.  I need to figure out how to pass the {powermill}.Tool.FeedSpeed.LeadInFactor parameter to a script in AMPU.

 

I have tried the following and have received errors every time:

var IN = program.ActiveToolpath.GetParameter("%p(FeedRate.LeadInFactor)%"));

var IN = program.ActiveTool.GetParameter("%p(FeedRate)%"));

var IN = program.ActiveToolpath.GetParameter("%p(FeedRate.LeadInFactor)%"));

 

How can I pass this PowerMill parameter to AMPU?

 

0 Likes
Accepted solutions (1)
1,098 Views
2 Replies
Replies (2)
Message 2 of 3

CAMXPRESS
Advocate
Advocate
Accepted solution

Hello,

 

According to the AMPPU Reference you cold only able to get the followings with GetParam("%p(ParamName)%"):
- Feed Rate Type - The Feed Rate Type (UNDEFINED / CUTTING / RAPID / PLUNGE / SKIM / RAMP LEADIN / LEADIN / LEADOUT).
- Plunge Rate, Skim Rate, Variable Feed Rate, Feed Rate

I think the LeadIn/OutFactor not stored in any CLDATA record.
Another possible way to push this (or any) info to AMPPU from PM is to define a user parameter at PM, store the desired value in it (even with a macro) and after you able to get this value with a script at AMPPU.

Hope it helps to solve your needs.
Regards,

Joe

0 Likes
Message 3 of 3

cfastNJWK6
Advisor
Advisor

Thanks for the reply.

 

I was hoping I would be able to solve this issue without creating a UDP.  But at least now I know that if I want to preset the Q variables for lead in/out and link feedrate, I will have to create a UDP.

 

Thanks again.

0 Likes