![]() | |
| 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
| |||
| |||
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. |
|
#3
| |||
| |||
| 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. |
|
#4
| |||
| |||
| 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. |
|
#5
| |||
| |||
| 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. |
| Sponsored Links |
|
#6
| |||
| |||
| 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 % |
|
#7
| |||
| |||
| 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. |
|
#8
| |||
| |||
| 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. . |
|
#9
| |||
| |||
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 |
|
#10
| |||
| |||
| 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. |
| Sponsored Links |
![]() |
| 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 |
| 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 |