The following NC data statements is generated at the start of each
turning operation:
- The coordinates of the origin of the local machining axis.
- An order to switch from the X-axis to the U-axis.
This is done through parameterized syntaxes in the PP table (NC_SPINDLE_LATHE
or NC_LATHE_MO_START_COMMENT).
Using NC_SPINDLE_LATHE:
*START_NC_COMMAND NC_SPINDLE_LATHE
*START_LIST MFG_SPNDL_UNIT
RPM ,SFM
*END
LOCAL_ORIGIN,%MFG_NCAXIS_X_ORIG,%MFG_NCAXIS_Y_ORIG,%MFG_NCAXIS_Z_ORIG
$$ SWITCH_FROM_X_TO_U
SPINDL/%MFG_SPNDL_SPEED,&MFG_SPNDL_UNIT
*END
*END
Using NC_LATHE_MO_START_COMMENT:
*START_NC_INSTRUCTION NC_LATHE_MO_START_COMMENT
*START_SEQUENCE
LOCAL_ORIGIN,%MFG_NCAXIS_X_ORIG,%MFG_NCAXIS_Y_ORIG,%MFG_NCAXIS_Z_ORIG
$$ SWITCH_FROM_X_TO_U
*END
*END
A typical APT output is:
$$ OPERATION NAME : Profile Finish Turning.1
$$ Start generation of : Profile Finish Turning.1
SWITCH/9
FEDRAT/ 0.3000,MMPR
LOCAL_ORIGIN, 0.00000, 130.00000, 0.000000
$$ SWITCH_FROM_X_TO_U
SPINDL/ 70.0000,RPM
GOTO / ...