if your machine accepts macros you could add in something like this to count parts:
O1000
#100= 1 (this sets the #100 value to 1, "your first part")
N1
TI
M6 (Or T0101 LATHE)
;
;
MAIN PROGRAM
;
;
(parts catcher out "M" code here)
(part off tool code here)
(parts catcher in "M" code here)
#100=[#100+1] (increments your #100 value to 2 "your second part")
M99 (normally here but instead of M99 use a GOTO 1-program will jump back up to the N1)
This will keep incrementing the #100 macro value by 1 at each parts catcher in/out giving you a part count.
If you want to run say only 30 parts: between the #100=[#100+1] and the GOTO 1, put in a IF [#100 LE 30] GOTO 1 followed by an M30. After running 30 parts the program will end at the M30. Pressing cycle start will reset your counter (#100 value) to 1 and continue to 30. Hope that helps


LinkBack URL
About LinkBacks




