I think it is a Fanuc OT version C, but I would not stake my life on it. The code to count is M12, which only gets used with M99 end of sub program when running a bar puller job. The machine is a Takisawa TC-1. On day it would no longer count when it ran past M12, even though it still counts...