F_YearIsLeapYear

F_YearIsLeapYear 1:

F_YearIsLeapYear determines whether the given year is a leap year.

FUNCTION F_YearIsLeapYear: BOOL

VAR_INPUT

VAR_INPUT
    wYear : WORD;
END_VAR

wYear: Year.

Return value

Description

TRUE

wYear is leap year

FALSE

Not leap year

 

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v2.9.0 Build > 1030

TwinCAT v2.10.0 Build > 1231

PC or CX (x86)

TcUtilities.Lib

( Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically )

TwinCAT v2.10.0 Build >= 1301

CX (ARM)