F_BA_CountLeapYears

F_BA_CountLeapYears 1:

The function F_BA_CountLeapYears of return type UDINT calculates the number of leap years from the entered start year nStartYear to the end of the period under consideration nYear (inclusive).

Syntax

FUNCTION F_BA_CountLeapYears : UDINT
VAR_INPUT
  nYear         : UDINT;
  nStartYear    : UDINT    := 0;
END_VAR

F_BA_CountLeapYears 2: Inputs

Name

Type

Description

nYear

UDINT

End of the period under consideration.

nStartYear

UDINT

Start of the period under consideration.

Requirements

Development environment

Required PLC library

TwinCAT 3.1 4024.35

Tc3_BA2_Common from V2.1.20.0