CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > MetalWorking Machines > Haas Mills


Haas Mills Discuss Haas machinery here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-02-2010, 07:15 PM
 
Join Date: Jul 2009
Location: Canada
Posts: 42
colton_m is on a distinguished road
Question Macro problem with Haas VF-1 and HS-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.
Reply With Quote

  #2   Ban this user!
Old 03-02-2010, 10:56 PM
Donkey Hotey's Avatar  
Join Date: Nov 2007
Location: USA
Posts: 1,636
Donkey Hotey is on a distinguished road

Why not just do block delete with the machine coordinates you want?

Code:
/G53 X-10.0 Y0.0 Z0.0
/M00
(Flip part over, then push the green button, dummy)
__________________
Greg
Reply With Quote

  #3   Ban this user!
Old 03-02-2010, 11:04 PM
 
Join Date: Jul 2009
Location: Canada
Posts: 42
colton_m is on a distinguished road

Originally Posted by Donkey Hotey View Post
Why not just do block delete with the machine coordinates you want?

Code:
/G53 X-10.0 Y0.0 Z0.0
/M00
(Flip part over, then push the green button, dummy)
Three reasons:

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
Reply With Quote

  #4   Ban this user!
Old 03-03-2010, 11:52 AM
chucker's Avatar  
Join Date: Nov 2007
Location: USA
Posts: 133
chucker is on a distinguished road
M01 Macro

You could right a 9000 program and call it from a M code and in the 9000 program have your move to the doors them a M00 or M01 then it would return back to your main program
Reply With Quote

  #5   Ban this user!
Old 03-03-2010, 01:08 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,313
dcoupar is on a distinguished road

According to the manual there is no system variable for the optional stop switch on the older controls. The system variables stop at #3006.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-04-2010, 10:36 PM
 
Join Date: Feb 2010
Location: USA
Posts: 59
MKproto is on a distinguished road

Run a sub program with a macro call out via m97 or g65 and the sub program sends it home then you just need a #xx=1do 1, elsedo2
Reply With Quote

  #7   Ban this user!
Old 03-04-2010, 11:02 PM
 
Join Date: Sep 2005
Location: USA
Posts: 17
Dane Lindon is on a distinguished road

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.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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




All times are GMT -5. The time now is 03:59 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361