Function Block DAYLIGHT

The Function Block DAYLIGHT calculates, based on the coordinates and the current time, whether daylight is present.

Input OFFSET_SUNRISE

This input specifies an offset before sunrise in T#. With a negative value, after sunrise.

Input OFFSET_SUNSET

This input specifies an offset after sunset in T#. With a negative value, before sunset.

Input Latitude

This input defines the latitude of the position as a floating-point number. The value is passed as a decimal number.

If this input Latitude and Longitude are not defined or NULL, the coordinate is taken from the project.

Input Longitude

This input defines the longitude of the position as a floating-point number. The value is passed as a decimal number.

If this input Latitude and Longitude are not defined or NULL, the coordinate is taken from the project.

Output Q

The output Q is true if daylight is present after calculation.