Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
en:software:qview:qview_6:qcl_library:vc10calendar [2017/01/31 17:52] – [Note] qem103 | en:software:qview:qview_6:qcl_library:vc10calendar [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VC10Calendar ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **C = **// | ||
+ | |||
+ | The VC10Calendar function __calculates the day of the week (iin numerical form see the Note) starting from the date expressed as day, month and year__ starting from 1/1/2000.\\ | ||
+ | The function sets a negative value if you passed a wrong topic. The value determines the type of error. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VC10Calendar (day, month, year, numday)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | SYSTEM | ||
+ | | IN | SYSTEM | ||
+ | | IN | SYSTEM | ||
+ | | OUT | SYSTEM | ||
+ | |||
+ | ==== Error ==== | ||
+ | |||
+ | If there was any data entry error would be reported on the **numday** variable with negative values. In particular: | ||
+ | -1 = error in entering the day\\ | ||
+ | -2 = error in entering the month\\ | ||
+ | -3 = error in entering the year\\ | ||
+ | -4 = error in entering the day February month | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | In the example, If the day of the week of June 19, 2002 is Wednesday, it activates ' | ||
+ | |||
+ | <code QCL> | ||
+ | day = 19 | ||
+ | month = 6 | ||
+ | year = 2002 | ||
+ | VC10Calendar (day, month, year, numday) | ||
+ | IF (numday EQ 3) | ||
+ | SETOUT ofUscita | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | * The function execute a WAIT a time every 180 milliseconds | ||