F_YearIsLeapYear

F_YearIsLeapYear 1:

The function determines whether a year is a leap year.

FUNCTION F_YearIsLeapYear: BOOL

F_YearIsLeapYear 2: Inputs

VAR_INPUT
    wYear : WORD;
END_VAR

Name

Type

Description

wYear

WORD

Year

Return parameter

Description

TRUE

Leap year

FALSE

No leap year

Requirements

Development environment

Target platform

PLC libraries to be integrated (category group)

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_Utilities (System)