How can timer switches be programmed in a S7-1200 in the DTL time format?
Precise switching is a typical requirement in many industrial applications. There are different types of "timer switches" and related functions:
- Absolute timer switches that switch at predefined times.
- Relative timer switches that switch a predefined period and are triggered by an event.
- Addition of times in order to form variable times.
Additional functions are:
- the automatic summer time/winter time changeover
- the connection of a radio clock module with DCF77 signal
Since the introduction of the TIA_Portals V11 there is the "DTL" time format which includes time details from years to nanoseconds in one format. It is the aim of this entry to provide function blocks where all time details are in the "DTL" format.
This application includes an example program which includes a function block for each mentioned function. All function blocks are based on instructions from the TIA Portal. The appropriate documentation includes a description of the program structure. The supply of the time interfaces of the function blocks can be performed via included global data blocks of via tags in the "DTL" format.
This application offers you the following advantages:
- Expansion of the functionality of the system instructions by function blocks for which all time interfaces are programmed in the "DTL" format.
- Tested functions blocks which save you time-consuming programming of timer switches and manages functions in the "DTL" format.
- Simple programming and configuration with few interfaces.
- The function blocks can be called as often as the user requires it.
The code for this application has been created with STEP 7 (TIA Portal) V12
Library of general functions for STEP 7 (TIA Portal) (contains another timer switch)
Timer switches on the basis of S7-300/400 CPUs, optional radio clock connection
Download for function modules for SIPLUS Radio clock module DCF77