PP Table entry Question

Fred Nemecek

PP Table entry Question

I'm trying to add the following entry to a PP Table file: 

INSERTG65P9862B1.H.005Y(%MFG_NOMINAL_DIAM*.5-%MFG_CORNER_RAD)

This works but it outputs the Y value with ( ) around the number.  If the ( ) are removed the math is not done and the output is Number*Number.   How can I get the PP Table file to multiply these variable values and not output ( ) around the answer. 

 

Thanks! 

 

Fred Nemecek

Austin N.C., Inc.

512/458-1112 x119

Dave Frank

RE: PP Table entry Question
(in response to Fred Nemecek)

Hi Fred,

IMHO, this is the best solution. 

PPRINT MYPOST NOMINAL_DIAM= %MFG_NOMINAL_DIAM
PPRINT MYPOST CORNER_RAD %MFG_CORNER_RAD

In a PPRINT Macro in my post, I would parse these, store he variables, and use where needed.

Dave



Dave Frank  *    Dasco Engineering.

NC Programming Lead

COE Product Co-Chairman, Digital Numerical Control

 

Fred Nemecek

RE: PP Table entry Question
(in response to Dave Frank)

Thanks, I know how to do this in the post but the user wants to have it output directly in the aptsource file.  I'm curious what the method of doing math in the PP table file is.  

Fred Nemecek

Austin N.C., Inc.

512/458-1112 x119

Dave Frank

RE: PP Table entry Question
(in response to Fred Nemecek)

In the tool change.  I'll play with it and let you know.


Dave Frank  *    Dasco Engineering.

NC Programming Lead

COE Product Co-Chairman, Digital Numerical Control

 

Eduard De Smaels

RE: PP Table entry Question
(in response to Dave Frank)

Hi,

Got the same problem when calculation is needed. It works fine when having '=' before the calculation.

So another way is to store the calculation into a local machine variable first and call this variable within the subprogramcall. All depends of your controller which variable to call.

Example for Fanuc: pptable

INSERT#100=%MFG_NOMINAL_DIA*.5-%MFG_CORNER_RAD

INSERTG65P9862B1.H.005Y#100

Or more clean is to have all parameters in variables

INSERT#100=1.

INSERT#101=.005

INSERT#102=%MFG_NOMINAL_DIA*.5-%MFG_CORNER_RAD

INSERTG65P9862B#100H#101Y#100

 

Eduard De Smaels - Technical Adviser CAM Engineering

ASCO Industries (Belgium)

Fred Nemecek

RE: PP Table entry Question
(in response to Eduard De Smaels)

Thanks, It is a Hurco controller but I will try it.   The PP Table manual says you don't need the ( ) around math calculations but it doesn't seem to work with out them. 

Fred Nemecek

Austin N.C., Inc.

512/458-1112 x119