F_BACnet_CheckDay : USINT

F_BACnet_CheckDay : USINT 1:

Application

Function for checking the validity of a numerical date value (BYTE) for the day of the month. The return value matches a valid value for the day of 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 day value to be corrected (1 to 31 → day of the month; 32 → last day of the month; otherwise converted to 255 → undefined)