Commandstate structure
"Commandstate" is a structure that contains global commands and global states for the Web
server.
Global commands in the "Commandstate" structure
The global commands apply to the Web server in general. You can deactivate the Web
server or restart it from the control DB parameters.
Block tag
init
deactivate
Global states in the Commandstate structure
The global states apply to the Web server in general and contain status information about
the Web application.
Block tag
initializing
error
deactivating
deactivated
initialized
last_error
Request table
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 1052) 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.
Block tag
requesttab
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
Data type
BOOL
BOOL
Data type
BOOL
BOOL
BOOL
BOOL
BOOL
INT
Data type
ARRAY [ 1 .. 4 ] OF STRUCT
12.7 User-defined Web pages
Description
Evaluate the control DB and initialize the Web
application
Deactivate the Web application
Description
Web application is reading control DB
Web application could not be initialized
Web application is terminating
Web application is terminated
Web application is initialized
Last error returned from a WWW instruction
call (Page 1059) 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
Description
Array of structures for individual fragment DB
control.
The Web server can process up to four frag-
ments 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.
Web server
1079