Hello Guest it is September 24, 2023, 06:52:57 AM

Author Topic: Log whether file was terminated by user or not  (Read 950 times)

0 Members and 1 Guest are viewing this topic.

Log whether file was terminated by user or not
« on: June 08, 2017, 12:41:07 PM »
I'm writing a series of macros that will 'log' the execution of files; start/end time, line number at termination, method of termination etc.

There are a number of ways in which a file could be terminated; the ones I need to loook out for are
a) when the user terminates the run with Estop, Stop, or Reset buttons (all are acceptable on my machine,) and
b) when a particular switch is tripped to an input on the BOB

When either of these things happen, I want to be able to note which method of termination was used, and then call the macro that records this.
I'm unsure whether/how to look out for these conditions; macropump code looking out for all possible termination conditions would be slow and cpu hungry; this could be done with brains and macropump, I suppose, but I don't know how yet.

Is there a way of basically checking the input and DRO's to find which was done, ONLY if and when the machine stops running?

« Last Edit: June 08, 2017, 12:43:16 PM by moorea21 »