Real-Time Clock Data Relay Flags
Real-Time Clock Relay Flags (F400 ~ F430)
The real-time clock data relay flags, F400 ~ F430, display the year, month, date, day of the week, hour, minute, and second of the real-time clock.
These flags identify the real-time clock information of the PLC.
The real-time clock data relay flags, F400 ~ F430, are WORD data registers that can be accessed with the MOV instruction.
For more information about real-time clock data, refer to the DATERD instruction.
- The month, date, day of the week, hour, and minute flags, F410 ~ F430, should be converted to 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)
- Converted to binary: 0000 1100 0000 0101
Conversion Example 2
- Example 2: The flag F470 has the value 1,025.
- Converted to binary: 0000 0100 0000 0001
- 0100 (upper WORD) converted to decimal: 4 (day of the week: Thursday)
- 0100 (lower WORD) converted to decimal: 1 (hour)
- Converted to binary: 0000 0100 0000 0001
Conversion Example 3
- Example 3: The flag F480 has the value 1,288.
- Converted to binary: 0000 0101 0000 1000
- 0101 (upper WORD) converted to decimal: 5 (minute)
- 1000 (lower WORD) converted to decimal: 8 (second)
- Converted to binary: 0000 0101 0000 1000
| Real-Time Clock Relay Flags | |||
|---|---|---|---|
| Flag | Item | WORD | MOV Example |
| F400 | Year | ||
| F410 | Month | Upper | |
| Date | Lower | ||
| F420 | Day of the week | Upper | |
| Hour | Lower | ||
| F430 | Minute | Upper | |
| Second | Lower | ||