Time switch based on the S7-300/400 CPUs with simple HMI system
including radio-controlled clock connection
Rev. B - final 19.07.2002 34/84
Copyright © Siemens AG 2005 All rights reserved
BID21669756_Zeitschaltuhr_einfach_DOKU_v20_e.doc
Basic data/parameterizability:
RAM requirements:
month: 1204 bytes
Instance DB: 56 bytes
The parameter “Time_To_Check“ is a structure of the “month_udt“ (UDT3)
type. It contains:
• Start day
1 to 31: corresponds to day in month
32: Last day in month
• Start hour, start minute, start second summarized as “starttime” with
structure of the “times” (UDT6) type
• End day
1 to 31: corresponds to day in month
32: Last day in month
Note
When parameterizing start day and end day, it must be taken into account that not
every month has 31 days. If a function is to be executed at or until or from the last
day of the month, a 32 must be entered instead of 28, 30 or 31. The block checks
the current month and automatically sets the end day to the last day of that month.
• End hour, end minute, end second summarized as “endtime” with
structure of the “times” (UDT6) type
4.3.5 One-year time switch
The block for the one-year time switch “year” FB123 is parameterized as
illustrated in the figure below. Data block DB123 is used as instance data
block:
Fig 4-7 Configuration “one-year time switch”