Download V2.1 User Handbook
Transcript
CHAPTER 15. M CODES 15.6 152 M50: Feed Override Control To enable the feedrate override switch, program M50 or M50 P1. To disable the switch program M50 P0. While disabled the feed override will have no influence, and the motion will be executed at programmed feedrate. (unless there is an adaptive feedrate override active). 15.7 M51: Spindle Speed Override Control To enable the spindle speed override switch, program M51 or M51 P1. To disable the switch program M51 P0. While disabled the spindle speed override will have no influence, and the spindle speed will have the exact program specified value (using the S-word as described in 17.2). 15.8 M52: Adaptive Feed Control To use an adaptive feed, program M52 or M52 P1. To stop using adaptive feed, program M52 P0. When adaptive feed is enabled, some external input value is used together with the user interface feed override value and the commanded feed rate to set the actual feed rate. In EMC2, the HAL pin motion.adaptive-feed is used for this purpose. Values on motion.adaptive-feed should range from 0 (feed hold) to 1 (full speed). 15.9 M53: Feed Stop Control To enable the feed stop switch, program M53 or M53 P1. To disable the switch program M53 P0. Enabling the feed stop switch will allow motion to be interrupted by means of the feedstop control. In EMC2, the HAL pin motion.feed-hold is used for this purpose. Values of 1 will cause the motion to stop (if M53 is active). 15.10 M62 to M65: Digital IO Control To control a digital output bit, program M- P-, where the M-word ranges from 62 to 65, and the P-word ranges from 0 to an implementation-defined maximum. M62 Turn on digital output synched with motion M63 Turn off digital output synched with motion M64 Turn on digital output immediately M65 Turn off digital output immediately 15.11 M100 to M199: User Defined Commands To invoke a user-defined command, program M- P- Q- where P- and Q- are both optional. The external program “Mnnn” in the directory [DISPLAY]PROGRAM_PREFIX is executed with the P and Q values as its two arguments. Execution of the RS274NGC file pauses until the invoked program exits. It is an error if • The specified User Defined Command does not exist