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 10-16-2007, 08:14 AM
 
Join Date: Jul 2007
Location: USA
Posts: 13
dtmtim is on a distinguished road
Running subprograms from hdd

We have been running subprograms via our ethernet connection (netshare). Due to our glitchy network issues we are going to have to move our main programs and subprograms to the HAAS hard drive. For some reason, even though the main and sub programs reside on the hdd the cnc control can't find the subprogram when called with M98. If the G55 program is run from netshare everything works fine. If both files are put on the hdd the control can't find the subprogram. Any ideas??

main program: G55.NC

% ( )
O0001
G55
M98 P00002
G28 G91 Z0
G28 G91 Y0
G90
M30
%

sub program: O00002.NC

%
O1234
G17G40G80G90
G20
(OPERATION 5)
(ENDMILL)
M09
T8 M06
M08
S20000
M03
G43 H8 G0 Z1.2000 M08
X-0.3728 Y0.3542
Z0.2988
...
G0 Z1.2000
M09
M05
G91G28Z0
G91 G28 Y0
M99
%

Thanks!

t.
Reply With Quote

  #2   Ban this user!
Old 10-16-2007, 03:10 PM
serviceman's Avatar  
Join Date: Apr 2007
Location: usa
Posts: 178
serviceman is on a distinguished road

your calling p2 but your program says o1234 the files need to be in the same directory and need to be named properly ie o#####.nc
Reply With Quote

  #3   Ban this user!
Old 10-16-2007, 03:16 PM
 
Join Date: Jul 2007
Location: USA
Posts: 13
dtmtim is on a distinguished road

Thanks serviceman. I haven't tried changing that statement at the beginning of the sub-program. It has always worked before across the network as long as the name of the file was correct the statement at the beginning of the program didn't matter. I'm not sure why it would be different running it off the hard drive but I'll give it a try. Thanks for the post.

t.
Reply With Quote

  #4   Ban this user!
Old 10-16-2007, 05:12 PM
 
Join Date: Sep 2007
Location: USA
Posts: 116
SeymourDumore is on a distinguished road

I'd say because the control is looking for 00002.
On your PC using the network it resides with the O00002.NC filename, so it likes it. On the control however the first line after the % defines the filename, which in this case is O1234. If you do a directory listing, it will show:
0001 G55
1234 G17G40G80G90

Now a question, could you utilize this as a local sub with M97 P2 instead?
Much cleaner by both program contained in the same place. Also, editing is easier without the need to switch back and forth.
Reply With Quote

  #5   Ban this user!
Old 10-16-2007, 05:47 PM
 
Join Date: Jul 2007
Location: USA
Posts: 13
dtmtim is on a distinguished road

Thanks SeymourDumore.

I had my operator change "O" line of the file to match and it still didn't work. Bear in mind both the main and sub programs reside on the CNC Hard Drive not in cnc memory. I'll try it again myself in the morning. We have two double sided vises in the CNC with 4 different parts set up. Each part is set up in the CNC as G54, G55, G56, and G57. We have been manually writing our main programs to set the correct work offset then call the program for that particular part. Our ethernet connection has not been reliable lately though and we are forced to find another method. I think an M97 call in this case would be more difficult. Our average CNC program is around 10 to 15 MB. I could write a simple VB program that would combine several CNC programs into one with the appropriate work offsets but the M98 should work. It just blows my mind that it works if the files reside on the PC but doesn't when the files are copied onto the CNC hard drive.

Thanks again!

t.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-16-2007, 06:25 PM
 
Join Date: Sep 2007
Location: USA
Posts: 116
SeymourDumore is on a distinguished road

Not that difficult.
If both main and sub program fits on the drive separately, then the combination of both should as well.


%
O0001
G55
M97 P00002
G56
M97 P00002
G57
M97 P00002
G28 G91 Z0
G28 G91 Y0
G90
M30
N000002 (Sub program)
G17G40G80G90
G20
(OPERATION 5)
(ENDMILL)
M09
T8 M06
M08
S20000
M03
G43 H8 G0 Z1.2000 M08
X-0.3728 Y0.3542
Z0.2988
...
G0 Z1.2000
M09
M05
G91G28Z0
G91 G28 Y0
M99
%
Reply With Quote

  #7   Ban this user!
