You are not logged in.
Pages: 1
Hey everyone. im having some difficulty with the navigation through my NC program. Here's what i have:
IF[#807LE9.] GOTO9
N9
M98H0276
what i need to happen is for the program, if variable 807 is less than 9, then go to N9 which calls a position sub for engraving a serial number. however, when it gets to that "IF" line, i get the error "Cannot locate sequence number 9 for GOTO." i had it working a while back, but then we had some computer issues, and i am re-setting up this job, and for the life of me i cant remember what exactly my settings were. i think it has something to do with the N on the specials list in the word address section, but im not sure... any ideas???
thanks in advance.
Mike
Hoppe Tool
Offline
ok, heres an update on my predicament... i kind of got it figured out, in the sense that i got the line from my previous post to work, the logic works and the program proceeds to the appropriate line. however, a few lines later, i have a similar setup that is not working.
heres what i have:
IF[#807LE9.] GOTO9
the program then goes to N9, which is good. it then calls up the appropriate subs to engrave the digits of a serial number, for example 0007, 0008, etc. those subs seem to be working fine. but when it comes to figuring out what the last digit should be, im getting the same error from before, refering to the line im trying to find now.
after engraving the approriate amount of zeroes, i have lines to call up subs to engrave numbers 1-9.
it looks like this:
IF[#807EQ0.] GOTO6000 (ENGRAVE 0)
IF[#807EQ1.] GOTO6001 (ENGRAVE 1)
IF[#807EQ2.] GOTO6002 (ENGRAVE 2)
and so on up to 9. below that, i have the lines that it should be going to:
N6000
M98P8150 (ENGRAVE 0)
N6001
M98P8151 (ENGRAVE 1)
N6002
M98P8152 (ENGRAVE 2)
again, up to 9. problem is, instead of going to the appropriate line, the program engraves the placeholder digits, and then alarms out at the logic lines, and proceeds through the program, engraving all 10 numbers on top of each other.
any idea why the GOTO is working for the N9 line, but not for the N6000's?
Mike
Hoppe Tool
Offline
One of the common problems is that VERICUT needs to scan the NC program to know where it needs to loop.
Project > Process Option > G-Codes > Settings...
Under the Settings tab, check the box for Scan NC Program Files.
When checked, VERICUT does a first scan pass and records all the jump points and where it needs to return after a subroutine. Similar to writing an itinerary for a trip.
Offline
hey serge. i actually already had the scan box checked, and im still getting the same result. is it possible that the logic is messing up the navigation by any chance? when i split up the logic and the goto onto seperate lines, the goto works, but not the logic. basically, it seems as though vericut is looking for the correct sub, but cant find it. any other ideas?
Mike
Hoppe Tool
Offline
Send your files to Tech Support, I am sure it is something in the configuration.
Offline
Pages: 1