Home > Forum > Controllers SlimLine e Netsyst (LogicLab) > Management of dynamic web pages by the user
- This topic has 20 replies, 1 participant and was last updated 3 years, 7 months ago da Sergio Bertana.
-
AuthorPost
-
March 12, 2013 at 8: 58 am #35339Sergio BertanaAdministrator Forum
On the forms CPU SlimLine Compact and from version B of the ARM7 CPU module, the possibility of creating web pages directly by the user has been implemented, these pages can be transferred to the system directories and will be viewed by accessing from a web browser.The most important feature of the integrated web server in SlimLine it is possible to manage dynamic pages. A dynamic web page is a page whose content, in whole or in part, is generated on the spot by the server, thus being able to be different each time it is called up, thus allowing interactivity with the user. Therefore, it will be possible to create pages that report values of PLC variables and allow you to change the value of PLC variables. I enclose a extract of the IEC61131-3 programming manual on system SlimLine which deals with the topic.
September 3, 2013 at 1: 41 pm #37749Sergio BertanaAdministrator ForumSeptember 11, 2013 at 8: 41 am #37765Maurizio ContiParticipantI'm trying to write, for my application made on the SlimLine, a summary web page which, among other things, must contain some system information (such as program version, activation time and more).
I have read that only the variables allocated in the DB100 can be published, but to avoid "useless" copies of the system variables in this area, I have analyzed how your WEB configuration pages are made. Slimline (use of type tags ) and I replicated the application.
The implementation works if the page is contained in the folder System but not if the folder is there Storage. Is there a reason? Do I have to stay on the DB100 road or is there a solution?
September 11, 2013 at 8: 45 am #37766Sergio BertanaAdministrator ForumThe IDs used in the configuration web pages as you said rightly you are managed only for the files in the directory System, the web server of the SlimLine checks the directory where the page to be displayed is located and if different from System it does not manage IDs.
The IDs used are not documented, are defined in the program and may change at our discretion so they should not be used. The user web pages operate only on variables allocated in the 100 DB, if you want to manage system variables you have to force them to rely on variables allocated in the 100 DB.
November 26, 2013 at 8: 41 am #37908Sergio BertanaAdministrator ForumIn this topic the use of Google Charts for the visualization of data in graphic form on web pages is treated.
January 1, 2014 at 3: 01 pm #37958MaurizioParticipantI tried to use the example for command and display of digital I / O, inserting an automatic page refresh. However, I noticed that the complete loading of the page, including displaying the inputs, takes almost two seconds. Is it possible to make the refresh faster, and have a 'real time' view?
January 2, 2014 at 7: 57 am #37959Sergio BertanaAdministrator ForumHaving to manage a real time system such as a PLC, to try to have the most determined delay times possible, the HTTP server manages the sending of the pages in chunked mode, the content of the page is divided into many small pieces and sent to the client . This naturally slows down the page display, even if the loading time you are referring to seems exaggerated to me, as you can see from the TCPIPStats the average times are much lower than the second.
[Admin]> TCPIPStats
Web page load time: 163.790 [55.789 <> 163.790] (mSec)The Real Time display of the data is not possible, to display the values it is necessary to refresh the page.
January 13, 2014 at 3: 31 pm #37988Sergio BertanaAdministrator ForumI correct what was said in the previous post, as seen in this topic, through a java script that is provided by us, it is possible to manage the automatic updating of variables using the AJAX technique.
February 21, 2014 at 7: 01 pm #38085Maurizio ContiParticipantI can upgrade one Slimline MPS046A100 to be able to manage the web pages?
February 22, 2014 at 10: 08 am #38086Sergio BertanaAdministrator ForumIn the "B" version of the SlimLine we have made circuit changes that make the operating system incompatible with version "A".
All the management of the Web pages has been implemented on the new operating system SFW184 ** 00 and uses some hardware functions available only on version "B" of the product. Therefore it is not possible to perform a system firmware upgrade in order to have the web pages.
July 18, 2014 at 6: 03 pm #38328MauroParticipantI purchased the version with LAN connection, delivery scheduled on Monday 21. I wanted to know if with the integrated web server I can do some sort of hmi via the web.
July 19, 2014 at 6: 10 am #38329Sergio BertanaAdministrator ForumThe integrated web server allows you to view html pages so you can use all the typical html objects. You can have text boxes, buttons, and through javascript and with divs you can create attractive looking graphic pages (Screenshot).
If the browser you use to view the pages can connect to the SlimLine also to the Internet through the objects of Google chart you can view instruments (Gauges), Bar graph, and more (Topic).
Of course, the graphic potential offered by an HMI or a SCADA software is much higher, much depends on your needs.
July 19, 2014 at 4: 58 pm #38330MauroParticipantAt the moment my need is limited to energy management I want to always keep an eye on the consumption and production of photovoltaics in order to optimize the use of induction plate air conditioners microwave washing machine etc ... so that you can see them on your cell or tablet and not having to go to the garage every time to check these data then as everything takes shape maybe I will expand it with HMI or other.
July 21, 2014 at 8: 01 am #38331Sergio BertanaAdministrator ForumYes, for this need you can use simple HTML pages with display fields of the values that interest you. Google chart objects are aesthetic embellishments but functionality is still guaranteed even by simple HTML pages.
As an alternative to HTML pages you can use the Modbus protocol, there are applications for Android and for iOS, I also saw small SCADA for Android that can be very appealing (Topic).
June 11, 2016 at 3: 42 pm #39613AlbertoParticipantThis topic is very interesting and, after downloading the library with its documentation, I tried to create a project from scratch. Probably, being a beginner with LogicLab I have forgotten the declaration of variables.
Would it be possible to have the complete ppjs to download and compare it with my version?
-
AuthorPost
- You must be logged in to reply to this topic.