PLBWEB_ERROR Keyword
PLBWEB_ERROR={ '~' | HtmlFileName | PlcProgName }
This keyword defines the default behavior that occurs as the
runtime terminates after a PL/B Web program encounters an un-trapped error that generated an error dialog.
The ‘SETMODE *PlbWebErrorUrl’ keyword also controls this behavior.
If this keyword is not specified in the PLBWEBSRV.INI file or the keyword is assigned to be null,
the default behavior causes the last PL/B Web Client URL to be executed again which is the same behavior
as a browser reload\refresh action.
The assigned keyword string is defined as follows:
-
PLBWEB_ERROR=
-
In this case, the last PL/B Web Client URL that was used to invoke the logon operation is executed again
with the same behavior as a browser reload\refresh action.
-
PLBWEB_ERROR=~
-
In this case, the PL/B Web runtime initiates the execution of the ‘plbweberror.html’ Web page when the
runtime terminates after an un-trapped error has occurred.
-
PLBWEB_ERROR={HtmlFileName}
-
In this case, the PL/B Web runtime initiates the execution of an user defined Web page specified by the
{HtmlFileName}. The {HtmlFileName} Web page file must be located in the directory specified by the PLBWEB_ROOT
keyword.
Examples:
PLBWEB_ERROR=UserError.html
PLBWEB_MENU=index.html
-
PLBWEBRROR={PlcProgName}
-
In this case, the PL/B Web runtime initiates the execution of the PL/B program specified by {PlcProgName}.
This causes the browser client to logon to the PL/B Web Server to execute the specified PL/B program.
Example:
PLBWEB_ERROR=answer.plc
See Also: PLBWEBSRV Keywords,
Server
Command Line