I am writing a small subprogram to run on a VF-3. It would be so convenient if I could pass a "step" value so that I do not have multiple of the same subprogram that are 99% identical and only differ on a Y value on two lines.
Is the following correct?
main program:
...
Note how I assign a value to #1 and then I call the subprogram, hoping that I can use #1 inside it.
I am not going to be able to test this until tomorrow so I thought I'd ask here. Right now, I'd rather not convert this into a MACRO (G65) unless it's necessary. One little step at a time.
Is the following correct?
main program:
...
Code:
...
N50 G01 X.7399 Y-.4
N60 G01 Z.5 F20
N70 #1=0.1
N75 M98 P2561 L7
...
N70 #1=0.03
N75 M98 P2561 L7
...
O2461
...
N50 G03 X-.3524 Z-0.0209 R.3530
N60 G02 X-.6399 Z0.25 R0.2880
N70 G01 X-.7399
N80 G91 Y#1
...
Note how I assign a value to #1 and then I call the subprogram, hoping that I can use #1 inside it.
I am not going to be able to test this until tomorrow so I thought I'd ask here. Right now, I'd rather not convert this into a MACRO (G65) unless it's necessary. One little step at a time.