F_BACnet_CheckWeekOfMonth : USINT

F_BACnet_CheckWeekOfMonth : USINT 1:

Application

Function for checking the validity of a numerical date value (BYTE) for the week of the month. The return value matches a valid value for the week of the month, or undefined as a numerical code (*). See BACnet specification DIN EN ISO 16484-5 for data type BACnetWeekNDay.

Attention: The input value is also corrected (nIn).

VAR_IN_OUT

nIn      : BYTE;

nIn:  Numerical week of the month value to be corrected; possible values:

1 → days 1 to 7 of the month

2 → days 8 to 14 of the month

3 → days 15 to 21 of the month

4 → days 22 to 28 of the month

5 → days 29 to 31 of the month

6 → the last 7 days of the month

otherwise converted to 255 → undefined