Smithy CNC Mills User Manual
Page 41

3.8 M52: Adaptive Feed Control
To use an adaptive feed, program M52 or M52 P1. To stop using adaptive feed, pro-
gram 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).
3.9 M53: Feed Stop Control
To enable the feed stop switch, program M53 or M53 P1. To disable the switch pro-
gram 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).
3.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
3.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
SmithyCNC Programmer’s Reference Manual: M Codes
3-5