
The Function Block TIMESWITCH_REMOVE deletes an event in a timer switch.
Note: The timer switch must be stored in the same element.
The input deletes an event in the calendar on a positive edge. If the input is always true, the event will be deleted as soon as it exists.
Important: Creating and simultaneously deleting should be avoided, as this can heavily strain the SSD.
Here, the database of the timer switch is stored as a string. This must already exist as Function Block TIMESWITCH. Also note the order of the program so that this Function Block is initialized correctly.
Defines the ID as a string of the event.
In case of an error, the output is set to true. This can happen if the calendar does not exist or the ID was not defined or is invalid.