Old 10-16-2007, 07:00 PM
 
Join Date: Jul 2007
Location: USA
Posts: 13
dtmtim is on a distinguished road

Sorry - misunderstanding ... it would be more like

%
O0001
G55
M97 P00002
G56
M97 P00003
G57
M97 P00004
G28 G91 Z0
G28 G91 Y0
G90
M30
N000002 (Sub Program machines part 1 for customer A)

10 Mb of code

N000003 (Sub Program machines part 2 for customer B)

12 MB of code

N000004 (Sub Program machines part 3 for customer C)

15 MB of code

etc.

3 Completely different cnc programs for 3 completely different parts probably not even written on the same CAM system.

Of course this method might still work although it becomes more difficult to manage especially of you want to change part 2 to part 4.

Thanks again.

t.
Reply With Quote

  #8   Ban this user!
Old 10-17-2007, 07:11 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

071017-0647 EST USA

dtmtim:

I do not have a hard drive system so I can not experiment. From what you have described HAAS has been inconsistent in working from the network compared to from the hard disk.

Are your so called subprograms larger than the available memory in the machine? If so it means that you are drip feeding. Is that the case?

In a non-networked machine you can not call an external subroutine when in DNC mode (drip feed) to the best of my knowledge, and certainly not an internal subroutine.

If you are operating in DNC mode, then we have two different products that could allow you to run RS232 at 115.2 kbaud from a substantial distance. With HAAS's large buffer for DNC I have not had customers that have had a starvation problem in contouring when at 115.2 kbaud.

In DNC mode one can create a program at the PC that will compose the components that you describe to provide one continuous flow of data from different source files to the HAAS. Note: HAAS starts and ends any program with a % code.

.
Reply With Quote

  #9   Ban this user!
Old 10-17-2007, 07:26 AM
 
Join Date: Sep 2005
Location: USA
Posts: 28
Yossi is on a distinguished road
try this

Try this:

main program: O0055

% ( )
O0055
G55
M98 P1234
G28 G91 Z0
G28 G91 Y0
G90
M30
%

sub program: O1234 ( no extention )

%
O1234
G17G40G80G90
G20
(OPERATION 5)
(ENDMILL)
M09
T8 M06
M08
S20000
M03
G43 H8 G0 Z1.2000 M08
X-0.3728 Y0.3542
Z0.2988
...
G0 Z1.2000
M09
M05
G91G28Z0
G91 G28 Y0
M99
%




go to hard drive.
select program O0055
mem
cycle start
Reply With Quote

  #10   Ban this user!
Old 10-17-2007, 07:37 AM
 
Join Date: Jul 2007
Location: USA
Posts: 13
dtmtim is on a distinguished road

gar,

Thanks for the reply. We were basically running DNC across the ethernet since we have the ethernet option. Since we also have the hard drive option (I think it's a 10 gig hdd). I would really like to avoid DNC and run from the hard drive. I can run individual programs from the hdd without any issues it just won't run sub-programs.

Thanks again.

t.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-17-2007, 07:42 AM
 
Join Date: Jul 2007
Location: USA
Posts: 13
dtmtim is on a distinguished road

Yossi,

Thanks, I'll give it a try as soon as the machine stops.

t.
Reply With Quote

  #12   Ban this user!
Old 10-17-2007, 08:51 AM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

Is it possible to access the hard drive (or just the data directory on it) using a network path?
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
Help with adding subprograms to post processor creep_pea Post Processors for MC 9 11-13-2006 10:56 AM
Fanuc output program + subprograms Mr_T Fanuc 9 11-29-2005 12:21 AM
Up and running bob a job Hobbycnc (Products) 0 05-13-2005 04:26 PM
M97 Internal Subprograms????? CAMCRASH G-Code Programing 6 03-24-2005 12:10 PM
Up and running! maxxgraphix DIY-CNC Router Table Machines 5 03-16-2005 07:10 AM




All times are GMT -5. The time now is 02:33 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