i am new with raspberry pi. i have a small project. i need to count time if the supplied power to the machine is cut. that's mean when the machine is at 'OFF' state the counter will start counting and if the machine back on to the 'ON' state the counter stop the counting.
the problem is I need to define that time as AR1, AR2 or AR3.
Can we make input before the terminal give ouput?
So I get the off time of the machine and the definition why the machine is off? (AR1, AR2 or AR3)
btw, this is for counting the OEE of a machine.
Thanks in advance