Skip to main content

Program Clock Data Relay Flags

Program Clock Relay Flags (F450 ~ F480)

The program clock data relay flags, F450 ~ F480, display the year, month, date, day of the week, hour, minute, and second from when the program execution begins.
These flags identify when the PLC began execution of the current program.

The program clock data relay flags, F460 ~ F480, are WORD data registers that can be accessed with the MOV instruction.

For more information about program clock data, refer to the DATERD instruction.

  • The month, date, day of the week, hour, and minute flags, F450 ~ F480, should be converted to binary with respect to 2's complement.
    • After converting the number to binary, convert each portion of the binary number back to decimal.

Conversion Example 1

  • Example 1: The flag F460 has the value 3,077.
    • Converted to binary: 0000 1100 0000 0101
      • 1100 (upper WORD) converted to decimal: 12 (month)
      • 0101 (lower WORD) converted to decimal: 5 (day)

Conversion Example 2

  • Example 2: The flag F470 has the value 1,024.
    • Converted to binary: 0000 0100 0000 0000
      • 0100 (upper WORD) converted to decimal: 4 (day of the week: Thursday)

Conversion Example 3

  • Example 3: The flag F480 has the value 11,554.
    • Converted to binary: 0010 1101 0010 0010
      • 0010 1101 (upper WORD) converted to decimal: 45 (minute)
      • 0010 0010 (lower WORD) converted to decimal: 34 (second)
Program Clock Relay Flags
FlagItemWORDMOV Example
F450Year
F460MonthUpper
DateLower
F470Day of the weekUpper
HourLower
F480MinuteUpper
SecondLower