hit counter script

Siemens SIMATIC S7-1200 System Manual page 1080

Hide thumbs Also See for SIMATIC S7-1200:
Table of Contents

Advertisement

Web server
12.7 User-defined Web pages
Struct members of requesttab struct
Block tag
page_index
fragment_index
// Request Commands
continue
repeat
abort
finish
// Request states
idle
waiting
sending
aborting
Operation
Whenever your program makes changes to the control DB, it must call the WWW instruction
with the number of the modified control DB as its parameter. The global commands and
request commands take effect when the STEP 7 user program executes the WWW
instruction (Page 1059).
The STEP 7 user program can set the fragment_index explicitly, thus causing the Web
server to process the specified fragment with a request command. Otherwise, the Web
server processes the current fragment for the current page when the WWW instruction
executes.
Possible techniques for using the fragment_index include:
● Processing the current fragment: Leave fragment_index unchanged and set the continue
command.
● Skip the current fragment: Set fragment_index to 0 and set the continue command.
● Replace current fragment with a different fragment: Set the fragment_index to the new
fragment ID and set the continue command.
To check global states or request states that might be changing, the STEP 7 user program
must call the WWW instruction to evaluate the current values of these states. A typical usage
might be to call the WWW instruction periodically until a specific state occurs.
Note
If the STEP 7 user program sets more than one request command, the WWW instruction
processes only one in this order of precedence: abort, finish, repeat, continue. The WWW
instruction clears all of the request commands after processing.
1080
Data type
UINT
UINT
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
Description
Number of the current web page
Number of the current fragment - can be set to
a different fragment
Enables current page/fragment for sending and
continues with the next fragment
Enables current page/fragment for resending
and continues with the same fragment
Close http connection without sending
Send this fragment; page is complete - do not
process any additional fragments
The request states are read-only
Nothing to do, but active
Fragment is waiting to be enabled
Fragment is sending
User has aborted current request
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK

Advertisement

Table of Contents
loading

Table of Contents

Save PDF