5238-E P-52SECTION 5 S, T, AND M FUNCTIONS5-2. M Codes Used for C-axis OperationThe following codes are necessary for programming C-axis movements.* When the NC is reset, it is placed in the M15 mode.[Example of Program]LE33013R0300700070002Code DetailsM110Used to designate the spindle to be controlled in the C-axis control mode.When programming C-axis commands, first specify M110 in a block without othercommands.M109 Used for switchover from the C-axis control mode to the spindle control mode.M147 Used to clamp the C-axis.M146Used to unclamp the C-axis.The control system automatically selects the M146 mode when the power isturned on.Program M146 before starting C-axis rotation.M141 C-axis clamp ineffective (compound fixed cycle mode)M15 Used to rotate the C-axis in the positivedirection.M16 Used to rotate the C-axis in the negativedirection.QA = Used to specify the number of C-axis revolutions.For example, QA=5 rotates C-axis five times.M16 M15Chuck end faceTool : ø15 mm drillTool No. : T0101ø15 mm holeCommandpointProgramzeroC180C90C0C27080100 SB = 400min-1120φ