The date variables used in the NRD and NRDP instructions are structure variables. The following table lists the internal structures.
Date Variable
Date Variable |
Variables Settings |
Description |
---|---|---|
VariableName.YR |
Integer Variable |
The year is input in BCD |
VariableName.MO |
Integer Variable |
The month is input in BCD |
Variable name DAY |
Integer Variable |
The day is input in BCD |
When NRD and NRDP instructions receive power, the current time is stored in D1. You can extract the year/month/date of the date variable by specifying a particular date element. When the current date 2005/10/20 is stored in D1, 05, 10, and 20 are stored in .YR, .MO, and .DAY, respectively.