That is an interesting approach, does the status(21) fn return the number of CPU scans or an actual time value in microseconds? I am using the plc to energize the contactor as well, would it be sufficient to use the de-energization of that output to trigger the cusfn, or is there a special reason you suggest using an input for this?