Clock Power Failure Relay Flags
Clock Power Failure Relay Flags (F500 ~ F540)
The clock power failure relay flags, F500 ~ F540, display the count, year, month, date, day of the week, hour, minute, and second from when the power failure occurred.
These flags identify when the real-time clock experienced a power failure.
The clock power failure relay flags, F500 ~ F540, are WORD data registers that can be accessed with the MOV instruction.
For more information about clock power failure, refer to the DATERD instruction.
- The month, date, day of the week, hour, and minute flags, F520 ~ F540, should be converted to binary.
- After converting the number to binary, convert it back to decimal.
- Example: The flag F520 has the value 2,329.
- Converted to binary: 0000 1001 0001 1001
- Converted to decimal: 9/25
- Converted to binary: 0000 1001 0001 1001
The count flag, F500, records the number of power failures.
| Clock Power Failure Relay Flags | |||
|---|---|---|---|
| Flag | Item | WORD | MOV Example |
| F500 | Count | ||
| F510 | Year | ||
| F520 | Month | Upper | |
| Date | Lower | ||
| F530 | Day of the week | Upper | |
| Hour | Lower | ||
| F540 | Minute | Upper | |
| Second | Lower | ||