{"id":1881,"date":"2026-12-05T12:12:33","date_gmt":"2026-12-05T10:12:33","guid":{"rendered":"https:\/\/macromillcnc.com\/2026\/12\/05\/fanuc-macro-variables-lesson\/"},"modified":"2026-12-05T12:23:25","modified_gmt":"2026-12-05T10:23:25","slug":"fanuc-macro-variables-lesson","status":"publish","type":"post","link":"https:\/\/macromillcnc.com\/2026\/12\/05\/fanuc-macro-variables-lesson\/","title":{"rendered":"FANUC macro variables explained: local, common, system and vacant, with a G65 example"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">FANUC macro variables are the foundation of every macro you will ever write, and most macro bugs come from using the wrong kind. By the end you will know the four kinds of variable on a FANUC 0i with Custom Macro B, how a G65 call drops its values into local variables, which variables survive a power-off, how to read the machine&#8217;s own data with system variables, and why vacant is not the same as zero.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can try every example in the <a href=\"https:\/\/macromillcnc.com\/#mmx-vmc-title\">MacroMill FANUC VMC simulator<\/a>, the FANUC VMC Advanced Control Suite, and watch the variables change as the program runs. Yes, programs and macros you write and test in a MacroMill simulator can be saved or exported and run on a real CNC machine, after a normal prove-out with single block, reduced rapids and a dry run.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The four kinds of FANUC macro variables in one minute<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A variable is a numbered memory slot written with a # sign. You can put a number in it, read it back, and use it in place of a number in a block. What differs is where the number lives and how long it stays.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Local variables, #1 to #33.<\/strong> Private to one macro call. They are where G65 puts your arguments, and they are emptied when the macro ends.<\/li>\n\n\n\n<li><strong>Common variables, #100 to #199.<\/strong> Shared by every program. On most controls they are cleared when the power goes off.<\/li>\n\n\n\n<li><strong>Retained common variables, #500 to #999.<\/strong> Shared by every program, and kept when the power goes off.<\/li>\n\n\n\n<li><strong>System variables, such as #3000, #4001, #5021 and #5221.<\/strong> They connect the macro to the control itself: alarms, modal codes, positions and offsets.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The exact ranges available depend on your control and its options, so check your Custom Macro B manual. The numbers above are the FANUC macro variables you will find on a typical FANUC 0i Macro B mill.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Local variables, #1 to #33, and how G65 fills them<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When you call a macro with G65, each argument letter goes into one fixed local variable of the called program. The letter does not matter to the macro. Only the variable number does. This is the table for the usual form, argument specification I.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Letter and variable<\/th><th>Letter and variable<\/th><th>Letter and variable<\/th><\/tr><\/thead><tbody><tr><td>A = #1<\/td><td>I = #4<\/td><td>T = #20<\/td><\/tr><tr><td>B = #2<\/td><td>J = #5<\/td><td>U = #21<\/td><\/tr><tr><td>C = #3<\/td><td>K = #6<\/td><td>V = #22<\/td><\/tr><tr><td>D = #7<\/td><td>M = #13<\/td><td>W = #23<\/td><\/tr><tr><td>E = #8<\/td><td>Q = #17<\/td><td>X = #24<\/td><\/tr><tr><td>F = #9<\/td><td>R = #18<\/td><td>Y = #25<\/td><\/tr><tr><td>H = #11<\/td><td>S = #19<\/td><td>Z = #26<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Look at what is missing. G, L, N, O and P cannot be used as arguments, because the control needs them for other jobs: P is the program number and L is the repeat count. Also notice that #10, #12, #14, #15, #16 and #27 to #33 have no letter. In a G65 call they are never filled for you, so they are the natural places for a macro&#8217;s own working numbers, such as a counter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A second form, argument specification II, lets you pass A, B and C once and then up to ten sets of I, J and K, which reaches all the way to #33. Most macros never need it. Check your manual before you rely on it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Two more rules matter. Every letter you leave out stays vacant in the called macro, and that is not the same as zero, which we come back to below. And each G65 call gets its own set of local variables, so a macro can call another macro without the two overwriting each other&#8217;s #1 to #33. This is the real difference between G65 and M98: G65 passes arguments and starts a new set of locals, while M98 passes nothing and keeps the caller&#8217;s locals.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common variables, #100 to #199 and #500 to #999<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Common variables are the shared FANUC macro variables that act as the programmer&#8217;s notice board. Any program can write a value into #100, and any other program can read it. The pattern below is how a main program hands data to a macro, and how a macro hands a result back.<\/p>\n\n\n<div class=\"wp-block-code\">\n\t<div class=\"cm-editor\">\n\t\t<div class=\"cm-scroller\">\n\t\t\t\n<pre>\n<code><div class=\"cm-line\">(PATTERN: MAIN PROGRAM SETS A VALUE)<\/div><div class=\"cm-line\">#100 = 45.<\/div><div class=\"cm-line\">(PATTERN: ANOTHER PROGRAM USES IT)<\/div><div class=\"cm-line\">#101 = #100 * 2<\/div><\/code><\/pre>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">The difference between the two ranges is memory. #100 to #199 are cleared when the power is switched off on most controls, so use them for scratch values and for values passed between programs during a run. #500 to #999 are retained, so they are the place for things the machine must remember: a part counter, a tool-life count, or a measured offset that the next shift needs.<\/p>\n\n\n<div class=\"wp-block-code\">\n\t<div class=\"cm-editor\">\n\t\t<div class=\"cm-scroller\">\n\t\t\t\n<pre>\n<code><div class=\"cm-line\">(PATTERN: PART COUNTER, KEPT AFTER POWER OFF)<\/div><div class=\"cm-line\">#500 = #500 + 1<\/div><div class=\"cm-line\">IF [#500 GE 100] THEN #3006 = 1 (CHANGE INSERT)<\/div><\/code><\/pre>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Setting #3006 stops the program and shows the message, so the operator can act and then continue. Because retained variables are kept, set the counter to 0 on purpose when you change the insert, or the count will carry on from the old value. A parameter on some controls can also clear common variables on reset, so know what your control does.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" data-attachment-id=\"1756\" data-permalink=\"https:\/\/macromillcnc.com\/bolt-hole-circle-macro-inputs\/\" data-orig-file=\"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/bolt-hole-circle-macro-inputs.jpg?fit=1920%2C1080&amp;ssl=1\" data-orig-size=\"1920,1080\" data-comments-opened=\"1\" data-image-title=\"Bolt hole circle macro inputs\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/bolt-hole-circle-macro-inputs.jpg?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/bolt-hole-circle-macro-inputs.jpg?resize=1920%2C1080&#038;ssl=1\" alt=\"MacroMill FANUC VMC simulator bolt hole circle macro setup tab with every input box shown as a numbered variable from #100 to #114\" class=\"wp-image-1756\" srcset=\"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/bolt-hole-circle-macro-inputs.jpg?w=1920&amp;ssl=1 1920w, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/bolt-hole-circle-macro-inputs.jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/bolt-hole-circle-macro-inputs.jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/bolt-hole-circle-macro-inputs.jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/bolt-hole-circle-macro-inputs.jpg?resize=1536%2C864&amp;ssl=1 1536w, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/bolt-hole-circle-macro-inputs.jpg?resize=1320%2C743&amp;ssl=1 1320w, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/bolt-hole-circle-macro-inputs.jpg?resize=600%2C338&amp;ssl=1 600w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption class=\"wp-element-caption\">The bolt hole circle setup tab in the MacroMill simulator. Every input box is a common variable: #102 is the pitch circle diameter, #103 the number of holes, #110 the hole depth.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The screenshot shows the idea at work. In the bolt hole circle macro the numbers you type are common variables, #100 to #114, and the program reads them wherever it needs them. Change #103 from 8 to 6 and the same program cuts six holes. That is the whole point of putting values in variables instead of in the blocks. The full macro is in our <a href=\"https:\/\/macromillcnc.com\/2026\/12\/03\/fanuc-macro-while-vs-if\/\">WHILE vs IF lesson<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">System variables: reading and writing the machine itself<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">System variables are FANUC macro variables with fixed numbers and fixed meanings. Some are read-only, like a gauge. Others you can write, like an offset. This table covers the ones used most on a FANUC 0i Macro B mill.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Variable<\/th><th>What it holds<\/th><th>Read or write<\/th><\/tr><\/thead><tbody><tr><td>#3000<\/td><td>Macro alarm. #3000 = 1 (MESSAGE) stops the program with an alarm and shows the message<\/td><td>Write<\/td><\/tr><tr><td>#3006<\/td><td>Stop with message. The program stops and shows the message<\/td><td>Write<\/td><\/tr><tr><td>#4001<\/td><td>Modal G-code group 01: 0 for G00, 1 for G01, 2 for G02, 3 for G03<\/td><td>Read<\/td><\/tr><tr><td>#4003<\/td><td>Modal G-code group 03: 90 for G90, 91 for G91<\/td><td>Read<\/td><\/tr><tr><td>#4014<\/td><td>Modal G-code group 14: 54 for G54, 55 for G55, and so on to 59<\/td><td>Read<\/td><\/tr><tr><td>#5021, #5022, #5023<\/td><td>Current X, Y, Z position in machine coordinates<\/td><td>Read<\/td><\/tr><tr><td>#5041, #5042, #5043<\/td><td>Current X, Y, Z position in work coordinates<\/td><td>Read<\/td><\/tr><tr><td>#5221, #5222, #5223<\/td><td>G54 work offset for X, Y, Z<\/td><td>Read and write<\/td><\/tr><tr><td>#5241, #5242, #5243<\/td><td>G55 work offset for X, Y, Z (G56 starts at #5261, G57 at #5281, G58 at #5301, G59 at #5321)<\/td><td>Read and write<\/td><\/tr><tr><td>#2001 and up<\/td><td>Tool offsets, the older numbering for the first 200 offsets. On a mill with offset memory C the newer numbers are #10001 for H wear, #11001 for H geometry, #12001 for D wear and #13001 for D geometry, plus the offset number<\/td><td>Read and write<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the position and offset families the last digit is the axis: 1 is X, 2 is Y, 3 is Z. So #5043 is the Z work position and #5223 is the G54 Z offset. A few ways to use them:<\/p>\n\n\n<div class=\"wp-block-code\">\n\t<div class=\"cm-editor\">\n\t\t<div class=\"cm-scroller\">\n\t\t\t\n<pre>\n<code><div class=\"cm-line\">(PATTERN: REFUSE TO RUN IN INCREMENTAL)<\/div><div class=\"cm-line\">IF [#4003 EQ 91] THEN #3000 = 10 (G91 ACTIVE)<\/div><div class=\"cm-line\">(PATTERN: SAVE THE MACHINE Z POSITION)<\/div><div class=\"cm-line\">#101 = #5023<\/div><div class=\"cm-line\">(PATTERN: READ THE G54 X OFFSET)<\/div><div class=\"cm-line\">#102 = #5221<\/div><div class=\"cm-line\">(PATTERN: H GEOMETRY OF OFFSET 1, MEMORY C)<\/div><div class=\"cm-line\">#103 = #11001<\/div><\/code><\/pre>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Treat the writable ones with respect. Writing a value into #5221 changes where G54 sits, and the next program will use it. Read before you write, and never write to an offset you have not checked. Offset memory type and variable numbers vary between controls, so confirm the tool offset numbers on your own machine before you use them. Position variables can also give an unexpected value if you read them while the control is still looking ahead through the program, so read them after the move has finished. The <a href=\"https:\/\/macromillcnc.com\/2026\/12\/03\/fanuc-probing-g31-lesson\/\">probing lesson<\/a> uses these same system variables to turn a measured position into a work offset.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" data-attachment-id=\"1878\" data-permalink=\"https:\/\/macromillcnc.com\/while-if-fanuc-macro-depth-loop\/\" data-orig-file=\"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/12\/while-if-fanuc-macro-depth-loop.jpg?fit=1920%2C1080&amp;ssl=1\" data-orig-size=\"1920,1080\" data-comments-opened=\"1\" data-image-title=\"WHILE and IF in a FANUC macro on the MacroMill simulator\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;The O9011 depth loop: WHILE repeats the quarter turns and IF clamps the last pass to the bottom.&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/12\/while-if-fanuc-macro-depth-loop.jpg?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/12\/while-if-fanuc-macro-depth-loop.jpg?resize=1920%2C1080&#038;ssl=1\" alt=\"MacroMill FANUC VMC simulator O9011 macro lines beside a variable table showing common variables and the last change to #153\" class=\"wp-image-1878\" srcset=\"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/12\/while-if-fanuc-macro-depth-loop.jpg?w=1920&amp;ssl=1 1920w, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/12\/while-if-fanuc-macro-depth-loop.jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/12\/while-if-fanuc-macro-depth-loop.jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/12\/while-if-fanuc-macro-depth-loop.jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/12\/while-if-fanuc-macro-depth-loop.jpg?resize=1536%2C864&amp;ssl=1 1536w, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/12\/while-if-fanuc-macro-depth-loop.jpg?resize=1320%2C743&amp;ssl=1 1320w, https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/12\/while-if-fanuc-macro-depth-loop.jpg?resize=600%2C338&amp;ssl=1 600w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption class=\"wp-element-caption\">The O9011 macro in the MacroMill simulator. The right-hand panel lists the variables and the block result, and the last change line shows #153 going from 450 to 540 as a common variable.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here the simulator shows the variables beside the program lines. The last-change line at the bottom of the panel says #153 went from 450 to 540, and that it is a common variable. Reading the variable table while you step through a macro is the fastest way to learn which variable did what.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Vacant, #0 and the trap of null versus zero<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A variable that has never been given a value is vacant, also called null. #0 is a special variable that is always vacant. You can read it and compare with it, but you cannot write to it. Vacant is not zero, and the control treats them differently in four places.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Where<\/th><th>If #1 is vacant<\/th><th>If #1 is 0<\/th><\/tr><\/thead><tbody><tr><td>In an address: G90 X100. Y#1<\/td><td>The Y word disappears and the block runs as G90 X100.<\/td><td>Runs as G90 X100. Y0 and Y moves to zero<\/td><\/tr><tr><td>Copying: #2 = #1<\/td><td>#2 becomes vacant<\/td><td>#2 becomes 0<\/td><\/tr><tr><td>Arithmetic: #2 = #1 * 5<\/td><td>#2 is 0, because vacant acts as zero here<\/td><td>#2 is 0<\/td><\/tr><tr><td>Test: #1 EQ #0<\/td><td>True<\/td><td>False<\/td><\/tr><tr><td>Test: #1 NE 0<\/td><td>True<\/td><td>False<\/td><\/tr><tr><td>Test: #1 GT 0<\/td><td>False<\/td><td>False<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The rule is that vacant behaves like zero in arithmetic and in GT, GE, LT and LE. It differs in a straight copy, in an address, and in EQ and NE. That gives you the right way to test whether an argument was passed:<\/p>\n\n\n<div class=\"wp-block-code\">\n\t<div class=\"cm-editor\">\n\t\t<div class=\"cm-scroller\">\n\t\t\t\n<pre>\n<code><div class=\"cm-line\">(PATTERN: CORRECT TEST FOR A MISSING ARGUMENT)<\/div><div class=\"cm-line\">IF [#26 EQ #0] THEN #3000 = 3 (Z MISSING)<\/div><div class=\"cm-line\">(PATTERN: WRONG, A VACANT Z IS NOT EQUAL TO 0)<\/div><div class=\"cm-line\">IF [#26 EQ 0] THEN #3000 = 3 (Z MISSING)<\/div><\/code><\/pre>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">The first line fires when Z was left out. The second does not, because a vacant Z is not equal to 0 in an EQ test, so the macro carries on without a depth. To clear a variable back to vacant, copy #0 into it, for example #101 = #0.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A worked example: a G65 call into a row of holes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This worked example shows FANUC macro variables in a small parametric program, O9100, that drills a row of equally spaced holes with a peck cycle. It is a teaching example: tool, tool length offset, spindle and a safe Z must already be in place before the call, and every value must be proved out before you cut. The call looks like this:<\/p>\n\n\n<div class=\"wp-block-code\">\n\t<div class=\"cm-editor\">\n\t\t<div class=\"cm-scroller\">\n\t\t\t\n<pre>\n<code><div class=\"cm-line\">G65 P9100 X20. Y30. Z-15. R2. Q5. F120. I25. K4.<\/div><\/code><\/pre>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Every dimension has a decimal point, and that matters. An argument written without one can be read in the control&#8217;s least input increment, so R2 could arrive as 0.002 instead of 2. The call lands in these local variables:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Argument<\/th><th>Local variable<\/th><th>Value<\/th><th>Meaning in O9100<\/th><\/tr><\/thead><tbody><tr><td>X20.<\/td><td>#24<\/td><td>20<\/td><td>X of the first hole<\/td><\/tr><tr><td>Y30.<\/td><td>#25<\/td><td>30<\/td><td>Y of the row<\/td><\/tr><tr><td>Z-15.<\/td><td>#26<\/td><td>-15<\/td><td>hole bottom<\/td><\/tr><tr><td>R2.<\/td><td>#18<\/td><td>2<\/td><td>R plane above the top<\/td><\/tr><tr><td>Q5.<\/td><td>#17<\/td><td>5<\/td><td>peck depth<\/td><\/tr><tr><td>F120.<\/td><td>#9<\/td><td>120<\/td><td>feed<\/td><\/tr><tr><td>I25.<\/td><td>#4<\/td><td>25<\/td><td>pitch between holes<\/td><\/tr><tr><td>K4.<\/td><td>#6<\/td><td>4<\/td><td>number of holes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Every other local variable, such as #1, #2 and #3, starts vacant. Now the macro:<\/p>\n\n\n<div class=\"wp-block-code\">\n\t<div class=\"cm-editor\">\n\t\t<div class=\"cm-scroller\">\n\t\t\t\n<pre>\n<code><div class=\"cm-line\">O9100 (ROW OF HOLES - PATTERN)<\/div><div class=\"cm-line\">IF [#24 EQ #0] THEN #3000 = 1 (X MISSING)<\/div><div class=\"cm-line\">IF [#25 EQ #0] THEN #3000 = 2 (Y MISSING)<\/div><div class=\"cm-line\">IF [#26 EQ #0] THEN #3000 = 3 (Z MISSING)<\/div><div class=\"cm-line\">IF [#9 EQ #0] THEN #3000 = 4 (F MISSING)<\/div><div class=\"cm-line\">IF [#17 EQ #0] THEN #3000 = 5 (Q MISSING)<\/div><div class=\"cm-line\">IF [#18 EQ #0] THEN #18 = 2.<\/div><div class=\"cm-line\">IF [#6 EQ #0] THEN #6 = 1.<\/div><div class=\"cm-line\">IF [[#6 GT 1] AND [#4 EQ #0]] THEN #3000 = 6 (I MISSING)<\/div><div class=\"cm-line\">#10 = 1.<\/div><div class=\"cm-line\">G90 G99 G83 X#24 Y#25 Z#26 R#18 Q#17 F#9<\/div><div class=\"cm-line\">WHILE [#10 LT #6] DO1<\/div><div class=\"cm-line\">#24 = #24 + #4<\/div><div class=\"cm-line\">X#24<\/div><div class=\"cm-line\">#10 = #10 + 1.<\/div><div class=\"cm-line\">END1<\/div><div class=\"cm-line\">G80<\/div><div class=\"cm-line\">M99<\/div><\/code><\/pre>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Read it from the top. The first five IF lines use EQ #0, the correct vacant test, to refuse to run if the X, Y, Z, F or Q argument is missing. The next two lines give R and K sensible defaults when they are left out, so a call without K drills one hole. The IF with AND checks that a pitch was given whenever there is more than one hole.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then #10, a local variable with no argument letter, becomes the hole counter. The G83 block drills hole 1 at X20, Y30. The WHILE loop adds the pitch to #24, moves X, which runs the modal G83 cycle at the new position, and counts. This is the same WHILE you met in the <a href=\"https:\/\/macromillcnc.com\/2026\/12\/03\/fanuc-macro-while-vs-if\/\">WHILE vs IF lesson<\/a>. Here is the trace:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Step<\/th><th>#24 (X)<\/th><th>#10 (counter)<\/th><th>Test: #10 LT #6<\/th><\/tr><\/thead><tbody><tr><td>Hole 1, before the loop<\/td><td>20<\/td><td>1<\/td><td>1 LT 4, true<\/td><\/tr><tr><td>Pass 1, hole 2<\/td><td>45<\/td><td>2<\/td><td>2 LT 4, true<\/td><\/tr><tr><td>Pass 2, hole 3<\/td><td>70<\/td><td>3<\/td><td>3 LT 4, true<\/td><\/tr><tr><td>Pass 3, hole 4<\/td><td>95<\/td><td>4<\/td><td>4 LT 4, false, loop ends<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Four holes at X20, X45, X70 and X95, all on Y30. The M99 at the end returns to the caller and the local variables are thrown away. The caller&#8217;s own #1 to #33 were never touched, because the G65 call gave O9100 its own set.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step through this program in the simulator and watch #24 and #10 change on each pass. If you change K4. to K6., you will see two more holes appear, with no other change to the program.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common variable mistakes and how to avoid them<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Assuming a missing argument is zero.<\/strong> It is vacant. Test it with EQ #0, not EQ 0.<\/li>\n\n\n\n<li><strong>Leaving the decimal point off a G65 argument.<\/strong> Write Z-15., not Z-15. A missing point can make the value a thousand times too small on a typical metric control.<\/li>\n\n\n\n<li><strong>Passing a letter that cannot be an argument.<\/strong> G, L, N, O and P are not available. L is the repeat count, so G65 P9100 L5 calls the macro five times, it does not pass a number.<\/li>\n\n\n\n<li><strong>Using the same common variable for two jobs.<\/strong> If your probing macro and your drilling macro both use #100 as scratch, they will overwrite each other. Use locals for scratch values and keep a written list of which common variables belong to which macro.<\/li>\n\n\n\n<li><strong>Expecting values to outlive their range.<\/strong> Locals disappear at M99. #100 to #199 are cleared at power-off on most controls. Only #500 and up are kept.<\/li>\n\n\n\n<li><strong>Trusting a retained variable you never set.<\/strong> A part counter in #500 carries over from whoever used it last. Reset it on purpose.<\/li>\n\n\n\n<li><strong>Writing to a read-only system variable.<\/strong> Variables like #4001 and #5041 report the machine state. Writing to them raises an alarm.<\/li>\n\n\n\n<li><strong>Mixing up G65 and M98.<\/strong> M98 does not pass arguments and does not start a new set of locals, so a subprogram can change the caller&#8217;s #1 to #33.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For more of these and how to catch them early, read <a href=\"https:\/\/macromillcnc.com\/2026\/11\/26\/fanuc-macro-mistakes\/\">common FANUC macro mistakes<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why FANUC macro variables make one program do the work of many<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Without FANUC macro variables, a row of four holes at 25 mm is four sets of blocks. A row of six holes at 30 mm is another program. With variables, it is one program and one G65 line. The geometry lives in the call, the logic lives in the macro, and the checks live in the IF lines. That is how a macro becomes something you can reuse on any job. For the bigger picture, see the <a href=\"https:\/\/macromillcnc.com\/2026\/11\/19\/cnc-macro-programming-guide\/\">CNC macro programming guide<\/a> and <a href=\"https:\/\/macromillcnc.com\/2026\/11\/26\/write-test-and-run-a-fanuc-macro\/\">write, test and run a FANUC macro<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Try it yourself<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Which local variables do the arguments A, F and Z land in?<\/strong><br>A goes into #1, F into #9 and Z into #26.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. You call G65 P9100 X20. Y30. Z-15. F120. Q5. with no K. What is #6 when the macro starts, and what does O9100 do about it?<\/strong><br>#6 is vacant. The line IF [#6 EQ #0] THEN #6 = 1. sets it to 1, so the macro drills one hole.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. Which survives a power-off, #150 or #550?<\/strong><br>#550. Common variables from #500 to #999 are retained, while #100 to #199 are cleared on most controls.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. #1 is vacant because A was left out. Is IF [#1 EQ 0] true or false? And IF [#1 EQ #0]?<\/strong><br>The first is false, because vacant is not equal to 0 in an EQ test. The second is true. Use EQ #0 to detect a missing argument.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5. In the worked example, what is the X position of the last hole if K is 4 and I is 25, starting at X20.?<\/strong><br>X95. The holes are at X20, X45, X70 and X95.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>6. Which system variables hold the current Z position in work coordinates and the G54 Z offset?<\/strong><br>#5043 holds the Z position in work coordinates. #5223 holds the G54 Z offset.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Practise macro variables in the MacroMill simulator<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Reading about variables helps, but you learn them fastest by watching them change. The <a href=\"https:\/\/macromillcnc.com\/#mmx-vmc-title\">MacroMill FANUC VMC simulator<\/a> lets you write a macro, call it with G65, run it one block at a time, and see each variable and each test as it happens. You can leave out an argument on purpose, watch the macro stop with its own alarm, and fix it, all before you go near a machine. Programs and macros you write and test there can be saved or exported and run on a real CNC machine, after a normal prove-out with single block, reduced rapids and a dry run.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Get the simulator here: <a href=\"https:\/\/payhip.com\/b\/WtAqz\" target=\"_blank\" rel=\"noopener\">MacroMill FANUC VMC Advanced Control Suite on Payhip<\/a>, or see it on <a href=\"https:\/\/macromillcnc.com\/#mmx-vmc-title\">the MacroMill homepage<\/a>. If you have a question about the lesson, write to <a href=\"mailto:info@macromillcnc.online\">info@macromillcnc.online<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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. Addresses, variable numbers, feeds, speeds, clearances and tool offsets in these examples must be confirmed against your machine, your tooling and your control&#8217;s Custom Macro B manual.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MacroMill<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A FANUC macro lesson on variables: local #1 to #33 and how G65 fills them, common #100 and #500 variables, system variables, and vacant versus zero, with a worked drilling-row macro.<\/p>\n","protected":false},"author":279632934,"featured_media":1756,"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-1881","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-ul","jetpack-related-posts":[{"id":1827,"url":"https:\/\/macromillcnc.com\/2026\/11\/24\/how-to-choose-a-cnc-simulator\/","url_meta":{"origin":1881,"position":0},"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":1841,"url":"https:\/\/macromillcnc.com\/2026\/11\/26\/fanuc-macro-mistakes\/","url_meta":{"origin":1881,"position":1},"title":"Common FANUC macro mistakes that crash machines, and how to catch them first","author":"MacroMill","date":"November 26, 2026","format":false,"excerpt":"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.","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":1836,"url":"https:\/\/macromillcnc.com\/2026\/11\/26\/write-test-and-run-a-fanuc-macro\/","url_meta":{"origin":1881,"position":2},"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":[]},{"id":1797,"url":"https:\/\/macromillcnc.com\/2026\/11\/19\/cnc-macro-programming-guide\/","url_meta":{"origin":1881,"position":3},"title":"CNC macro programming: a practical guide to FANUC Macro B","author":"MacroMill","date":"November 19, 2026","format":false,"excerpt":"A practical guide to CNC macro programming in FANUC Custom Macro B: variables, IF\/GOTO, WHILE loops, G65 calls, one worked example and common mistakes.","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":1852,"url":"https:\/\/macromillcnc.com\/2026\/11\/28\/stop-learning-cnc-on-a-live-machine\/","url_meta":{"origin":1881,"position":4},"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":1611,"url":"https:\/\/macromillcnc.com\/2026\/11\/08\/fanuc-cnc-simulators-built-in-cycles\/","url_meta":{"origin":1881,"position":5},"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":[]}],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/macromillcnc.com\/wp-content\/uploads\/2026\/11\/bolt-hole-circle-macro-inputs.jpg?fit=1920%2C1080&ssl=1","_links":{"self":[{"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/posts\/1881","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=1881"}],"version-history":[{"count":6,"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/posts\/1881\/revisions"}],"predecessor-version":[{"id":1887,"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/posts\/1881\/revisions\/1887"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/media\/1756"}],"wp:attachment":[{"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/media?parent=1881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/categories?post=1881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macromillcnc.com\/wp-json\/wp\/v2\/tags?post=1881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}