Function Block TIMESWITCH

The Function Block TIMESWITCH provides a timer switch on the visualization as a calendar.

Note: If only a simple timer switch is required, you can use the Function Block TIMESW.

The database DB defines the storage location of all events. If this is changed, all calendar events will be lost.

The configuration of the timer switch is implemented via the Calendar-Plugin on the visualization but can also be done completely via the PLC.

Notes:

The timer switch can control multiple devices simultaneously. Therefore, it is not necessary to insert a timer switch for each device.

The minimum activation time for an event is one second. Even for pulses.

Multiple events can be active at the same time.

The Function Block may be temporarily blocked by reading the times.

Input DIS

The input deactivates the timer switch. All pulses that are active during this time will be ignored. Events that are active will be terminated immediately and the pulses for turning off will be executed immediately. When DIS is set to false again, the previously deactivated event will become active again and the pulses for turning on will be executed immediately.

Input DIS_ON

With this input, all activation events are disabled. The peripherals selected in the visualization will then not be switched.

Input DIS_OFF

With this input, all deactivation events are disabled. The peripherals selected in the visualization will then not be switched.

Output Q

The output is active as long as an event is active and DIS is false.

Output DT_START

The output returns the next activation time point in the format DT# of the active event. If no next event was found, the value is equal to 0.

Output DT_END

The output returns the next deactivation time point in the format DT# of the active event. If no event is active, the value is equal to 0.

Output ID

Returns the ID of the active event as a string. To obtain the title or other information, use the Function Block TIMESWITCH_GET subsequently.

See Also