Trying to setup a stock puller program to run continuously until "x" part count is reached. I have the program setup to run the part and pull the stock perfectly, however cannot get it to automatically restart. any help appreciated
cheers,
Nick..
Trying to setup a stock puller program to run continuously until "x" part count is reached. I have the program setup to run the part and pull the stock perfectly, however cannot get it to automatically restart. any help appreciated
cheers,
Nick..
Main and sub
144/length+cutoff-rem repeat sub + or -1 ?
(PGM, NAME="COUNT")
N10000 G0 G70 G62 G98.1 X10/2 Z12 S50 M3; G98.1 is a Machine coordinate move
;
[RUN_1_MORE];START MACHINING CYCLE AGAIN
(IF [@COUNTER] >= 5 GOTO [END]); STOP IF COUNT IS EXCEEDED
;
;MACHINE PART
;MACHINE PART
;MACHINE PART
G4 F.5;DWELL .5 SECONDS
;MACHINE PART
;MACHINE PART
;MACHINE PART
;
[@COUNTER] = [@COUNTER]+1; INCREMENT PART COUNT BY ONE
(IF [@COUNTER] >= 5 GOTO [END]); TEST PART COUNT
(GOTO [RUN_1_MORE])