/
DATEWR
DATEWR
DATEWR, DATEWRP
DATEWR instruction writes time data (Year, Month, Day, Hour, Minute, Second and Day of week) to the RTC.
| |
S | Time data |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. | Error | Zero | Carry | |||
DATEWR DATEWRP | S | o | o | o | o | o | o | o | o | - | o | o | o | - | 2 | o | - | - |
When enabled, the DATEWR instruction writes time data to the RTC.
Year has 4 digits.
Day of week (S+6) shows Sunday to Saturday as below.
Day of week | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
Saved value | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
Example)
If X01 is ON, MOV instruction moves data to each device and then the DATEWRP instruction stores D0~D6 value to the RTC.
, multiple selections available,
Related content
DATERD
DATERD
More like this
DATE ADD
DATE ADD
More like this
DATE SUB
DATE SUB
More like this
SECOND HOUR
SECOND HOUR
More like this
Built-In Functions
Built-In Functions
More like this