![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Haas Mills Discuss Haas machinery here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| 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. |
|
#3
| |||
| |||
| 1. I am using a block delete on all the M08 coolant commands to avoid soakage while the door is open when proving the program. But when I actually let the part run for the first time I wouldn't want the coolant to be skipped. 2. I am trying to link this table courtesy motion directly to the op stop button being pressed or not. Just for ultimate set-up efficiency. 3. I'm learning all this in school right now and it would be much more satisfying to make it work than to find a way around it I'm paying them, they aren't paying me... Yet ![]() Thanks for the suggestion though. - C |
|
#7
| |||
| |||
| IF [ #3033 EQ 1.0 ] GOTO100 This syntax doesn't look right. try IF[#3033EQ1]GOTO100 Here is something else to think about, it is a macro used for a automatic door, maybe it will help. % O0001 (MACRO TEST) N1 (MACHINING OPERATION 1) T1 M06 S1000 M03 <MACHINING CODE HERE> G91 G28 Z0. M98P8998(DOOR OPEN) M01 N2 (MACHINING OPERATION 2) T2 M06 S500 M03 <MACHINING CODE HERE> G91 G28 Z0. M30 % % O8998(DOOR OPEN) (DOOR OPEN MACRO.NC) N1(CONFIRM STATUS) IF[#109EQ1]GOTO3 IF[#109EQ2]GOTO2 #109=#108(SET 1=OPEN 0=RUN) M99 N2(DOOR OPEN #109=1) M5 M85 #108=1(OPEN DOOR UNTIL #109=1) #109=#108(SET 1=OPEN 0=RUN) M99 N3(DOOR OPEN #109=0) M5 M85 #108=0(OPEN DOOR ONCE) #109=#108(SET 1=OPEN 0=RUN) M99 % Good luck. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Soliciting Haas Macro Advice | mcmachining | G-Code Programing | 4 | 07-28-2009 12:07 PM |
| Short macro problem | scrapper400 | G-Code Programing | 11 | 12-05-2008 07:56 AM |
| Drill Macro problem | toolmanwaz | CamSoft Products | 5 | 04-01-2008 10:47 AM |
| VF0E Macro Problem | stang5197 | Haas Mills | 1 | 06-14-2007 05:34 PM |
| Haas Vf-2,macro For Tool Life | Tulak | Haas Mills | 0 | 10-22-2004 09:06 AM |