&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 ";======================================================================================================================================="
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
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
I will try it cadcaamnx,
Thanks.
RE: &mom_tool_diameter a lot of zeros
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
[format "%.3f" $mom_tool_diameter]
do not use capital letters.
RE: &mom_tool_diameter a lot of zeros
This code, works pretty well.
Thanks for all.
RE: &mom_tool_diameter a lot of zeros
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