EasyManua.ls Logo

Siemens Simatic S7-400

Siemens Simatic S7-400
84 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Time switch based on the S7-300/400 CPUs with simple HMI system
including radio-controlled clock connection
Rev. B - final 19.07.2002 72/84
Copyright © Siemens AG 2005 All rights reserved
BID21669756_Zeitschaltuhr_einfach_DOKU_v20_e.doc
Table 7-2 Code one-month time switch
Code Remarks
NETZWERK 4:
enst: NOP 0
L #time_to_check.start_dateday
T #temp_startday
L #time_to_check.end_dateday
T #temp_endday
L #temp_startday
L 32
==I
SPB mola
L #temp_endday
L 32
==I
SPB mola
SPA equa
Check whether the Function”
“Last day of the month” has been
specified in the start day of in the
end day.
NETWORK 5:
mola: NOP 0
L #month
SPL nomo
SPA ende
SPA m31
SPA m28
SPA m31
SPA m30
SPA m31
SPA m30
SPA m31
SPA m31
SPA m30
SPA m31
SPA m30
SPA m31
nomo: SPA ende
If yes, check current month
NETWORK 6:
m31: NOP 0
L #temp_startday
L 32
<>I
SPB m2
L 31
T #temp_startday
m2: NOP 0
L #temp_endday
L 32
<>I
SPB equa
L 31
T #temp_endday
SPA equa
If e.g. month with 31 days, set
start day or end day to 31
(depending on where the
“Function” “Last day in the
month” is required)
Same function also exists for
months with 30 days or with 28
days

Table of Contents

Other manuals for Siemens Simatic S7-400

Related product manuals