584,871 active members*
5,427 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > 0i-MB reading large file over serial stops early (NOT memory)
Results 1 to 10 of 10
  1. #1
    Join Date
    Dec 2018
    Posts
    25

    0i-MB reading large file over serial stops early (NOT memory)

    Hi,

    I'm 100% clear on memory, lots available. When I'm transferring a file (not rally *that* large, 21kb), the file doesn't transfer all the way. Ive tried many different times, baud rates, flow control etc its NOT that and I've been transferring files to the machine for months, no issues. JUST this one file, it gets truncated. I've tried shortening the file, and can confirm "more" of it (the shortened version) goes through.

    So is there some sort of file size limitation that I'm running into that I haven't seen before ? The total size of the file that does work is around 20377 bytes, and a version of the file that DOESNT work is same file with more lines, 20513 bytes on disk...

    Thoughts ? Its not the command either, as I just filled the bottom with comments, they still dont go through.

    Thanks

  2. #2
    Join Date
    Apr 2009
    Posts
    1379

    Re: 0i-MB reading large file over serial stops early (NOT memory)

    I have never heard of a file size limitation on a Fanuc control. Is there a message that come up when it happens?

  3. #3
    Join Date
    Aug 2008
    Posts
    151

    Re: 0i-MB reading large file over serial stops early (NOT memory)

    How about a garbage character somewhere in the file Bill? Lower case n? Keep shortening it 5 lines at a time until it goes?

  4. #4
    Join Date
    Apr 2009
    Posts
    1379

    Re: 0i-MB reading large file over serial stops early (NOT memory)

    Hi Warren.
    Could be a 'corrupted' file.

  5. #5

    Re: 0i-MB reading large file over serial stops early (NOT memory)

    Create a file of that size in the controller then punch it out and without changing anything read it back in.

  6. #6
    Join Date
    Dec 2018
    Posts
    25

    Re: 0i-MB reading large file over serial stops early (NOT memory)

    ok thanks for the tips, I've narrowed it down. It actually has nothing to do with the file size. It happens only on larger files - seemingly randomly (but it isn't random) - so every file I load I have to see if the last dozen (has been as high as last 40) lines made it through. For a specific file, it always get truncated in the same place. So, I think this has to do with the software that's sending the programs. I'm using the 'send' function that comes in the predator editor. I'll try a test with a known 'truncating' file with another transfer program, see if thats the issue or not.

  7. #7
    Join Date
    Apr 2009
    Posts
    108

    Re: 0i-MB reading large file over serial stops early (NOT memory)

    Parameter 3201 bit 6 (NPE) will terminate the program load if an M02, M99 or M30 is read.
    Bit 5 will also cause a termination if M99 is read. Might want to check these two.

  8. #8
    Join Date
    Mar 2003
    Posts
    2932

    Re: 0i-MB reading large file over serial stops early (NOT memory)

    Just curious... what version of Predator Editor are you using for this?

  9. #9
    Join Date
    Dec 2018
    Posts
    25

    Re: 0i-MB reading large file over serial stops early (NOT memory)

    Hi guys and thanks for all the ideas:

    every day I regularly have to load many programs (like many per hour) in and out (effin memory limits) as we dont do production its all one-offs and usually they aren't jobs stored on the card as its all new protos. So that being said:

    it happens *almost* every time. 9 times out of 10. I have tried to narrow the one time that it works, but here is as much detail as I can give:

    - it doesn't happen on 'small' programs. But I regularly load 'larger' programs (200k). It seems to never do it when am in the sub 20k range. But for sure over 50k and its 9 times out of 10. Most of my programs are around 100k.

    - the "amount" of data truncated is not consistent. However, it is always the end of the file, usually like 20-50 lines, just the last lines. If I load a 250k program, or a 50k program, the amount of lines truncated is always at the end and doesn't seem to vary based on file size.

    - So i now have a routine of "READ" in program, switch to program, key in M30 and hit down button. If it errors out, I know the file got truncated. Then I have to look on my computer for the last line number in the program, and I start searching for the total # of lines minus 100, then minus another hundred, etc. until I get a search that doesn't error out (damnit whats the quick key to get to ~BOTTOM LoL), then I go back to my computer, delete every line up to the truncated line, hit "send" again, then READ part 2 in, then have to go to part 1 (truncated), and to a EX-EDIT MERGE and then carefully make sure I didn't miss anything. As you can see, error prone and a mother effin pain in the rear.

    - It seems to happen LESS if I remove all line numbers (I have had to do this to push some memory-limited 3d contour programs in - so found this out by luck). With all line numbers removed, it happens less. It is also crazy effin annoying if it DOES happen with line numbers removed, becuase then I have to find where to patch them together and this isn't easy sometimes in a 4 axis contour LoL

    - it also seems to happen LESS if I truncate all white space

    - it ISNT M02 / M30 / M99 . But.. of course, its always the end of the file that is truncated, and ours all terminate with M30, so perhaps that is related, but not within the program. In any case, that param isn't set anyways.

    - I have not see it happen at all with DNCFree or any other xmit program however I use Predator all the time and I am used to it and so I am stumped.

    - I tried going to hardware only, hardware / software, wait for Xon, DTR / RTS enabled / disabled. Seems to work best with software, wait for Xon, no DTR/RTS. But still, no matter what that was set to, it still truncates.

    - The Predator version I am using is the one that comes with CAMWorks 2019

    - One last piece of data is I am sending via a ethernet / serial Nport device. However, I didn't mention this and I didn't think it was relevant because I haven't seen this issue with other software... i.e. it works from DNCFree over the Nport...

    So, ideas guys ? I was able today to send a 240k 4 axis contour program no line numbers no whitespace nothing truncated (thank god). But that is really rare. Very normal to have to add 20-30 lines at a minimum... So something to do with the last packet and whitespace or line numbers or this might all just be coincidental... But I have never had a send error never had data lost midstream, only at the end of transmission. And final note: NOTHING EVER GETS DROPPED GOING THE OTHER WAY (to PC)

  10. #10
    Join Date
    Dec 2009
    Posts
    947

    Re: 0i-MB reading large file over serial stops early (NOT memory)

    you can try to use the software CimcoEdit,the most stable for DNC transfer.

Similar Threads

  1. Mach 3 quit reading machine end stops.
    By bamoore01 in forum Avid CNC
    Replies: 5
    Last Post: 01-22-2019, 10:37 PM
  2. Fadal DNC stops early....
    By mnmattie in forum Fadal
    Replies: 0
    Last Post: 07-06-2015, 08:14 PM
  3. Reading memory stick through ethernet port?
    By Buda15 in forum CNC Machine Related Electronics
    Replies: 0
    Last Post: 11-19-2012, 11:35 PM
  4. laser stops when doing large bitmap.
    By Robottawa in forum Laser Engraving / Cutting Machine General Topics
    Replies: 2
    Last Post: 09-30-2009, 01:08 PM
  5. EMC2 not reading large Gcode file???? HELP
    By autorouter34 in forum LinuxCNC (formerly EMC2)
    Replies: 9
    Last Post: 09-12-2009, 06:42 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •