FC6A SERIES MICROS MART L ADDER PROGRAMMING M ANUAL FC9Y-B172624-1124: C LOCK INSTRUCTIONSHOUR (Hour Meter)Valid DevicesFor valid device address ranges, see "Device Addresses" on page 2-1.Source device S1 can be designated by a data register or constant.Source device S1, when designated by a data register, and destination device D1 occupy 3 consecutive data registers starting with the designateddevice to store hour, minute, and second data.When source device S1 is designated by a constant, the preset value can be 0 through 65,535 in hours, then minutes and seconds are set to 0.Special internal relays cannot be designated as destination device D2.Destination device D3 requires two data registers reserved for system work area.Hour data can be 0 through 65,535. Minute and second data can be 0 through 59.When the measured input ON duration value in destination device D1 reaches the preset value designated by source device S1, the comparisonoutput designated by destination device D2 turns on. As long as the input remains on, the measured input ON duration value continues to increase.When the measured input ON duration value exceeds 65,535 hours 59 minutes 59 seconds, the value returns to 0 hours 0 minutes 0 seconds torepeat another measuring cycle, with the comparison output remaining on.When any of the hour, minute, or second data of source device S1 exceeds the valid range, a user program execution error will result, turning onspecial internal relay M8004 and the ERR LED on the FC6A Series MICROSmart, but the input ON duration is measured.When any of the hour, minute, or second data of source device S1 is changed to an invalid value after the comparison output has turned on, thecomparison output is turned off. Then a user program execution error will result, turning on special internal relay M8004 and the ERR LED on theFC6A Series MICROSmart, but the input ON duration measurement is continued. For user program execution errors, see "User Program ExecutionErrors" on page 3-10.S1 ↔ D1 → D2While input is on, the ON duration of the input is measured. The measuredtime value (hour, minute, and second) is stored to 3 consecutive dataregisters assigned by destination device D1 and compared with the presetvalue assigned by source device S1.When the D1 value reaches the S1 value, an output or internal relayassigned by destination device D2 is turned on.The data registers specified by D3 and D3+1 are used as the system workarea.S1*****D1*****D3*****HOUR D2*****Device Function I Q M R T C D P Constant RepeatS1 (Source 1) Preset value — — — — — — X — 0-65,535 —D1 (Destination 1) Measured input ON duration — — — — — — X — — —D2 (Destination 2) Comparison output — X — — — — — — —D3 (Destination 3) System work area — — — — — — X — — —