The date variables used in the NSET and NSETP 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 |
VariableName.DAY |
Integer Variable |
The day is input in BCD |
When the NSET and NSETP instructions receive power, the specified date will be stored in the date variable. to set the date, use NSET and NSETP instructions. The date variable in D1 can be extracted into hours, minutes, and seconds by specifying structure elements.
When the date 2005/10/20 specified in the JSET instruction is stored in D1, 05, 10, and 20 are stored in .YR, .MO, and .DAY, respectively.