DVP-ES3 Series Programming Manual Date Date RHour The hour to sunrise on the set date (24 hour time format) RMin The minute to sunrise on the set date RSec The second to sunrise on the set date SHour The hour to sunset on the set date (24 hour time format) SMin The minute to sunset on the set date SSec The second to sunset on the set date Explanation 1. 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 _6 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 st , 2018.
The official time zone in Taiwan is 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. Checked with the official weather website, the actual sunrise occurred at 06:39:44 and the actual sunset occurred at 17:16:45. The difference between the PLC calculation and the actual occurrence is ± 3 seconds. 6-230