Post by Stan-O
Is there a way to trip the parts counter on a looped program? I know
that M30 trips the counter, but what if i'm using a bar puller with a
M99. With the M99, the parts counter doesn't trip. I thought about
macros, but the M30 still has to be in there at some point.
Any help would be greatly appreciated.
Depending on which control you have and if you have custom macro
(parametric programming) you coul add 1 to the system variable for the
parts counter every cycle. On a Fanuc it's 3901. So put this in the
You can set the number of parts required in 3902. What I don't know is if
the parts counter reaching the parts required will stop your machine. That
depends on how the builder wrote the ladder. On some machines that I've
worked on the M30 command is also used to trip the parts count alarm. If
the machine does not stop you can create your own alarm.
IF[#3901 GE #3902] GOTO 9000
#3000=1(PARTS COUNTER COUNT UP)