Delta AS Series Programming Manual page 510

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

SUNRS
EN
Longi
Lati
TimeZ
DST
Year
Month
Date
Explanation
1.
The instruction works with the AS series PLC firmware V1.04.50 or later. The sunrise and sunset times may not be
as accurate as the local weather report publishes because the values that you have entered may be incorrect or the
altitude of where the device is installed may interfere with the accuracy. When the result is not as accurate, you can
adjust the values manually. After self-evaluation, the error range of this instruction is less than 5 minutes.
2.
Enter values for the local longitude and latitude in numbers. For example, the longitude and latitude of Taoyuan,
Taiwan is 121.30098 and 24.99363. Latitudes north of the Equator are denoted by a positive sign. Latitudes south
of the Equator are given negative values.
3.
Enter values for the local time zone, ranging from -12 to +14. The time zone cannot be calculated through the set
longitude and latitude; if the setting is out of range or the value is incorrect, no error message will be shown.
4.
When the daylight saving time is enabled (ON), the instruction checks if the daylight saving time on the PLC is
enabled. When the daylight saving time is enabled on the PLC, DST time will be added on the sunrise and sunset
times.
5.
Enter values for the local date, month, and year in decimal format. Make sure you have entered correct values. The
instruction does not check if the values are correctly entered.
6.
After calculation, the instruction output the hour, minute and second to sunrise and sunset in integer, in decimal
format and 24 hour time format.
Example
Calculate the time to sunrise and sunset in Taoyuan, Taiwan on January 1
defined by an UTC offset of +08:00. And daily saving time is NOT implemented in Taiwan.
After calculation, the time to sunrise is at 06:39:47 and the time to sunset is at 17:16:42. See the example program below.
Date
RHour
RMin
RSec
SHour
RHour
SMin
SSec
RMin
RSec
SHour
SMin
SSec
Ch ap te r 6 Ap pl ie d Instruc ti ons
Date
The hour to sunrise on the set date
(24 hour time format)
The minute to sunrise on the set date
The second to sunrise on the set date
The hour to sunset on the set date
(24 hour time format)
The minute to sunset on the set date
The second to sunset on the set date
st
, 2018. The official time zone in Taiwan is
6_
6 - 2 3 1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents