Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:software:devices:calendar [2016/10/06 17:36] – [5. Tabella stati] qem103 | en:software:devices:calendar [2020/07/13 14:51] (current) – qem103 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== DEVICE CALENDAR ====== | ||
+ | |||
+ | |||
+ | ====== - Introductipon ====== | ||
+ | |||
+ | The CALENDAR device is used to get and set the current date and time information. | ||
+ | |||
+ | |||
+ | ===== - Device declaration ===== | ||
+ | |||
+ | The device does not use hardware resources. It is not necessary to define the sampling time because the operation is carried out in a time not significantly. In the INTDEVICE section of the configuration unit must be add the following definition: | ||
+ | |||
+ | <code QCL> | ||
+ | ; | ||
+ | ; Device declaration | ||
+ | ; | ||
+ | INTDEVICE | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | Where: | ||
+ | |< | ||
+ | |CALENDAR|keyword that identifies the device calendar.| | ||
+ | |||
+ | Declaration example: | ||
+ | <code QCL> | ||
+ | ; | ||
+ | ; Device declaration | ||
+ | ; | ||
+ | INTDEVICE | ||
+ | myCalen | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== - Operation ===== | ||
+ | |||
+ | The device continuously updates the current date and time data. | ||
+ | |||
+ | |||
+ | ===== - Parameters table ===== | ||
+ | |||
+ | ^ Name ^ Dimensions | ||
+ | | sec | Byte | - | RW | s (seconds) | ||
+ | | min | Byte | - | RW | minutes | ||
+ | | hour | Byte | - | RW | hours | from 0 to 23 | - | **Hour**\\ The parameter indicates the time current local time. | | ||
+ | | date | Byte | - | RW | days | from 1 to 31 | - | **Day**\\ The parameter indicates the day of the current date. | | ||
+ | | month | Byte | - | RW | mounth | ||
+ | | year | Word | - | RW | year | from 2000 to 2100 | - | **Year**\\ The parameter indicates the current year. | | ||
+ | |||
+ | |||
+ | ===== - States table ===== | ||
+ | |||
+ | There aren't the states. | ||
+ | |||
+ | |||
+ | ===== - Coomands table ===== | ||
+ | |||
+ | There aren't commands. | ||
+ | |||