Short description
The astronomical clock SFB is used to set an output high between sunrise and sunset based on the local time at the geographical location of the LOGO! 0BA7 or 0BA8 devices. The output status of this function block also depends on the configuration of summer time/winter time conversion.
|
Connection |
Description |
|
Parameter |
The location info including longitude, latitude, time zone, and TR (sunrise time)/TS (sunset time) offsets. |
|
Output Q |
Q is set to hi when sunrise time is reached. It holds this state until sunset time is reached. |
Parameters
In the astronomical clock dialog, you can select the location of the LOGO! device from one of the following pre-defined time zone locations:
Beijing
Berlin
London
Rome
Moscow
Tokyo
Washington
Ankara
Madrid
Amsterdam
If you select one of these locations, LOGO!Soft Comfort uses the latitude, longitude, and time zone of your selection.
Alternatively, you can configure a specific latitude, longitude, and time zone for your location, and provide a name for this custom location.
Based on the location and time zone, LOGO! calculates the absolute sunrise and sunset time for the current day. The block also takes summer time/winter time into consideration, if it is configured on the computer where LOGO!Soft Comfort is installed. To do such configuration, you should select check box of "Automatically adjust clock for daylight for saving changes" in the "Date and Time Properties" dialog.
Timing diagram
Description of function
The function calculates the value at the input and sets or resets Q depending on the sunrise time and sunset time at the configured location and time zone of the module.