F_BA_DaysInMonth

F_BA_DaysInMonth 1:

The function F_BA_DaysInMonth of return type UDINT determines from a given date stBACnetDate the number of days of the given month, provided that the month and the year are not evaluated as unspecified, i.e. with 16#FF. In case of missing specification the return value of the function is 16#FFFFFF.

Syntax

FUNCTION F_BA_DaysInMonth : UDINT
VAR_INPUT
  stBACnetDate    : ST_BA_Date;
END_VAR

F_BA_DaysInMonth 2: Inputs

Name

Type

Description

stBACnetDate

ST_BA_Date

Date from whose month the number of days is to be determined.

Requirements

Development environment

Required PLC library

TwinCAT 3.1 4024.35

Tc3_BA2_Common from V2.1.20.0