Writing User Parameters to variables with Post Processor

Writing User Parameters to variables with Post Processor

lukas.deleuUHVCN
Explorer Explorer
822 Views
7 Replies
Message 1 of 8

Writing User Parameters to variables with Post Processor

lukas.deleuUHVCN
Explorer
Explorer

Hello everyone,

 

I was wondering if it was possible to export the values in my User Parameters to a Variable on my Lathe though my post processor. 

 

lukasdeleuUHVCN_0-1659456806401.png

 

I want it to automatically edit my offset according to the part location in fusion.  Using:

 

G10 L2 P3 Z [ #5222 + 'STOCK_Extension'-0.5] 

 

#5222 being G54 z located on front of main spindle

 

Any ideas? 

 

0 Likes
823 Views
7 Replies
Replies (7)
Message 2 of 8

seth.madore
Community Manager
Community Manager

Sadly, parameters aren't yet available in the Manufacture workspace. However, you could use a Manual NC > Passthrough, but it's a static set of values...


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes
Message 3 of 8

frederik.mide
Contributor
Contributor

Could a solution/work around be to create a parametrically driven box/cylinder and then use that as your stock material (setup > Stock > mode: from solid?), or a parametrically driven fixture? 

0 Likes
Message 4 of 8

lukas.deleuUHVCN
Explorer
Explorer
HI Frederik, thanks for the response!
is there a way to call on those parameters in your post processor?
If I understood correctly the parameter to call on should be 'stockZHigh'?

Thanks
0 Likes
Message 5 of 8

frederik.mide
Contributor
Contributor

What i meant was to make use of Fusions bult-in capability to offset parts using a point on your stock (which can be defined in the Design workspace, where parametric modelling is possible) as reference, and thus entirely avoid the need to modify your WCS using G10. 

I work on head/head non-lathe machines only, so I don't know if the G10 is needed for anything else than the part offset?

0 Likes
Message 6 of 8

jswickJ9PWC
Advocate
Advocate

I'm assuming your definition of "stock extension" is how far the face of the part is from the Fusion WCS zero? If so, you need to use call and store the parameter "stock-upper-z"

 

For example, this is how I do it: 

 

 

 

var mFace = createFormat({decimals:4, trim:true});  //create a 4-place decimal to hold the face value
var macroFaceValue = mFace.format(getParameter("stock-upper-z")); //get the face value and store it as a usable variable

 

0 Likes
Message 7 of 8

lukas.deleuUHVCN
Explorer
Explorer
I'm getting an error: Parameter does not exist.
where did you get this parameter from?
I also tried it with 'stockZHigh' which is a usable parameter in fusion, same error.
0 Likes
Message 8 of 8

jswickJ9PWC
Advocate
Advocate

That parameter comes from fusion, it is not a user parameter. If you use the dump.cps to check your outputs, you'll see it at the top. This is, of course, assuming you have stock defined in Fusion. 

 

 

0 Likes