Acu-Rite CNC 3500i Router User Manual


 
ACU-RITE 3500i 409
11.4 Advanced Programming
Setting and Passing Parameters
You can set parameters for a macro before the sub-program call
(M98 Pn). Refer to Example 1. Blocks 10 to 12 define variable values
for the sub-program called in Block 13.
It may be more convenient to use macro call G65 Pn or G66 Pn to
pass variables to the sub-program by letter address. This is how a
canned cycle operates. Refer to Example 2. Values are passed on for
parameters A, B and C.
Macro call G65 Pn contains a loop option (Ln). Where, n is the
number of repetitions of the sub-program called.
Macro 1 is called three times (Ln equals 3).
When parameters are passed to a macro body by letter address, the
contents of the parameters are stored in local variables.
Letter Addresses:
Example 1: N10 #151 = 2
N11 #151 = 3
N12 #151 = 3.4
N13 M98 P1
N14 -----
Example 2: N20 G65 P1 A2 B3 C3.4
N21 -----
N20 G65 P1 A2 B3 C3.4 L3
N21 -----
A = #1 B = #2 C = #3 D = #7 E= #8 F = #9
H = #11 I = #4 J = #5 K = #6 M = #13 Q = #17
R = #18 S = #19 T = #20 U = #21 V = #22 W = #23
X = #24 Y = #25 Z = #26