Yearly timer

image\block_jsu_sn.gif

Short description

The output is controlled by means of a configurable on/off date. You can configure the timer to activate on a yearly, monthly, or user-defined time basis. With any mode, you can also configure the timer to pulse the output during the defined time period. The time period is configurable within the date range of January 1, 2000 to December 31, 2099.

Note: To use this function block, you must use a LOGO! with an internal real-time clock.

 

Connection

Description

Parameter

At the No (cam) parameter, you configure the timer mode, the on-/off-times for the timer, and whether the output is a pulse output.

Output Q

Q is set on when the configured cam is switched on.

Timing diagrams

Example 1: Yearly selected, On Time = 2000.06.01, Off Time = 2099.08.31, Every year on June 1 the timer output switches on and remains on until August 31.

image\block_jsu_diagramm_y2000_2099_sn.gif

Example 2: Yearly selected, Pulse selected, On Time = 2000.03.15, Off Time = 2099.**.**. Every year on March 15, the timer switches on for one cycle.

image\block_jsu_diagramm_ypulse_2000_2099_sn.gif

Example 3: Yearly selected, On Time = 2008.06.01, Off Time = 2010.08.31. On June 1 of 2008, 2009, and 2010, the timer output switches on and remains on until August 31.

image\block_jsu_diagramm_y2008_2010_sn.gif

Example 4: Yearly selected, Pulse selected, On Time = 2008.03.15, Off Time = 2010.**.**. On March 15 of 2008, 2009, and 2010, the timer output switches on for one cycle.

image\block_jsu_diagramm_ypulse_2008_2010_sn.gif

Example 5: Monthly not selected, Yearly not selected, On Time = 2008.06.01, Off Time = 2010.08.31. On June 1, 2008 the timer output switches on and remains on until August 31, 2010.

image\block_jsu_diagramm_yrange_sn.gif

Example 6: Monthly not selected, Yearly not selected, Pulse selected, On Time = 2008.03.15, Off Time = ****.**.**. On March 15, 2008 the timer switches on for one cycle. Because the timer does not have a monthly action or yearly action, the timer output pulses only one time at the specified On Time.

image\block_jsu_diagramm_singlepulse_sn.gif

Example 7: Yearly selected, On Time = 2000.12.15, Off Time =2010. 01.07. On December 15 of 2008 and 2009, the timer output switches on and remains on until January 7 of the following year. When the timer output turns off on January 7, 2010 it does NOT turn on again the following December 15.

image\block_jsu_diagramm_ydec_jan_sn.gif

Example 8: Monthly selected, On Time = 2008.**.01, Off Time = 2010.**.05. Starting in 2008, on the first day of each month the timer output switches on and switches off on the fifth day of the month. The timer continues in this pattern through the last month of 2010.

image\block_jsu_diagramm_monthly_sn.gif

Description of the function

The yearly timer sets and resets the output at specific on and off dates. Sets and resets are executed at 00:00. If your application requires a different time, use a weekly timer together with a yearly timer in your circuit program.

The On Time specifies the month and day when the timer is set. The Off Time identifies the month and day on which the output is reset again. For the on and off times, note the order of the fields: The first field defines the year, the second the month and the third the day.

When you select the Monthly check box, the timer output switches on each month at the specified day of the start time and remains on until the specified day of the Off Time. The On Year specifies the initial year in which the timer is activated. The Off Year defines the last year in which the timer turns off. The maximum year is 2099.

If you select the Yearly check box, the timer output switches on each year at the specified month and day of the start time and remains on until the specified month and day of the Off Time. The On Year specifies the initial year in which the timer is activated. The Off Year defines the last year in which the timer turns off. The maximum year is 2099.

If you select the Pulse check box, the timer output switches on at the specified On Time for one cycle and then the timer output is reset. You can choose to pulse a timer on a monthly or yearly basis, or just a single time.

If you select none of the Monthly, Yearly, or Pulse check boxes, you can define a specific time period with the On Time and Off Time. It can span any time period that you choose.

For a process action that is to be switched on and off at multiple but irregular times during the year, you can define multiple yearly timers with the outputs connected by an OR function block.

 

image\0ba3_logo_sn.gif

The Yearly and Pulse settings are available only as of the 0BA6 device series

The Monthly setting is available only as of the 0BA4 device series.

Backup of the real-time clock

The internal real-time clock of LOGO! is buffered against power failure. The buffering time is influenced by the ambient temperature, and is typically 80 hours at an ambient temperature of 25°C. If you are using the optional LOGO! Battery card, or combined LOGO! Memory/Battery card, LOGO! can retain the clock time for up to two years.

Special characteristics to note when configuring

You can numerically enter values for the month and day fields. Enter values within the logical range of month values and day values; otherwise LOGO!Soft Comfort returns an error message.

The calendar icon offers you an easy way of setting the date. It opens a window where you can set the days and months by clicking the relevant buttons on a calendar page.

Sample configuration

The output of a LOGO! is to be switched on annually, from the 1st of March to the 4th of April and from the 7th of July to the 19th of November. This requires two blocks for configuring the specific On Times. The outputs are then linked via an OR block.

image\block_jsu_diagramm_or_sn.gif

Place two yearly timer switch SFBs on your programming interface. Configure the On Time for the first yearly timer to 03.01 and the Off Time to 04.04. Configure the On Time for the second yearly timer to 07.07 and the Off Time to 11.19.

Create a logical link of the blocks with a standard OR block. The OR output is 1 if at least one of the yearly timer switches is set.

image\block_jsu_scrshot_sn.gif

 

Overview