Stopping after exactly 500 lines sounds a bit like a demo version of Mach3, not a fully licensed version. Is it worth checking that your licence key is installed correctly?

Tool change issues would only cause this problem if the tool change happened at line 500.