×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

&mom_tool_diameter a lot of zeros

&mom_tool_diameter a lot of zeros

&mom_tool_diameter a lot of zeros

(OP)
Hello,

This mom variable, &mom_tool_diameter it takes a lot of zeros, behind I don't know why.

11 ;==== TOOL: T1 - TOOL NAME: UGT0201_009 ======
12 ;==== TOOL DIAMETER: 45.00000000000000000 - TOOL RADIUS: 5.00000000000000000 =====
---------------------------

Custom code:

global mom_path_name
global mom_tool_number
global mom_tool_name
global mom_tool_diameter
global mom_tool_corner1_radius
global mom_tool_taper_angle

MOM_output_literal ";======================================================================================================================================="

MOM_output_literal ";==== TOOL DIAMETER: $mom_tool_diameter - TOOL RADIUS: $mom_tool_corner1_radius ====="                          
MOM_output_literal ";======================================================================================================================================="

RE: &mom_tool_diameter a lot of zeros

hi berry ..

the format should be in post buid with 18 decimal places
and must be reduced to three places after the comma
this form or format

"TOOL NAME:[Format% .2$mom_tool_diameter]" example of it with mom_tool_diameter


doubt   andrenxcam@yahoo.com.br

André

specialist and multi axis
development of IS & V
and postprocessors
member committee nxcam plm world
skype:andrenxcam7

RE: &mom_tool_diameter a lot of zeros

(OP)
Ok,

I will try it cadcaamnx,

Thanks.

RE: &mom_tool_diameter a lot of zeros

(OP)
I have put like this, and it takes error postprocessing.

I don't know what part of the code is wrong.

Thanks.


MOM_output_literal ";==== TOOL DIA: [Format% .2$mom_tool_diameter] - TOOL RADIUS: [Format% .2$mom_tool_corner1_radius] - TOOL ANGLE: [Format% .2$mom_tool_taper_angle] =="   

RE: &mom_tool_diameter a lot of zeros

Here is the correct syntax:

[format "%.3f" $mom_tool_diameter]

do not use capital letters.

RE: &mom_tool_diameter a lot of zeros

(OP)
Hi John,

This code, works pretty well.

Thanks for all.

RE: &mom_tool_diameter a lot of zeros

hi john

sorry

forget of the put %.2f

thanks....  sorry igor..

André  

specialist and multi axis
development of IS & V
and postprocessors
member committee nxcam plm world
skype:andrenxcam7

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources