Hi, I would like to convert my STRING data exampleData (writed according with JSON format) to JSON format. I would like to get easly access form Codesys to data in JSON format ... What I done wrong ?
Please find in attachement my example.
json_p2: you used a STRING when you needed a WSTRING.
json_p1: 'single quotes' is a STRING but you need "double quotes" for a wstring. to have a wstring literal with double quotes inside it, you need to use "double quotes with $"dollar sign double quote$" "
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks For this But I want to ask that I have 10 number(Temp, Flow, Pressure etc) Sensor data (Variable) How can i assign it in ExampleData and I want to Execute all data at same time ,
Can you please advised
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks For this But I want to ask that I have 10 number(Temp, Flow, Pressure etc) Sensor data (Variable) How can i assign it in ExampleData and I want to Execute all data at same time ,
Can you please advised
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I would like to convert my STRING data exampleData (writed according with JSON format) to JSON format. I would like to get easly access form Codesys to data in JSON format ... What I done wrong ?
Please find in attachement my example.
Regards
json_p2: you used a STRING when you needed a WSTRING.
json_p1: 'single quotes' is a STRING but you need "double quotes" for a wstring. to have a wstring literal with double quotes inside it, you need to use "double quotes with $"dollar sign double quote$" "
I did as you said. Please find in atatchement.
But I still do not know how get variables form JSON to my program in ST ? Can you give me a hints ?
It works:
I got result = "66" .
Thanks for help.
Thanks For this But I want to ask that I have 10 number(Temp, Flow, Pressure etc) Sensor data (Variable) How can i assign it in ExampleData and I want to Execute all data at same time ,
Can you please advised
Thanks For this But I want to ask that I have 10 number(Temp, Flow, Pressure etc) Sensor data (Variable) How can i assign it in ExampleData and I want to Execute all data at same time ,
Can you please advised