If we have a CAM setup where the operations have different tool axes, how can we output the next operation's tool axis at the end of the current operation?
SolutionWe can use the pretreatment functionality to do this. In the service tcl layer, add this code for example:
LIB_SPF_pretreatment_add_var will save the values of mom_tool_axis at the MOM_first_move event for each operation.
LIB_SPF_get_pretreatment will later read the collected variables so the values can be output. In this case we output the values for the next operation at MOM_end_of_path.
In the below example, the first operation has a tool axis in Z direction and the second operation has a tool axis in XZ direction.
The tool axis of the second operation is output at the end of the first one.