Details
The lathe post processor uses the mom_gohome_status variable in a custom command in the end of path event to check for a home position move in the operation. The logic is failing for lathe control events since there is no tool assigned, and so no home move is possible in the operation - the mom_gohome_status variable gets no value assigned.
Solution
Add a small check based on the operation type variable at the beginning of the custom command:
====================================================
global mom_operation_type
if { $mom_operation_type == "Lathe Machine Control" } {
return
}
...followed by the existing logic in the command...
====================================================
If the post sees that we are in a lathe control operation, the "return" simply exits the current proc and skips the rest of his logic. Any other operation type will pass through and use the existing tests to generate the output the post already has working.
Hardware/Software Configuration
Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: CAM
Version: V1973
Function: POSTBUILDER
Ref: 002-8602499