We're just getting our shop started again after about 4 years. We're running an older VMC with a Fanuc 21i controller. Since the onboard memory is too small, we have to run programs off the Flashcard. I'm using the M198 PXXXX command to call our program. The problem we're seeing is that mid-run, the program is getting corrupted. So it starts fine, starts running and then all of a sudden, at random times, it will alarm out and you look at the code on the screen and it's gibberish. It will have a X.00000000000000000000000000000000000 and no Y value or some random error like that. I pull the card out and go check the program in Notepad ++ and sure enough, the program is the same on the card. I go back and look at the original program saved on the network and it does NOT have the issue. So at some point, the program is getting corrupted. Additionally, sometimes it just changes values and it crashes or takes a chunk out of a wall that's it's not supposed to. Just totally random and it's different every time. I'll reload the original file on the card and run it again and it will crap out in some other random spot with some other data.

I've tried restarting the machine, formatting the 2 GB card (Fat32), blowing out the card and slot. Nothing has helped. I have a new card and card adapter coming Monday to try that. Any ideas?