Function Block REPEAT_MONTHLY

The Function Block REPEAT_MONTHLY generates a monthly repetition as a string for the input REPEAT at the Function Block TIMESWITCH_ADD.

Input EVERY

Defines the repetition as an integer every X-th month. If the input is not defined, the minimum 1 is assumed.

Input UNTIL

Defines the end of the repetition. Three different formats can be used:

  • No end is defined by 0, FALSE or NULL.
  • An integer can be used to define the number of repetitions.
  • A date D#2016 can be used to define an end date.

Input BYDAY

Defines on which weekday the event should be repeated. Values from -1 to 4 are supported. 0 or no declaration repeats monthly on the same day, regardless of the weekday. The weekday is taken from the first date.

Value Description
-1 Repeats on the last weekday.
0 Repeats on the same day. (Default)
1 Repeats on the first weekday.
2 Repeats on the second weekday.
3 Repeats on the third weekday.
4 Repeats on the fourth weekday.

Input DIS

Disables the repetition and returns an empty string.

Output Q

Returns a string with the repetitions for the input REPEAT of the Function Block TIMESWITCH_ADD.