{"id":1841,"date":"2026-11-26T17:56:31","date_gmt":"2026-11-26T15:56:31","guid":{"rendered":"https:\/\/macromillcnc.com\/2026\/11\/26\/fanuc-macro-mistakes\/"},"modified":"2026-11-26T18:02:35","modified_gmt":"2026-11-26T16:02:35","slug":"fanuc-macro-mistakes","status":"publish","type":"post","link":"https:\/\/macromillcnc.com\/2026\/11\/26\/fanuc-macro-mistakes\/","title":{"rendered":"Common FANUC macro mistakes that crash machines, and how to catch them first"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Most FANUC macro mistakes are not exotic. They are small slips \u2014 a vacant variable, a leftover G91, a depth with the wrong sign \u2014 and they only show up when the machine moves. The way to catch them first is to know what they look like, put checks in the macro, and test the program in a simulator before you prove it out on the machine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The software is for training and simulation only. Yes, programs and macros you write and test in a MacroMill simulator can be saved or exported and run on a real CNC machine. As with any new program, prove it out first with single block, reduced rapids and a dry run before you cut.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is a practical list of common Custom Macro B mistakes, with a short wrong and right example for each. The language itself is covered in the <a href=\"https:\/\/macromillcnc.com\/2026\/11\/19\/cnc-macro-programming-guide\/\">practical guide to FANUC Custom Macro B<\/a>. For a worked program that already uses input checks and loop clamps, see <a href=\"https:\/\/macromillcnc.com\/2026\/11\/26\/write-test-and-run-a-fanuc-macro\/\">Write a FANUC macro, test it in MacroMill, then run it on your machine<\/a>. For what parametric programming can do in a shop, and for a career, see <a href=\"https:\/\/macromillcnc.com\/2026\/11\/26\/black-art-of-cnc-macro-programming\/\">The black art of CNC macro programming, and what it can do for your career<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Using a vacant variable in a calculation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A G65 argument that was not passed is vacant, not zero. #0 is the vacant value. If you use a vacant variable in arithmetic, the control alarms. If you test EQ 0 instead of EQ #0, a missing X and a real X0. look the same, so a centre at X0 can be rejected, or a missing depth can be treated as Z0 and the tool can be sent to the wrong height.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(WRONG - X WAS NOT PASSED, #24 IS VACANT)\nG65 P8011 Y50. Z-8.\n#30=#24+#25\nIF[#24 EQ 0]GOTO900\n\n(RIGHT)\nIF[#24 EQ #0]GOTO900\nIF[#25 EQ #0]GOTO900\nIF[#26 EQ #0]GOTO900\n#30=#24+#25<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Catch it by watching the variables in a MacroMill simulator after the G65 call. If a required argument is vacant, add the #0 test and an alarm before any calculation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Mixing up local and common variables<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Local variables #1 to #33 belong to that macro call and nesting level. They do not remember values for the next G65 call. Common variables #100 to #199 stay until they are changed or the control is powered down, and #500 to #999 stay after power down. If you count parts in #1, the count vanishes on the next call. If you use #100 as scratch and never set it, the previous program\u2019s value is still there.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(WRONG - #1 DOES NOT PERSIST, #100 IS NOT RESET)\n#1=#1+1\n#100=#100+1\n\n(RIGHT - START FROM A KNOWN VALUE, OR KEEP IT LOCAL)\n#100=0\n#100=#100+1\n#31=0\n#31=#31+1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Catch it in the simulator by looking at #100 before the program starts. If it is not the value you expect, you are carrying data from a previous run.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. Leaving G90 or G91 changed after the macro<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A macro that switches to G91 for a loop and then returns with M99 leaves the main program in incremental. The next X or Z move is a step, not a position, and that is a common way to run into a fixture or the workpiece. The same risk applies to other modal codes you change and do not restore, such as plane or feed mode.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(WRONG - RETURNS IN G91)\nG91\nWHILE[#31 LT #4]DO1\nG01 X#23\n#31=#31+1\nEND1\nM99\n\n(RIGHT - RESTORE THE CALLER'S G90 OR G91)\n#3=#4003\nG91\nWHILE[#31 LT #4]DO1\nG01 X#23\n#31=#31+1\nEND1\nG#3\nM99<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Catch it by running the caller and the macro together in the simulator, then watching the move after M99 and the modal G codes. Restore group 03 from #4003 rather than forcing G90, in case the caller was already in G91.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. Missing decimal points<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On many FANUC controls, a number without a decimal point is read as a count of the least input increment, not as millimetres or inches. X10 is then not the same as X10. That can turn a planned 10 mm move into a tiny creep, or, on another setting, a short value into a long one. Always write the decimal point in coordinates, feeds and macro arguments.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(WRONG)\nG00 X50 Y0 Z2\nG65 P8011 X50 Y0 Z-8\n\n(RIGHT)\nG00 X50. Y0. Z2.\nG65 P8011 X50. Y0. Z-8.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Catch it on the 2D and 3D toolpath graphs. If the path is far too short, or far too long, look for missing decimals first.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. Getting the sign wrong on Z depth<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Milling depth is usually a negative Z in G90. If the call passes Z8. and the macro does G01 Z#26, the tool goes to plus 8, not into the pocket. The other way is worse: a macro that flips the sign, or a clearance entered as a negative, can send the tool below the part.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(WRONG - POSITIVE DEPTH USED AS AN ABSOLUTE Z)\nG65 P8011 X0. Y0. Z8. I80. J50.\nG01 Z#26 F#9\n\n(RIGHT - REQUIRE A NEGATIVE DEPTH)\nIF[#26 EQ #0]GOTO900\nIF[#26 GE 0]GOTO900\nG01 Z#26 F#9<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Catch it by watching Absolute Z and the 3D toolpath in the simulator. If the tool climbs, or only cuts in the air, check the sign of Z and of the clearance R before you change anything else.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6. Off-by-one and infinite WHILE loops<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the counter never changes, WHILE never ends. If you use LT when you meant LE, the last pass is skipped and stock is left. If you add a step after the end test, the tool can walk past the edge. For the loop rules, see <a href=\"https:\/\/macromillcnc.com\/2026\/11\/10\/fanuc-macro-while-loop\/\">How a FANUC macro WHILE loop works<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(WRONG - COUNTER NEVER CHANGES, LOOP NEVER ENDS)\n#31=0\nWHILE[#31 LT 10]DO1\nG01 X#24\nEND1\n\n(RIGHT)\n#31=0\nWHILE[#31 LT 10]DO1\nG01 X#24\n#31=#31+1\nEND1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">When you step to an end position, clamp the last pass so you do not skip it or overshoot it, as in the <a href=\"https:\/\/macromillcnc.com\/2026\/11\/26\/write-test-and-run-a-fanuc-macro\/\">rectangular pocket example<\/a>. Catch loop errors in the simulator with single block: watch the counter, and compare the toolpath with the size you wanted. If the same block repeats and the counter does not change, reset there, not on the machine.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">7. Mapping G65 argument letters to the wrong variables<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Each letter fills a fixed local variable. X is #24, not #1. I is #4, D is #7, R is #18 and F is #9. P is the program number and L is the repeat count; they are not data arguments. If you read the wrong number, the macro can move to a vacant value, to argument A, or to a leftover local.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(WRONG - #1 IS A, #9 IS F, NOT I)\nG65 P8011 X50. Y25. Z-8. I80. D12. F200.\nG00 X#1 Y#2\n#31=#9\n\n(RIGHT)\nG65 P8011 X50. Y25. Z-8. I80. D12. F200.\nG00 X#24 Y#25\n#31=#4<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The usual letter map is A=#1, B=#2, C=#3, I=#4, J=#5, K=#6, D=#7, E=#8, F=#9, H=#11, M=#13, Q=#17, R=#18, S=#19, T=#20, U=#21, V=#22, W=#23, X=#24, Y=#25 and Z=#26. Catch a mapping error by opening the variable page in the simulator after the call and confirming those numbers hold the values you passed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">8. Cancelling a tool length offset and not restoring it<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If a macro cancels tool length with G49, or moves in Z after that cancel, the next motion can be in a different Z than the main program expects. The tool may already be near the part. Leave G43 and the same H active unless you have a clear reason to cancel. If you must cancel, get to a safe Z first, and let the caller apply G43 again before any cutting move.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(WRONG - CANCELS TOOL LENGTH BEFORE RETURNING)\nG00 Z50.\nG49\nM99\n\n(RIGHT - LEAVE G43 ACTIVE)\nG00 Z50.\nM99<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Catch it in the simulator by watching Machine Z and the tool length offset on the moves after the macro returns. If Z drops or jumps, the offset was cancelled or changed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">9. Accepting bad inputs without a #3000 alarm<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A GOTO to M99 hides a bad input. The macro just returns, and the main program continues as if the call worked. #3000 raises an alarm and stops the program, with a short message you can read. Check that required arguments were passed, then check that the values make sense: a milling depth should be negative, a tool diameter should be greater than zero, and a stepover should be smaller than the tool.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(WRONG - BAD INPUT RETURNS SILENTLY)\nIF[#26 EQ #0]GOTO900\n...\nN900\nM99\n\n(RIGHT)\nIF[#26 EQ #0]GOTO900\nIF[#26 GE 0]GOTO900\nIF[#7 LE 0]GOTO900\n...\nN900\n#3000=101(BAD MACRO INPUT)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Catch it by forcing a bad call in the simulator \u2014 omit Z, pass a positive depth, pass a zero tool diameter \u2014 and confirm you get the alarm instead of a path.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">10. Division by zero, FIX, ROUND and system variables<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A tool diameter or stepover of zero will fault a division. FIX truncates toward zero, ROUND goes to the nearest integer, and FUP rounds away from zero. The wrong one changes how many passes you take: FIX can leave leftover stock, and an extra unclamped pass can overshoot the edge. System variables are a separate trap. Addresses in the #2000 and #5200 ranges are tool offsets and work offsets on many FANUC controls. They are not scratch variables. A write there can shift an offset table and move the next tool to the wrong place.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(WRONG)\n#10=#4\/#7\n#31=FIX[#4\/#23]\n#2001=0\n\n(RIGHT - CHECK THE DIVISOR, CLAMP THE STEP, USE #100 AS SCRATCH)\nIF[#7 EQ #0]GOTO900\nIF[#7 LE 0]GOTO900\nIF[#23 EQ #0]GOTO900\n#10=#4\/#7\n#100=0\n#31=0\nWHILE[#31 LT #4]DO1\n#31=#31+#23\nIF[#31 LE #4]GOTO10\n#31=#4\nN10\nEND1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use local variables or #100 to #199 for scratch, and treat system variables as read-only unless writing to them is the purpose of the macro and you have tested that write. Catch a pass-count error on the 3D toolpath: leftover stock or a path past the edge means the loop maths, not the cutter, needs to change first.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to catch them before the machine<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Put the checks in the macro first. Test for vacant arguments with EQ #0, reject values that cannot be right, and stop on a #3000 alarm. Then run the caller and the macro in a MacroMill simulator. Use single block so you can see each assignment, each test and each move. Watch the variable page as the loops count, and check the 2D and 3D toolpath graphs against the size you had in mind.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Change one input at a time \u2014 omit an argument, flip the sign of Z, halve the tool diameter, leave a #100 value from a previous run \u2014 and confirm the macro either alarms or still produces a sensible path. That is the same habit described in <a href=\"https:\/\/macromillcnc.com\/2026\/11\/25\/practise-fanuc-g-code-on-your-pc-first\/\">Practise FANUC G-code on your PC first<\/a>, applied here to macro logic.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/macromillcnc.com\/#mmx-vmc-title\">FANUC VMC Advanced Control Suite<\/a> is the milling simulator with a FANUC 0i-MF Plus style control, and it is a solid place to practise this kind of check. For turning macros, use the <a href=\"https:\/\/macromillcnc.com\/fanuc-oi-tf-plus-lathe-simulator\/\">FANUC 0i-TF Plus lathe simulator<\/a>. The <a href=\"https:\/\/macromillcnc.com\/#mmx-aaxis-title\">A-axis VMC simulator<\/a> is a separate product for 4th-axis training, and <a href=\"https:\/\/macromillcnc.com\/macromill-vmc-pro\/\">VMC Pro<\/a> is a separate product that adds a probing suite. Do not treat one as a substitute for another.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Yes, you can run it on your machine<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, you can run a macro you tested in a MacroMill simulator on a real CNC machine. Save or export the programs from the simulator, load them onto your FANUC control the way you normally would, and prove them out with single block, reduced rapids and a dry run before you cut.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The simulator is for training and simulation. It does not replace a check of your own tooling, offsets, clearances, spindle speeds and feeds, and it does not replace the Custom Macro B manual for your control. Addresses and features can vary between FANUC series, so confirm the program on your own machine before you cut metal.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How else MacroMill can help<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you already have a CAM program with a lot of repeated motion, <a href=\"https:\/\/macromillcnc.com\/macrofusion\/\">MacroFusion<\/a> is CNC macro automation software that helps turn suitable repetitive CAM-generated G-code into compact, variable-driven macro logic. It does not replace CAM, it does not convert every program, and it is not a machine simulator. Review the result, then test it and prove it out in the same way as any other macro.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a structured path from these checks into fuller cycles and family-of-parts work, use <a href=\"https:\/\/macromillcnc.com\/cnc-automation-pro-2026\/\">CNC Automation Pro 2026<\/a>. It is MacroMill\u2019s training platform for CNC macro programming, with structured lessons, pre-written macros, video tutorials and a certification pathway. It starts with the fundamentals and builds toward reusable macro logic. MacroFusion is a separate product and is not included in CNC Automation Pro.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For more on what macros are for, see <a href=\"https:\/\/macromillcnc.com\/2026\/11\/08\/what-problems-do-cnc-macros-solve-fanuc-macro-b\/\">What problems do CNC macros solve?<\/a>, <a href=\"https:\/\/macromillcnc.com\/2026\/11\/10\/cnc-macros-productivity-write-once\/\">Unlock CNC macros productivity on the shop floor<\/a>, <a href=\"https:\/\/macromillcnc.com\/2026\/11\/08\/parametric-cnc-program-fanuc-macro-contour-variables\/\">From hard-coded G-code to a parametric program<\/a>, <a href=\"https:\/\/macromillcnc.com\/2026\/11\/08\/g-code-vs-macro-programming-cam-macros\/\">G-code is not a programming language<\/a>, <a href=\"https:\/\/macromillcnc.com\/2026\/11\/12\/cnc-macro-programming-rare-skill\/\">Why CNC macro programming is a rare skill<\/a>, and <a href=\"https:\/\/macromillcnc.com\/2026\/11\/26\/black-art-of-cnc-macro-programming\/\">The black art of CNC macro programming, and what it can do for your career<\/a>. For reference material, start with the <a href=\"https:\/\/macromillcnc.com\/free-cnc-macro-resources\/\">free CNC macro resources<\/a> page. When you want complete programs to study, open the <a href=\"https:\/\/macromillcnc.com\/cnc-macro-program-library\/\">CNC macro program library<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can find the FANUC VMC Advanced Control Suite on <a href=\"https:\/\/macromillcnc.com\/#mmx-vmc-title\">macromillcnc.com<\/a>. For tips and updates, join the MacroMill WhatsApp group: <a href=\"https:\/\/chat.whatsapp.com\/Htae97asBiD14QiwMXjGJA\" target=\"_blank\" rel=\"noopener\">chat.whatsapp.com\/Htae97asBiD14QiwMXjGJA<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>The software is for training and simulation only. Yes, programs and macros you write and test in a MacroMill simulator can be saved or exported and run on a real CNC machine. As with any new program, prove it out first with single block, reduced rapids and a dry run before you cut. The code in this post is for learning and simulation. Addresses, tool offsets, clearances, spindle speeds and feeds must be confirmed against your machine, your tooling and your control\u2019s Custom Macro B manual.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MacroMill<\/strong><\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Common FANUC macro mistakes that crash machines, and how to catch them first with input checks, single block, and a test in a MacroMill simulator.<\/p>\n","protected":false},"author":279632934,"featured_media":1597,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_seo_llms_txt_always_include":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1378],"tags":[],"class_list":["post-1841","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/phcvZP-tH","jetpack-related-posts":[{"id":1852,"url":"https:\/\/macromillcnc.com\/2026\/11\/28\/stop-learning-cnc-on-a-live-machine\/","url_meta":{"origin":1841,"position":0},"title":"Stop learning CNC on a live machine: get job-ready faster","author":"MacroMill","date":"November 28, 2026","format":false,"excerpt":"Learning CNC on a live machine is slow and expensive. See how programmers get job-ready on a MacroMill simulator first, then take the program to the machine.","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/macromillcnc.com\/category\/tutorials\/"},"img":{"alt_text":"MacroMill FANUC CNC simulator all-in-one bundle","src":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-simulator-all-in-one-bundle.png?fit=1080%2C1080&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-simulator-all-in-one-bundle.png?fit=1080%2C1080&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-simulator-all-in-one-bundle.png?fit=1080%2C1080&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-simulator-all-in-one-bundle.png?fit=1080%2C1080&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-simulator-all-in-one-bundle.png?fit=1080%2C1080&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1605,"url":"https:\/\/macromillcnc.com\/2026\/11\/08\/what-problems-do-cnc-macros-solve-fanuc-macro-b\/","url_meta":{"origin":1841,"position":1},"title":"What Problems Do CNC Macros Solve? 8 Shop-Floor Problems Fanuc Macro B Fixes","author":"MacroMill","date":"November 8, 2026","format":false,"excerpt":"Families of parts, manual edits, probing, tool wear, bolt circles, safety checks and special threads: 8 real shop-floor problems that CNC macro programming with Fanuc Macro B solves, with code examples.","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/macromillcnc.com\/category\/tutorials\/"},"img":{"alt_text":"CNC Automation Pro 2026 CNC macro programming course and software","src":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-cnc-automation-pro-2026.png?fit=1080%2C1080&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-cnc-automation-pro-2026.png?fit=1080%2C1080&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-cnc-automation-pro-2026.png?fit=1080%2C1080&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-cnc-automation-pro-2026.png?fit=1080%2C1080&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-cnc-automation-pro-2026.png?fit=1080%2C1080&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1611,"url":"https:\/\/macromillcnc.com\/2026\/11\/08\/fanuc-cnc-simulators-built-in-cycles\/","url_meta":{"origin":1841,"position":2},"title":"FANUC CNC Simulators With Built-In Cycles: What MacroMill&#8217;s Simulators Solve","author":"MacroMill","date":"November 8, 2026","format":false,"excerpt":"Learn CNC without machine time, prove macros before cutting and generate code for threads, grooves, pockets and patterns. See the built-in cycles in MacroMill's FANUC-style lathe and VMC simulators.","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/macromillcnc.com\/category\/tutorials\/"},"img":{"alt_text":"MacroMill FANUC CNC simulator all-in-one bundle","src":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-simulator-all-in-one-bundle.png?fit=1080%2C1080&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-simulator-all-in-one-bundle.png?fit=1080%2C1080&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-simulator-all-in-one-bundle.png?fit=1080%2C1080&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-simulator-all-in-one-bundle.png?fit=1080%2C1080&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-simulator-all-in-one-bundle.png?fit=1080%2C1080&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1827,"url":"https:\/\/macromillcnc.com\/2026\/11\/24\/how-to-choose-a-cnc-simulator\/","url_meta":{"origin":1841,"position":3},"title":"How to choose a CNC simulator for FANUC G-code and macro training","author":"MacroMill","date":"November 24, 2026","format":false,"excerpt":"A practical checklist for how to choose a CNC simulator for FANUC G-code and macro training, and a clear look at where MacroMill\u2019s simulators fit.","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/macromillcnc.com\/category\/tutorials\/"},"img":{"alt_text":"MacroMill VMC simulator for FANUC 0i-MF Plus style controls","src":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-0i-mf-plus-vmc-simulator.png?fit=1080%2C1080&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-0i-mf-plus-vmc-simulator.png?fit=1080%2C1080&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-0i-mf-plus-vmc-simulator.png?fit=1080%2C1080&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-0i-mf-plus-vmc-simulator.png?fit=1080%2C1080&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-0i-mf-plus-vmc-simulator.png?fit=1080%2C1080&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1675,"url":"https:\/\/macromillcnc.com\/2026\/11\/10\/fanuc-macro-while-loop\/","url_meta":{"origin":1841,"position":4},"title":"How a FANUC Macro WHILE Loop Works \u2014 Tip of the Iceberg","author":"MacroMill","date":"November 10, 2026","format":false,"excerpt":"Learn how a FANUC macro WHILE loop works: WHILE[...]DO1, the 0\/90\/180\/270 keyway walkthrough, and how MacroMill helps you master Macro B.","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/macromillcnc.com\/category\/tutorials\/"},"img":{"alt_text":"Step-through table in the MacroMill simulator showing a FANUC macro WHILE loop: counters 0 to 3 are true at 0, 90, 180 and 270 degrees, counter 4 is false and exits","src":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/fanuc-macro-while-loop-step-through.jpg?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/fanuc-macro-while-loop-step-through.jpg?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/fanuc-macro-while-loop-step-through.jpg?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/fanuc-macro-while-loop-step-through.jpg?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/fanuc-macro-while-loop-step-through.jpg?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1836,"url":"https:\/\/macromillcnc.com\/2026\/11\/26\/write-test-and-run-a-fanuc-macro\/","url_meta":{"origin":1841,"position":5},"title":"Write a FANUC macro, test it in MacroMill, then run it on your machine","author":"MacroMill","date":"November 26, 2026","format":false,"excerpt":"Write and test a FANUC Custom Macro B program in a MacroMill simulator, then save or export it and run it on a real CNC machine after a normal prove-out.","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/macromillcnc.com\/category\/tutorials\/"},"img":{"alt_text":"MacroMill VMC simulator for FANUC 0i-MF Plus style controls","src":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-0i-mf-plus-vmc-simulator.png?fit=1080%2C1080&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-0i-mf-plus-vmc-simulator.png?fit=1080%2C1080&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-0i-mf-plus-vmc-simulator.png?fit=1080%2C1080&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-0i-mf-plus-vmc-simulator.png?fit=1080%2C1080&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-0i-mf-plus-vmc-simulator.png?fit=1080%2C1080&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/macromill-fanuc-0i-mf-plus-vmc-simulator.png?fit=1080%2C1080&ssl=1","_links":{"self":[{"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/posts\/1841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/users\/279632934"}],"replies":[{"embeddable":true,"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/comments?post=1841"}],"version-history":[{"count":2,"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/posts\/1841\/revisions"}],"predecessor-version":[{"id":1845,"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/posts\/1841\/revisions\/1845"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/media\/1597"}],"wp:attachment":[{"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/media?parent=1841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/categories?post=1841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/tags?post=1841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}