Barcode-Reader O2I (TCP/IP) mit Codesys auslesen
CODESYS Forge
talk
(Thread)
Barcode-Reader O2I (TCP/IP) mit Codesys auslesen
Last updated: 2018-04-01
Using Visu to open a pdf reader
CODESYS Forge
talk
(Thread)
Using Visu to open a pdf reader
Last updated: 2020-05-29
Reading RFID's with an USB RFID reader problem
CODESYS Forge
talk
(Thread)
Reading RFID's with an USB RFID reader problem
Last updated: 2017-10-25
Post by mtho on JSON Utilities - JSON file written with invalid structure
CODESYS Forge
talk
(Post)
I'm using the JSON Utilities SL library to write configurations in my program to a file. I'm generating the JSON data using the builder function block and all appears to work correctly. When I write the jsondata to file, I'm finding that some of the JSON elements are not being written in the right location in the file. Rather than writing they keys under the parent object, they get written outside the root JSON object at the end of the file. If I then try to read the file back into the program, I get an invalid_structure error. I don't get any errors when populating the JSON data or when writing the file. I attached an example of the JSON writer output. The problems begin with key P200. Each P200 should go under MBR1 through MBR3. Among the rest of the keys, they are supposed to be under different parent objects. I am using default values for wsLineBreak and encoding.
Last updated: 2024-03-06
JSON parsing and composing library: null object
CODESYS Forge
talk
(Thread)
JSON parsing and composing library: null object
Last updated: 2023-08-14
json utilities not reading or writing files
CODESYS Forge
talk
(Thread)
json utilities not reading or writing files
Last updated: 2023-07-20
JSON (WString format) accessing elements. Convert to STRUCT?
CODESYS Forge
talk
(Thread)
JSON (WString format) accessing elements. Convert to STRUCT?
Last updated: 2023-05-23
Write/Read JSON data to communicate by TCP/IP
CODESYS Forge
talk
(Thread)
Write/Read JSON data to communicate by TCP/IP
Last updated: 2018-02-08
JSON parsing and composing library null object
CODESYS Forge
talk
(Thread)
JSON parsing and composing library null object
Last updated: 2022-12-20
JSON HTTP Client Library by Extend smart Coding
CODESYS Forge
talk
(Thread)
JSON HTTP Client Library by Extend smart Coding
Last updated: 2019-01-07
json utilities not reading or writing files
CODESYS Forge
talk
(Thread)
json utilities not reading or writing files
Last updated: 2024-02-13
How to sort JSON object in codesys
CODESYS Forge
talk
(Thread)
How to sort JSON object in codesys
Last updated: 2024-05-08
Setting array values with JSON Utilities SL
CODESYS Forge
talk
(Thread)
Setting array values with JSON Utilities SL
Last updated: 2024-05-23
Publish a JSON payload via MQTT Publish (using IIot Libraries)
CODESYS Forge
talk
(Thread)
Publish a JSON payload via MQTT Publish (using IIot Libraries)
Last updated: 2024-06-18
Raspberry Pi USB HID RFID Reader - read ID in plc program
CODESYS Forge
talk
(Thread)
Raspberry Pi USB HID RFID Reader - read ID in plc program
Last updated: 2024-01-25
Export Symbol file in CSV file?
CODESYS Forge
talk
(Thread)
Export Symbol file in CSV file?
Last updated: 2012-04-18
File transfer failed: File size error
CODESYS Forge
talk
(Thread)
File transfer failed: File size error
Last updated: 2020-08-10
app file renamed as err. file
CODESYS Forge
talk
(Thread)
app file renamed as err. file
Last updated: 2023-06-13
Post by hazarath on How extract JSONElement containing Array data
CODESYS Forge
talk
(Post)
I want to extract each element of an Array. Can someone help me with this. When I use JSONElementToString (part of JSON Utilities SL), I am seeing output as "ARRAY" instead of actual data. Here is the JSON content that I want to read : { "value1Unit": { "units": "M" }, "data": { "stepSize": 300.23, "points": [6,8] } } I would like to read each item of the element "points" i.e. 6 and 8. Here is the code I used, // Reading the content as JSON reader ( xExecute := execute , pwData := ADR ( converted_value ), jsonData := jsonDataStorage ); // Get the JSON Element jsonDataStorage.FindFirstValueByKey( wsKey := fidKeyVar, diStartIndex := searchElem, jsonElement => jsonElement ); JSON.JSONElementToString ( element := jsonElement , wsResult := valueWstring ); The content of the output of valueWstring is shown as "ARRAY" instead of the array items i.e. 6 and 8 Please can someone help me.
Last updated: 2024-07-30
Post by androidzz on Json Builder problem?
CODESYS Forge
talk
(Post)
Dear reader, I am using the codesys JSON utilities SL, 1.9.0.0 library. And then specifically the FB JSONBuilder. I need to create a main object with at least 2 objects in it. The first object is no problem, but I cannot insert the second object into the main object. See attached my code and the result I get. I am assuming that I am doing something wrong with the parent index but have tried a lot and can't get it done. Kind regards, Rob
Last updated: 2024-03-11
Visualization integrated in smartphone and communication with PLC server with JSON
CODESYS Forge
talk
(Thread)
Visualization integrated in smartphone and communication with PLC server with JSON
Last updated: 2018-04-15
JSON parsing and composing library: Error for parsing JSONString in "ExampleJSON_PRG"
CODESYS Forge
talk
(Thread)
JSON parsing and composing library: Error for parsing JSONString in "ExampleJSON_PRG"
Last updated: 2023-08-08
Convert Json to String using Machine Expert base on Codesys plateform
CODESYS Forge
talk
(Thread)
Convert Json to String using Machine Expert base on Codesys plateform
Last updated: 2021-09-28
File Operations on Bosch Rexroth MTX (Copy/Delete File/Folder)
CODESYS Forge
talk
(Thread)
File Operations on Bosch Rexroth MTX (Copy/Delete File/Folder)
Last updated: 2017-08-24
File Write and Read mit der CAA File Bibliothek
CODESYS Forge
talk
(Thread)
File Write and Read mit der CAA File Bibliothek
Last updated: 2018-02-22
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.