Show Several Tags With Json Structure In Siemens S7 Webserver
I am using a Siemens S7-1200 PLC with integrated webserver. I want to show multiple analog values from the PLC in the webpage using javascript. With one tag it works great, but ho
Solution 1:
I think you should look on this article... https://api.jquery.com/jquery.getjson/
You haven´t a return key in JSON in IOwebserver.htm file.
":="webdata".HMI_skalert:" -> value of JSON object which use AWP command in this case.. :="Name_of_DataBlock".variable: -> Symbols (:=) and (:) are boundaries of AWP command used in Simatic WebServer
So try to remake this file like this:
{"HMI_skalert":":='webdata'.HMI_skalert:","Tank1_masse":":='webdata'.Tank1_masse:"}
If this will not work try to swap apostrophes dobule quotes (") by one (').
For example I use a interval loading XML file to load 57 variables for Simatic S7-S1200 WebServer. For more information contact me..
Post a Comment for "Show Several Tags With Json Structure In Siemens S7 Webserver"