HTML page on the BX9000
For diagnostic purposes you can create a simple HTML page on the BX9000. The page can be used for displaying strings from the PLC. If the page active, it can be displayed by entering the IP address in a web browser.
![]() | Displaying your individual HTML page In delivery state a general HTML interface is stored on the BX9000. This must be disabled, in order to display your individual HTML page. This is dealt with by the HTTP function block. When it is called for the first time it deactivates the default page and reports "bRebootNecessary:=TRUE". This means that the coupler has to be restarted. After a BX9000 restart you can call up your individual HTML page. |
HTTP
A rising edge of bActive activates the web page. If the HTML page is available the bit bIsActive is TRUE.

INPUT
VAR_INPUT
bActive : BOOL;
strHeadLine : STRING(80);
HeadlineSet : HEADLINE;
bSystemInfos : BOOL;
strDataHTML : ARRAY [1..30] OF STRING(100);
END_VAR
bActive: A positive edge activates the function block.
strHeadLine: Header of the HTML page (max. 80 characters).
HeadLineSet: Settings for header font size and color.
bSystemInfos: System information is displayed (TRUE) or not displayed (FALSE).
strDataHTML: max. 30 lines with max. 100 characters per line. An empty string completes the HTML page, further lines are not displayed.
OUTPUT
VAR_OUTPUT
bIsActive : BOOL;
bError : BOOL;
iErrorId : INT;
bRebootNecessary : BOOL;
END_VAR
bIsActive: The HTML page is available in a web browser.
bError: This output is switched to TRUE as soon as an error occurs during the execution of a command. The command-specific error code is contained in iErrorId.
iErrorId: Contains the command-specific error code of the most recently executed command.
bRebootNecessary: To start the HTML page the controller must be rebooted.
Example
For this example a BX9000 is required.
Download BX9000 with HTML page (sample file)
Development environment |
Target platform |
PLC libraries to be linked |
---|---|---|
TwinCAT v2.10.0 and above |
BX9000 (165) firmware version >=1.15 |
Standard.lbx, TcBaseBX.lbx, TcBaseBX9000.lbx, |