Go to content

By Gianluca

News

New pages and new firmware, speed and debugging features

New pages and new firmware... on our web site in the downloads section is available an update for the following CPU codes: MPS054***0, MPS056***0, PCB137***0, PCB141***0.

This update includes several improvements, but let's see them in order.

Web Pages

First of all it is necessary to specify that with this update the pages no longer exchange data with the PLC via requests GET e POST but now use the hidden text on page .htm

Cosa ne consegue? Prendiamo come esempio la pagina Dashboard… Prima avevamo diverse richieste per valorizzare tutti gli elementi contenuti nella pagina e aggiornarli in real time, questo impegnava il PLC e ne teneva impegnato un socket. Con questa tecnica invece, javascript, che rimane sempre il motore delle nostre pagine, scaricherà una pagina corrispondente (.htm) con all’interno i parametri di cui abbiamo bisogno, scritti come testo nascosto.
La CPU quando vedrà la richiesta della pagina .htm sostituirà il testo nascosto dei parametri con i valori degli stessi, quindi se nel file htm ci sarà scritto “<!–[nome_paramentro]–>” alla richiesta della pagina, vedremo tornare il valore corrispondente del parametro. Javascript prenderà questi ultimi e li visualizzerà di conseguenza nella pagina.

For the data setting instead the technique remained in POST.

We have redesigned the web pages to ensure faster loading speeds when browsing them. Thanks to webpack all styles and scripts are bundled. In this way, the browser does not need to download multiple .js and .css files, but only needs to download the main bundle.css and bundle.js files.

New features!

Still talking about web pages, 2 new features have also been introduced,

  1. In the Dashboard we can now see the health status of the system and several other useful statistics for debugging our program.
  2. The page of LogHere you can check that there are no problems on the system and also in the PLC program.
    We can also mettere in pausa the refresh, copiare all entries so that you can paste them into a text editor and save them, or svuotare la finestra. (The "empty" action acts locally to the browser, that is, it deletes all the logs that are present in the box until the next time the web page is reloaded. So if by mistake we have pressed the empty button, refreshing the page we will be able to see the past logs again).

Firmware

The firmware brings several improvements including:

  • In eHttpServer() handled in " modecase insensitive"the content of the HTTP header, in order to comply with RFC 2616.
  • Revised the entire syslog management by including milliseconds in the timestamp.
  • In SysGetPhrInfos now you can read the info of the cards stored during the enable of the ready, without going to read them via I2C every time.

For a complete list please refer to the Release Notes page.

Read our reviews on