Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:software:devices:calendar [2019/08/29 17:01] – external edit 127.0.0.1en: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 
 +<device_name>  CALENDAR
 +</code>
 +
 +Where:
 +|<device_name>|device name assigned|
 +|CALENDAR|keyword that identifies the device calendar.|
 +
 +Declaration example:
 +<code QCL>
 +;--------------------------------- 
 +; Device declaration
 +;--------------------------------- 
 +INTDEVICE 
 +myCalen  CALENDAR
 +</code>
 +
 +
 +===== - Operation =====
 +
 +The device continuously updates the current date and time data.
 +
 +
 +===== - Parameters table =====
 +
 +^ Name   ^ Dimensions  ^ Default value  ^ Access type  ^ Unit of measure  ^ Valid Range        ^ Write conditions  ^ Description                                                                                                                                                                                                                                                                      ^
 +| sec    | Byte        | -              | RW           | s (seconds)      | from 0 to 59       | -                 | **Seconds**\\ The parameter indicates the seconds the current time.                                                                                                                                                                                                              |
 +| min    | Byte        | -              | RW           | minutes          | from 0 to 59       | -                 | **Minutes**\\ The parameter indicates the minutes of the current time.                                                                                                                                                                                                           |
 +| 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           | from 1 to 12       | -                 | **Mounth**\\ The parameter indicates the month of the current date using the following\\ **1** January\\ **2** February\\ **3** March\\ **4** April\\ **5** May\\ **6** June\\ **7** July\\ **8** August\\ **9** September\\ **10** October\\ **11** November\\ **12** December  |
 +| 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.
 +