Hello
How sombody used the Function FbHttps_get from e!cockpit wagoAppHTTP.
I'm trying to get data from a webpage, but I can't get it to read from a page.
I have Internett aksess from the PLS. I can ping google.
Does sombody have an example I can look at?
As I understand it, I get out DWORD. And it gets converted to BYTE, CHAR but not STRING.
Now I tried and take this array into JSON_function blocks it just complains that it is not STRING.
Do anybody have any tips?
You get an array of DWORD into your receive buffer. You need to process this into usable data, before you can fit it into your DUT. I've made it work using FbWrite_ToIEC_ByRule in stead of Fb_JSON_ParseAndModify. I've attached images of the code.
You receive the data into ARRAY[0..1023] OF DWORD. Then you use that array as the input for fbWrite_ToIEC_ByRule. To get the output from this you define a rule to fit the expected data structure including nesting levels. The you feed the rule into FbWrite_ToIEC_ByRule and then you can set the output to be of your DUT type.
Hello
How sombody used the Function FbHttps_get from e!cockpit wagoAppHTTP.
I'm trying to get data from a webpage, but I can't get it to read from a page.
I have Internett aksess from the PLS. I can ping google.
Does sombody have an example I can look at?
I tried to makee a DUT
The program
Program se Attachments
First signs from the website: https://www.nordpoolgroup.com/api//marketdata/page/10
{"data": {"Rows": [{"Columns":
As I understand it, I get out DWORD. And it gets converted to BYTE, CHAR but not STRING.
Now I tried and take this array into JSON_function blocks it just complains that it is not STRING.
Do anybody have any tips?
You get an array of DWORD into your receive buffer. You need to process this into usable data, before you can fit it into your DUT. I've made it work using FbWrite_ToIEC_ByRule in stead of Fb_JSON_ParseAndModify. I've attached images of the code.
You receive the data into ARRAY[0..1023] OF DWORD. Then you use that array as the input for fbWrite_ToIEC_ByRule. To get the output from this you define a rule to fit the expected data structure including nesting levels. The you feed the rule into FbWrite_ToIEC_ByRule and then you can set the output to be of your DUT type.