Function Block TIMESWITCH_LIST

The function block TIMESWITCH_LIST provides the active and upcoming events of a timer switch.

Note: The timer switch must be stored in the same element.

Note: This function block can have more than four outputs. You can right-click on the function block to add another output.

Warning: The events output were previously recalculated by the PLC and may differ from the calendar entry. Use the function block TIMESWITCH_GET to obtain further information.

Input TIMESWITCH

Here, the database of the timer switch is stored as a string. This must already exist as a function block TIMESWITCH. Also note the order of the program so that this function block is correctly initialized.

Input OFFSET

This input allows counting through the output. Each output is thereby shifted by the specified offset and returned.

Input DIS

The input disables reading and sets all outputs to NULL and the output COUNT to 0.

Output COUNT

The output returns the number of events found.

Note: If the input TIMESWITCH refers to a non-existent timer switch, the output may not be able to reset the value. Therefore, the output cannot be used to determine whether the entry is valid.

Output ID1..ID#

Returns the ID of the next event. An ID can occur multiple times.

Output DT_START1..DT_START#

Returns the start time in DT# format of the next event.

Output DT_END1..DT_END#

Returns the end time in DT# format of the next event.