Time switch based on the S7-300/400 CPUs with simple HMI system
including radio-controlled clock connection
Rev. B - final 19.07.2002 30/84
Copyright © Siemens AG 2005 All rights reserved
BID21669756_Zeitschaltuhr_einfach_DOKU_v20_e.doc
4.3.1 Absolute time switching functions
The absolute time switching functions include
• One-day time switch
• Seven-day time switch
• One-month time switch
• One-year time switch
Each of the blocks has the following inputs:
• EnableClock of “BOOL“ type
Value = 1: Clock enabled
Value = 0: Clock not enabled
• Time_To_Check of “UDT“ type
The parameter contains the time range in which the clock is to be active,
with absolute switch-on and switch-off time. The parameter is specific for
each time switch
!
Important
For the one-week time switch, the parameter “Time_To_Check“ is an in/out
parameter!
• Reset of “BOOL“ type
Value = 1: Clock is reset
Value = 0: Clock runs in “Normal operation”
Each of the blocks has the following outputs:
• Q = clock active of “BOOL“ type
The parameter indicates whether the clock is active.
Value = 1: Clock is active
Value = 0: Clock not active
• Error of “INT“ type
Value = 0: No error has occurred
Value <> 0: An error has occurred
possible errors:
Return value of called SFCs in the block (e.g. SFC1 “Read_Clk“)
8000h at limit value violation at the input parameters
8001h if switch-on time equal switch-off time