Configuration

Configuration in Automation_Builder

  1. In your PLC project, click Interfaces ‣ Ethernet ‣ Protocols and add a new object Web Server .

  2. Open the web server settings to change the default settings if required.

    Before changing the number of parallel connections for the web server, check the general information on : Supported Ethernet Protocols and Ports

Parameter Default Value Meaning
Port 80 0 … 65535 Listen port of the web server
Connections 2 1 … 9 (depending on CPU type) Number of parallel connections accepted by the web server.

Configuration in IEC 61131-3 editor

  1. Open the IEC 61131-3 editor.

  2. In the Resources tab click on Target Settings and select the Visualization tab.

    ../_images/ef037824409b43fb0a33139000eba54e

    If required, change Display width and Display height for the web pages.

    Enable Web visualization, otherwise the webpages are only visible in online mode.

    Ensure Inhibit download of visualization files is disabled.

    Note

    If you activate Activate system variable ‘CurrentVisu’ and define a global variable “CurrentVisu” [STRING(40)] in your project, then the name of the active visualization will be stored in this variable. You can switch between your visualization pages by changing this value.

  3. In IEC 61131-3 editor open the Visualizations tab to create the webpages. The first entry is the start page of your visualization project and must be named “PLC_Visu”.

    ../_images/fd1b074a409b44590a33139000eba54e

    Further information on the creation and formatting of websites is provided in the : Execute as CODESYS Web Visualization

  4. By default, all objects in the visualizations tab are marked for web visualization. When the project is built, all marked objects are saved as XML-files (objectname.xml) into the project.

    To exclude a particular visualization object from the web visualization, click Project ‣ Object ‣ Properties.

    In the tab Visualization disable Web-Visualization.

    ../_images/649cbf44409b44b70a33139000eba54e
  5. Open a web browser and enter the IP address to the PLC (webserver project): http://<IP address/webvisu.htm>.

  6. Click Online ‣ Show file information to check the PLC Project Data Sizes.

    ../_images/9e229d53b27036180a317f34403f6c08