Hi,

I’m would like to incorporate a timer into a program.

I’m activating an external loading system. If there is an issue and the load cycle is not completed (no MFIN) within 5 seconds I’d like to trigger an alarm. I guess my first problem is that I don't know what variable to look at to see the state of MFIN.

Any help will be appreciated, my current program is below.

%
O08000 (LOADING SUB PROGRAM)
M05 (STOP SPINDLE)
M11 (OPEN COLLET)
M51 (START LOAD SEQUENCE)
G04 P.1
M61 (RESET LOADER RELAY)
G04 P.1
M122 (WAIT FOR LOADER TO FINISH)
M37 (CHUTE DOWN)
M10 (CLAMP)
/ M01 (SINGLE CYCLE USE OPTIONAL STOP)
M99
%

Thanks,

Tom Barosso