How can you obtain mom_tool_axis variable to print out?
Solution
##The custom command below will print out the 4th and 5th value of the rotary## angle as well as the 3,4 & 5 value of mom_tool_axis when tag to the Rapid## event##
global mom_posglobal mom_tool_axis
MOM_output_literal " -------- $mom_pos(3)"MOM_output_literal " -------- $mom_pos(4)"
if {[info exists mom_tool_axis(0)]} { MOM_output_text "mom_tool_axis = $mom_tool_axis(0), $mom_tool_axis(1), $mom_tool_axis(2)"} else { MOM_output_text "mom_tool_axis not defined"}
Notes