Hello everyone,
I'm having some problems and am hoping someone could shed some light. I will start off with what I am trying to accomplish:
I am trying to write a program such that the machine will execute a courtesy line (returning the table to in front of the machine doors) ONLY when optional stop is activated. This would be for set-up purposes only so I can inspect/measure the part after each operation during the first setup WITHOUT manually jogging the table back to the doors after the M01 commands are read.
Below is the program I have come up with so far, I have excluded the actual machining for simplicity but it demonstrates my idea pritty well:
%
O0001 (MACRO TEST)
N1 (MACHINING OPERATION 1)
T1 M06
S1000 M03
<MACHINING CODE HERE>
G91 G28 Z0.
IF [ #3033 EQ 1.0 ] GOTO100
N10 M01
N2 (MACHINING OPERATION 2)
T2 M06
S500 M03
<MACHINING CODE HERE>
G91 G28 Z0.
M30
N100 (TABLE RETURN)
G91 G28 Y0.
G91 G28 X12.
GOTO10
%
But now the headache haha,
I have run this program on a HAAS simulator and it works flawlessly which is great! However, the shop floor is a different story. The Newer VF-1 I have access to does not have the Macro option enabled so that machine wont work. But I do have access to an older VF-1 and HS-1 Horizontal with the Macros enabled . But in the older machines the system variable #3033 (op stop) does not work. I get an "Illegal Macro Variable ALARM".
I am wondering if anyone knows what the variable for optional stop would be on these older machines? Or how I could find out? I'd really like to give this a try!
Or when push comes to shove if anyone could suggest a better way of having the table center itself ONLY when op stop is pressed it would be greatly appreciated.
Thanks,
Colton M.