Actually, what I've got is a standby generator placed a considerable distance from the utility entrance. The automatic transfer switch at the utility automatically senses whether the utility or auxiliary are powered and switches accordingly. However there where no control wires run from it to the generator.
The generator has a small battery charging circuit that starts the generator when the power goes out on it (seperate power line from the load side of the ATS). But once the transfer switch flips to aux the generator sees its own power coming back and shuts down, only to start again as the wire dies. So if I could detect, from the generator, when the ATS is actually routing the generated power back down to the generator or using utility power, and run a relay to keep the charging circuit disconnected when the ATS is on aux, it'd save having to run a control circuit that far. The ATS automatically goes back to utility when it comes back on.
So, when the ATS is on aux, the output side of the generator would have continuity to the power wire coming back down from the ATS. When the ATS flips to utility, we could have anything from 240V to 0V from generator output to the return power line, depending on the utility phase compared to the generator output (right?).
Thanks.