I want to calculate the angle when it is rotated to the tilted face.
the MCS is on the tilted surface, and the origin is on the center point of the hole...
I want to get the I J K from the tool axis, so as to calculate the B C angle...
The CLSF:
TOOL PATH/D25R0.8_COPY,TOOL,D25R4.8CEM
TLDATA/MILL,25.0000,0.0000,50.0000,0.0000,0.0000
MSYS/-49.5037,110.6111,4.6673,-0.2336063,0.4305111,-0.8718304,-0.1114245,-0.9025853,-0.4158418
PAINT/PATH
PAINT/SPEED,10
PAINT/COLOR,186
RAPID
GOTO/50.4822,23.5571,0.0000,0.0000000,0.0000000,1.0000000
To test the I J K
proc MOM_start_of_path {} {
#_______________________________________________________________________________
# This procedure is executed at the begining of each path in the task
# It gets called after all the general parameters of the path are loaded
# like the path name and the tool name.
#_______________________________________________________________________________
global mom_path_name
global mom_tool_name
global i j k
global mom_tool_axis
global mom_prev_tool_axis
MOM_output_literal "$mom_tool_axis(0), $mom_tool_axis(1), $mom_tool_axis(2)"
MOM_output_literal "$mom_prev_tool_axis(0), $mom_prev_tool_axis(1), $mom_prev_tool_axis(2)"
CHECK_OPER_TYPE
}
and the Test result
0 BEGIN PGM UG_TRY MM
1 -0.87183043658199078, -0.41584178691117041, 0.25881904510252024
2 0.00000000000000000, 0.00000000000000000, 1.00000000000000000
3 L M129
And I get the I J K of the normal vector of the surface is:
I 0.416 J 0.2588 K -0.8718
what is the problem with the tool axis I J K?
How to utilize these to calculated the B and C angle? I just want the 5-sided postprocessor |