Well spotted. Actually I cut the file concerned from an STI file in a much larger project running at 200msec and the S_1SecSP = 5.
The 1 sec pulse was used elsewhere in the project, but not in this routine..maybe I should have cut it out.
Yes S:53 is only available in the later Series processors, but the RTC in the MicroLogix processors has a DOW value too.