Output partial bore/boss probing angles as positive

Output partial bore/boss probing angles as positive

Eric_Evans_a_GiroDisc_com
Advocate Advocate
200 Views
2 Replies
Message 1 of 3

Output partial bore/boss probing angles as positive

Eric_Evans_a_GiroDisc_com
Advocate
Advocate

Trying to add 3 point cycles to my Brother Speedio w/Blum probing post.

The function is the same as for Renishaw except the angles need to be output a 0 < 360, vs +/-180, and they are coded as HUV, vs ABC.

Girodyno_1-1678804729728.png

How can I get those angles to output as positive numbers?

Girodyno_0-1678804326595.png

The post utility doesn't include any samples of partial/angle driven cycles and searching through the post for keywords like partial, circle or angle has just taken me in (full, not partial!) circles.

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

seth.madore
Community Manager
Community Manager

Give this a try:
"H" + xyzFormat.format(xyzFormat.getResultingValue(cycle.partialCircleAngleA) < 0 ? cycle.partialCircleAngleA + Math.PI * 2 : cycle.partialCircleAngleA)


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes
Message 3 of 3

Eric_Evans_a_GiroDisc_com
Advocate
Advocate
Accepted solution

Thanks for the assist Seth!

 

From Left to Right:

Stock post, your attempt, my adaptation of yours

Girodyno_0-1678817707689.png

The partialanglecircle output is -A degrees, so I just needed to add that back to a full 360.   Thankfully you handled the logic and syntax I just needed to fill in the blanks!

 

"xyzFormat.format(xyzFormat.getResultingValue(cycle.partialCircleAngleA) < 0 ? cycle.partialCircleAngleA + 360 : cycle.partialCircleAngleA),"