Link to us from your website and promote the community!... Then email us to receive a Free CNC cheat sheet from the CNC Specialty Store!

Facebook Group

Share your CNC information?
...Procedures
...Macro programs
...Articles
...and more

Suggestions or comments?
Please Email Us

Thank you for all your contributions and supporting the CNC community.

Fanuc Macro program Calling by M-code, or G-code statementG65P/G66P
Macro program call bym-codeor g-code setup
"Simple call" "Max. 10 G codes from G01?G64 and G68?G9999""Mxx <argument assignment>" 9001 to 9009 6080 to 6089 Set G or M code that calls program specified in the parameter "Max. 10 M codes from M006 to M99999999""G65P (program number) L (repetition count) <argument assignment>" "Macro call by M code" "Modal call" "G66P (program number) L (repetition count) <argument assignment>" "Macro call by G code" "Gxx <argument assignment>" 9010 to 9019 6050 to 6059 Set G or M code that calls program specified in the parameter "Subprogram call by M code" Mxx ; 9001 to 9009 6071 to 6079 Displayed on program check screen but no MF nor M code is sent. Set an M code that calls a sub-program specified by the parameter. "Mxx ; Max. 9 M codes from M006?M99999999"