The integrated web server on a PLC allows to create user access policy and analyse trend data, control multiple PLCs from a single web server (Controller as external webserver) and display a text template (Change from graphical page to text page).
Note: if the PLC works as an integrated web server (displaying values from “this” PLC only), it is not possible to use it as External webserver (i.e. as a web server for data from more PLCs in a network) at the same time, and vice versa. The web pages are overwritten by the most recent content at every web pages upload.
Web pages are designed in the integrated HMI editor as a template. Create a new HMI template:
Then enter the name and type of the new template. Display type shall be “Graphic”. Template type shall be “PLC”, and the PLC shall be the name of the PLC for which the template is designed. This PLC will provide the variables to attach to the graphical objects.
Each graphic template has specific properties: HMI template type, Attached PLCs, Gadget styles, optional Header, and Page resolution.
Editable properties are Template name, and Resolution. The resolution can be selected from the drop-down box to fit standard screen sizes, or entered as custom value.
In Page properties:
Page properties
Insert object from the HMI menu tab into the page, and bind them to PLC variables.
There are 19 object types with different properties. Objects can be dragged and dropped into the HMI template. Then, a PLC variable shall be assigned to the object.
As an example, select a Value Indicator, and attach a variable from the PLC variable list.
Detailed description of HMI objects including their properties can be found here: Graphic HMI objects.
Add a page by clicking the “+” button. Delete a page by clicking the “x” next to the page name in the tab below.
Definition of user access rights with setup of user groups for individual pages is described on the User policy page.
Before uploading web pages to PLC, select the web pages language. The selected language will be used for generic web texts, such as names of days of week, time schedules, menu etc.
Contact technical support if you need to add your language.
Next step is uploading the template to PLC: in PLC Properties, Web parameters, select the engineered template. The Definition directory is completed automatically. If the web template is not in your Solution, select the template definition in the Definition directory parameter.
Then upload the web by clicking the “Deploy Solution” button or right click the PLC and select PLC Operation - Upload web.
The operation of the web server shows activities of user with all access rights. Check the user access rights if some functions shown below are not available at your web.
If the default web user has a password specified (not blank), after opening the PLC web page a login dialogue is displayed.
To display trend data in a graph, selct values to be displayed by Ctrl + left mouse click. The tagged values are listed at the graph icon. Values can be displayed as history (saved data only) or in oscilloscope mode (values are continuously updated with new samples).
Configuration of saving trend data in a PLC is described in Configuration of saving data to database (history). To display trend data as a history, switch the Oscilloscope mode to off and select the time period to be displayed.
When the legend says “noData” check if the values are saved correctly into the PLC database.
Sampled values can be highlighted by clicking the Display All Points icon.
Refresh the displayed data by the Refresh icon.
Unselect the variables to display by clicking the Cancel selection icon
Export the graph as PNG or CSV using the Save icon
To display the overview of active alarms, make sure that the user has Alarm rights in "HMI User Rights" .
To show the alarms overview or alarm log at the web server, click the alarm display icon.
In the alarm list there are all alarms which are not in Normal state. Acknowledge alarms by clicking the “Confirm” button, and reset the inactive alarms by clicking the “Reset” button.
To display the alarm log on the web server, click the icon that shows / hides the alarm history panel. (The alarm history is hidden by default.)
Export the alarm log into a CSV file using the Export button .
To display the system log, user must have the System Log access right. See "User policy" setting.
Click the icon on the PLC web.
See the system configuration setting at the "System configuration" page.