Logging PS_ON (power off) using trigger
-
With the intention to diagnose spontaneous shutdowns after many hours during a print job, I am wondering if it is possible to monitor the PS_ON pin and trigger the output of a message to a logging file just before the power is cut off . If this can be setup as an event, then possibly some parameters might be recorded, that could help me debug the cause of the shutdown.
Testing would work then by using the M81 (Power Off) command.