F_BACnet_CheckMonth : USINT

F_BACnet_CheckMonth : USINT 1:

Application

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

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

VAR_IN_OUT

nIn      : BYTE;

nIn: Numerical month value to be corrected (1 to 12 → month 1 = January; 13 → odd months; 14 → even months, otherwise converted to 255 → undefined)