Time switch based on the S7-300/400 CPUs with simple HMI system
including radio-controlled clock connection
Rev. B - final 19.07.2002 76/84
Copyright © Siemens AG 2005 All rights reserved
BID21669756_Zeitschaltuhr_einfach_DOKU_v20_e.doc
Table 7-5 Code holidays/special days
Code Remarks
NETZWERK 2:
.
.
schl: T #zaehler
L #jahr
L DBW [#index]
<>I
SPB jnex
L #index
SRW 3
L 2
+I
SLW 3
T #index
L #monat
L DBW [#index]
<>I
SPB mnex
L #index
SRW 3
L 2
+I
SLW 3
T #index
L #tag
L DBW [#index]
<>I
SPB tnex
SET
S #feiertag
BEA
Check whether year in the DB
coincides with the current year
Increase index
Check whether month in the DB
coincides with the current month
Increase index
Check whether day in the DB
coincides with the current day