Arguments & G65
Read the values a G65 call passes in, and know which letter lands in which variable.
G65 P9010 A15. B2.0 H6. calls a macro and hands it values. Inside, they arrive as numbered locals: A is #1, B is #2 — but H is #11, not #8. The mapping isn't alphabetical, which is exactly why a Haas bolt-circle macro reaches for #11 to find its hole count.
Your turn
Your macro was called with G65 P9010 A… B… H… — a start angle, a radius, and a hole count. Copy A into #101, B into #102, and H into #103, then set #104 to the angle between holes (360 / H).
The machine gives you
A15. B50. H6.:
#1 = 15#2 = 50#11 = 6A0. B30. H8.:
#1 = 0#2 = 30#11 = 8Your 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.