104BWeb server
11.3 User-defined web pages
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
527
Block tag
Data type
Description
requesttab
ARRAY [ 1 .. 4 ] OF STRUCT Array of structures for individual
fragment DB control.
The Web server can process up to four
fragments at a time. The array index for
a particular fragment is arbitrary when
the Web server is processing multiple
fragments or fragments from multiple
browser sessions.
Struct members of requesttab struct
Block tag
Data type
Description
page_index
UINT
Number of the current web page
fragment_index
UINT
Number of the current fragment - can be
set to a different fragment
// Request Commands
continue
BOOL
Enables current page/fragment for
sending and continues with the next
fragment
repeat
BOOL
Enables current page/fragment for
resending and continues with the same
fragment
abort
BOOL
Close http connection without sending
finish
BOOL
Send this fragment; page is complete -
do not process any additional fragments
// Request states
The request states are read-only
idle
BOOL
Nothing to do, but active
waiting
BOOL
Fragment is waiting to be enabled
sending
BOOL
Fragment is sending
aborting
BOOL
User has aborted current request
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 508).
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.