how deep is this pool anyway? ...
Greetings Freddy ...
first of all, is this supposed to be:
(a) just a “simple” question? ... or ...
(b) does your instructor expect you to THINK and to possibly run some experiments in order to answer this properly? ...
if the answer is (b) and you really want (or need) to play “hardball”, then here are some more questions for you before we can fully answer the one that you asked:
(1) you said that we lose AC power to the controller ... do we ALSO lose power to the counter’s input? ... (example: to the switch or button in the field) ...
(2) is the “switch” in the field in the ON condition when the power goes off? ... or is the “switch” in the field in the OFF condition when the power goes off? ...
(3) is the “switch” in the field in the ON condition when the power comes back on? ... or is the “switch” in the field in the OFF condition when the power comes back on? ...
(4) is the “switch” in the field wired with AC line power? ... or is the “switch” in the field wired with DC power? ...
(5) if the “switch” in the field is wired with DC power, how “heavy duty” is the power supply? ... specifically, what is its “holdup” time? ... is this “holdup” time greater than - or less than - the PLC’s “power down” time when the AC line power fails? ...
that should be enough to (at least) get us started on the path to full enlightenment ... basic idea: if you follow it all the way through to the end, the seemingly “simple” question that you asked originally is NOT as simple as it seems ...
“survival” tip: your instructor probably just wanted a very simple answer to what he considers to be a very simple question ... just give him what he expects and get on with your life ... and in that case, my distinguished colleague Alaric has already given you the answer you require ...
tip for “beyond mere survival”: consider taking this question on as an “extra credit” project ... do the wiring (both AC and DC) and then run a full set of experiments to systematically cover all of the “switch” possibilities and then compare the results ... do a write-up - and even consider making a presentation to the class ...
caution: before you go the full route, make sure that your instructor won’t consider your “beyond simple” answer to be a challenge to his teaching ability ... some instructors have VERY sensitive egos ...
in closing ... here are a couple of quick questions for you ... how far do you really want to go? ... how much do you really want to learn? ...
good luck with your studies ...
and a final philosophical thought ... a wise man once said: “If the simplest things do not confuse you, then you obviously don’t know enough about them.”