Page 1 of 2 12 LastLast
Results 1 to 12 of 16

Thread: 99999 max lines of code?

  1. #1
    Registered
    Join Date
    Apr 2010
    Location
    USA
    Posts
    241
    Downloads
    0
    Uploads
    0

    99999 max lines of code?

    I was running a program buffered into my VF2. When the program hit line 100,000 the machine gave me an unknown number error. I have seen this before with other machines not being able to recognize the additional numeral. When I called my cam software company about modifying the post to accept this, they said they have never run into this issue with Hass machines and that they should be able to handle lines of code well into the Nxxxxxx range. Is this true and is there a setting I can adjust to accept additional lines of code or do I need to have the post modified to automatically re-sequence from 1 to 99999 back to 1...
    www.machmachine.com


  2. #2
    Registered
    Join Date
    May 2007
    Location
    US
    Posts
    779
    Downloads
    0
    Uploads
    0
    Are you using N numbers?
    And have you tried turning them off?


  3. #3
    Registered
    Join Date
    Apr 2010
    Location
    USA
    Posts
    241
    Downloads
    0
    Uploads
    0
    I am using N lines of code. I will see how to turn them off in the Cam program
    www.machmachine.com


  4. #4
    Registered
    Join Date
    Apr 2010
    Location
    USA
    Posts
    241
    Downloads
    0
    Uploads
    0
    Will a Hass accept code without a Numerical number starting the line

    eg. N100, N101 N102
    www.machmachine.com


  • #5
    Registered
    Join Date
    Jul 2005
    Location
    POLAND
    Posts
    340
    Downloads
    0
    Uploads
    0
    yes, is it so hard to try ? 10 sec. in front of the machine and wait few hours for an answer ?


  • #6
    Registered
    Join Date
    Apr 2010
    Location
    USA
    Posts
    241
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by pit202 View Post
    yes, is it so hard to try ? 10 sec. in front of the machine and wait few hours for an answer ?
    Thanks for the value added comment. I guess asking a question here while simultaniously working on it on my side is unacceptable to you
    www.machmachine.com


  • #7
    Registered
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    11,960
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by dingo0722 View Post
    Will a Hass accept code without a Numerical number starting the line

    eg. N100, N101 N102
    There are three situations when Haas needs a line number;

    Calling a subroutine; M97 P1000 looks for a line N1000 so you have to number the first line of the subroutine.

    Jumping down the program using M99; M99 P100 looks for line N100 somewhere in the program.

    Roughing and finishing canned cycles on a lathe, G73, G72, G71, G70 all need a start and finish line that must be numbered. G71 P100 Q110 looks for the line N100 and reads to N110 for the roughing sequence. The intermediate lines do not need to be numbered and (I think) and there can be more or fewer lines than the difference in the line numbers.
    An open mind is a virtue...so long as all the common sense has not leaked out.


  • #8
    Registered
    Join Date
    Apr 2010
    Location
    USA
    Posts
    241
    Downloads
    0
    Uploads
    0
    what I did first was to remove the sequencing from a program I just ran. After that was confirmed to work I modified the post. I also did away with sub routines in my posting. hopefully I wont have any issues down the line.
    www.machmachine.com


  • #9
    Registered
    Join Date
    Apr 2005
    Location
    Paradise, Ca, USA
    Posts
    623
    Downloads
    0
    Uploads
    0
    To answer your original question, there is no limit to how many lines of code you can run. I just pulled up a fairly random program that I've already run, and it has 646,699 lines of code WITH N numbers! That's 19.2MB and ran flawlessly off a USB thumb drive. Ditching the N numbers brings it down to 14.3MB, cut that shouldn't have anything to do with your question.

    Also, look where Pit202 is from, then realize English is a second language for him before getting defensive.


  • #10
    Registered HelicopterJohn's Avatar
    Join Date
    Dec 2005
    Location
    Seffner, Florida USA
    Posts
    668
    Downloads
    0
    Uploads
    0

    USB Drive

    Hi Matt,

    Thanks for the info on the USB drive file size.

    Is there any restrictions or rules as far as running programs directly from the USB thumb drive? I think???? I heard something about sub programs and being able to restart the program if it is being run from a USB thumb drive.

    I have never done this and just want some clarification from experts.

    Thanks again for any additional information you or others could supply.

    My programs tend to be on the small side so I typically copy them from the USB thumb drive to the memory and then run them. This could save me a step in the process.
    2007 HAAS TM-1P OneCNC XR5 Mill Pro. Shopbot PRT running Mach3 2010 Screen Set, Super PID and PMDX Electronics.Check out my Gallery on: http://www.helicopterjohn.com/


  • #11
    Registered
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    11,960
    Downloads
    0
    Uploads
    0
    Your question about subroutines and Restart was answered here on CNCzone a few years back. Neither are possible when drip feeding either from an external computer via RS232 or from a USB thumb drive. The explanation give was that because the entire program is not held in the machine's memory it cannot scan down to find a subroutine because it is not there. Similarly it cannot scan through a program for a Restart because the program is not there.
    An open mind is a virtue...so long as all the common sense has not leaked out.


  • #12
    Registered
    Join Date
    Apr 2005
    Location
    Paradise, Ca, USA
    Posts
    623
    Downloads
    0
    Uploads
    0
    To be clear, local subs work just fine off a USB, but external subs won't work at all. And no, program restart doesn't work either when running of the USB, but restarting at a toolchange does. Gotta be careful with that one though because the control just uses any modal commands that were active when the machine last ran unless you have a comprehensive safety block right before or after the tool change. (Mine is before the M6 block, and I restart on the safety block, NOT the tool change block)

    Everything else works...Macros, probing, M30 and M99 counters, tool life, etc. when running off the USB.

    Also, you cannot edit a program unless it is on the hard drive, but the only size restriction for the program is the USB size. Mine is a 2GB stick, and I highly doubt I'll ever run a program that big.


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Repeat G-Code lines
      By rckdef in forum G-Code Programing
      Replies: 3
      Last Post: 07-22-2010, 04:00 AM
    2. Only getting 48 lines of code?
      By Crawler374 in forum Mach Software (ArtSoft software)
      Replies: 4
      Last Post: 09-24-2009, 10:54 PM
    3. Need Help!- Losing lines going from DXF to G-Code
      By BearKraft in forum General CAM Discussion
      Replies: 2
      Last Post: 03-30-2009, 09:23 PM
    4. how many lines of code left
      By plastibob in forum Haas Mills
      Replies: 2
      Last Post: 08-10-2008, 01:15 PM
    5. Deskcnc Skipping Lines Of Code
      By bradyfb in forum Carken Products (Deskam, DeskCNC etc)
      Replies: 4
      Last Post: 02-08-2007, 05:59 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.