Web server
11.6 User-defined Web pages
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
661
Web application is initialized
last_error INT Last error returned from a WWW instruction
call (Page 642) when the return code of WWW
is 16#0010:
16#0001: fragment DB structure is inconsistent
16#0002: the application name already exists
16#0003: no resources (memory)
16#0004: control DB structure is inconsistent
16#0005: fragment DB not available
16#0006: fragment DB not for AWP
16#0007: enumeration data is inconsistent
16#000D: conflicting size of the control DB
The request table is an array of structures containing commands and states that apply to
individual fragment DBs. If you created fragments with the AWP_Start_Fragment (Page 637)
command of type "manual", the STEP 7 user program must control these pages through the
control DB. The request states are read-only and provide information about the current
fragment. You use the request commands to control the current fragment.
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
Number of the current web page
fragment_index UINT Number of the current fragment - can be set to
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
Close http connection without sending
finish BOOL 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