Arguments & G65

Read the values a G65 call passes in, and know which letter lands in which variable.

G65 P9010 A25. B10. D3 calls a macro and hands it values. Inside, they arrive as numbered locals: A is #1, B is #2, D is #7. The mapping isn't alphabetical, which is why the table in the wiki exists.

Read firstArgument VariablesReference guide for CNC macro argument variables covering Argument 1 and Argument 2 styles with letter-to-variable mapping and examples.

Your turn

Your macro was called with G65 P9010 A… B… D…. Copy A into #100, B into #101, and D into #102, then set #103 to A multiplied by D.

The machine gives you

A25. B10. D3:#1 = 25#2 = 10#7 = 3
A8. B4. D2:#1 = 8#2 = 4#7 = 2

Your program is run once for each set of conditions. It has to work for all of them.

Loading...

This is a learning simulation — always prove out a program on the actual control before you cut metal.