Search Project: *:*

 
<< < 1 .. 3619 3620 3621 3622 3623 .. 3689 > >> (Page 3621 of 3689)

Post by timvh on JSON Utilities - JSON file written with invalid structure CODESYS Forge talk (Post)
See : https://forge.codesys.com/forge/talk/Engineering/thread/9afc7c8bad/#711c
Last updated: 2026-06-14

JSON Utilities - JSON file written with invalid structure CODESYS Forge talk (Thread)
JSON Utilities - JSON file written with invalid structure
Last updated: 2026-06-14

Post by timvh on JSONByteArrayWriter string result incorrect order CODESYS Forge talk (Post)
See the example below. You can insert key/value pairs as required At first the JSON string will be filled with: "{$"Key1$": $"Value0$", $"Key2$": [{$"Key3$": 1, $"Key4$": 2}]}" With xAdd, you can insert items, which will result in: "{$"Key1$": $"Value0$", $"Key2$": [{$"Key3$": 1, $"Key4$": 2},{$"Key3$": 3, $"Key4$": 4}]}" VAR factory : JSON.JSONDataFactory; eDataFactoryError : FBF.ERROR; pJsonData : POINTER TO JSON.JSONData := factory.Create(eError => eDataFactoryError); fb_JBuilder : JSON.JSONBuilder; wsValue : WSTRING; diRootIndex, diObjectIndex1, diObjectIndex2, diObjectIndex3 : DINT; iValue : INT; jsonArrayWriter : JSON.JSONByteArrayWriter; wsJsonData : WSTRING(1000); xFirst : BOOL := TRUE; xWrite: BOOL; xAdd: BOOL; END_VAR IF xFirst THEN fb_JBuilder.Reset(); fb_JBuilder(pJsonData := pJsonData, diRootObj => diRootIndex); wsValue := "Value0"; fb_JBuilder.SetKeyWithValue("Key1", wsValue, diParentIndex := diRootIndex); diObjectIndex1 := fb_JBuilder.SetKeyWithArray(wsKey := "Key2", diParentIndex := diRootIndex); diObjectIndex2 := fb_JBuilder.SetObject(diParentIndex := diObjectIndex1); iValue := 1; fb_JBuilder.SetKeyWithValue("Key3", iValue, diParentIndex := diObjectIndex2); iValue := 2; fb_JBuilder.SetKeyWithValue("Key4", iValue, diParentIndex := diObjectIndex2); xFirst := FALSE; xWrite := TRUE; END_IF IF xAdd THEN xAdd := FALSE; diObjectIndex3 := fb_JBuilder.SetObject(diParentIndex := diObjectIndex1); iValue := 3; fb_JBuilder.SetKeyWithValue("Key3", iValue, diParentIndex := diObjectIndex3); iValue := 4; fb_JBuilder.SetKeyWithValue("Key4", iValue, diParentIndex := diObjectIndex3); xWrite := TRUE; END_IF IF xWrite THEN xWrite := FALSE; jsonArrayWriter( xExecute := TRUE, wsLinebreak := "", pwData := ADR(wsJsonData), udiSize := SIZEOF(wsJsonData), jsonData := pJsonData^, xAsyncMode := FALSE ); END_IF IF jsonArrayWriter.xDone OR jsonArrayWriter.xError THEN jsonArrayWriter(xExecute := FALSE, pwData := ADR(wsJsonData), udiSize := SIZEOF(wsJsonData), jsonData := pJsonData^, xAsyncMode := FALSE); END_IF
Last updated: 2026-06-14

JSONByteArrayWriter problem? CODESYS Forge talk (Thread)
JSONByteArrayWriter problem?
Last updated: 2026-06-14

[New Hardware] EtherCAT Digital & Analog IO Board – CODESYS Compatible, All Channels Isolated CODESYS Forge talk (Thread)
[New Hardware] EtherCAT Digital & Analog IO Board – CODESYS Compatible, All Channels Isolated
Last updated: 2026-06-13

Post by timvh on JSONByteArrayWriter problem? CODESYS Forge talk (Post)
See : https://forge.codesys.com/forge/talk/Engineering/thread/9afc7c8bad/#711c
Last updated: 2026-06-14

Home (version 1) discussion egerobotics wiki (Thread)
Home (version 1) discussion
Last updated: 2026-06-14

home Discussion SpB-IEC home (Discussion)
Forum for home comments
Last updated: 2026-06-14

(no subject) SpB-IEC home (Thread)
Last updated: 2026-06-14

code Discussion SpB-IEC code (Discussion)
Forum for code comments
Last updated: 2026-06-14

Home SpB-IEC home (WikiPage)
Project Members: hhermsen (admin)
Last updated: 2026-06-14

wiki Discussion cad128663 wiki (Discussion)
Forum for wiki comments
Last updated: 2026-06-14

blog Discussion cad128663 blog (Discussion)
Forum for blog comments
Last updated: 2026-06-14

(no subject) cad128663 wiki (Thread)
Last updated: 2026-06-14

SpB-IEC SVN repository SpB-IEC code (SVN Repository)
Last updated: 2026-06-14

Post by yueqiqi on Where Can I download the latest Version of CoDeSys V CODESYS Forge talk (Post)
Where Can I download the latest Version of CoDeSys V2.3?
Last updated: 2026-06-15

Codesys V2.3 πŸ‡¬πŸ‡§ CODESYS Forge talk (Discussion)
Forum about V2.3
Last updated: 2026-06-15

Where Can I download the latest Version of CoDeSys V CODESYS Forge talk (Thread)
Where Can I download the latest Version of CoDeSys V
Last updated: 2026-06-15

Home cad128663 wiki (WikiPage)
Project Members: cad128663 (admin)
Last updated: 2026-06-14

Post by brouwyka on JSONByteArrayWriter string result incorrect order CODESYS Forge talk (Post)
Hi @TimvH, As discussed in our email contact, your example does not actually test/reproduce the bug I am describing: Adding to the JSON builder on later cycles works fine. Your example works because you do the following: 1. You finish the first cycle (xFirst) with adding an object to the array with 2 fields; 2. When the next cycle is triggered (xAdd), you immediately start with adding another object to that array. This works fine as the last thing you did before #2 was the addition of the array and an object to it. To reproduce the bug you should be doing the following instead, as I showed with the code I shared with my first post: 1. Create the array - save the index that is returned; 2. Add an item, either a primitive or an object, to the array; 3. Add an item outside the array (anything: a primitive, a new array, a nested object, etc); 4. Add another item to the array using the index you saved at #1. You will now see, as I shared in my initial post, that the second item is placed completely outside the root JSON object. This also happens to anything else you try to add after step #4: everything after this point will be added outside the root JSON object: the JSON is completely broken. Important to note is that this not only happens with arrays, but also with nested JSON objects. Once you add something outside of a nested JSON object, you can no longer add anything to that nested JSON object, as that causes the exact same bug. This also applies to arrays of objects, so if in your test you had tried adding a new key-value pair to the first nested object in your array after you created the second nested object, you would also run into this bug. It seems that the JSONByteArrayWriter (I haven't tested the other writers in the JSON Utilities SL library, so I don't know if they suffer from the same problem) simply does not handle any JSON fields that add brackets (so arrays with "[" & "]" and nested objects with "{" & "}") well, and closes them prematurely instead of checking if any later JSONElements in the JSONData's array belong to any of these bracketed fields. After reviewing the objects & functions of the JSON Utilities SL library, my guess is that either the JSONByteArrayWriter linearly goes through the array of JSONElements in the JSONData and only checks the diParentIndex of each JSONElement in direct ascending order, OR if it does use the JSONElement.GetChildren(); method, that this method is either broken and doesn't give all children correctly to the writer. Neither explains why everything completely breaks, and you cannot even add to the root JSON object anymore, however, so there is probably more than just that going wrong in the writer. To me, after a full week of testing and attempting workarounds, this seems like a bug in the library that needs to be fixed by Codesys, as I cannot see anything wrong in the JSONData constructed by the JSONBuilder - this seems purely a problem in the writer.
Last updated: 2026-06-15

Hardware compatibility with Linux RealTime PLC CODESYS Forge talk (Thread)
Hardware compatibility with Linux RealTime PLC
Last updated: 2026-06-15

JSONByteArrayWriter string result incorrect order CODESYS Forge talk (Thread)
JSONByteArrayWriter string result incorrect order
Last updated: 2026-06-15

Post by wistaro on Hardware compatibility with Linux RealTime PLC CODESYS Forge talk (Post)
Hello, I am currently using Codesys Control RTE Softmotion V3 to control my servo-drives in CAN, EtherCAT and PROFINET IRT. I am using a PC with Windows 10 with the following boards: - PEAK-CAN PCIe board (for CAN and Softmotion); - Hilscher CifX with firmware 3.X and SysDrv3s driver (for PROFINET IRT); - Realteak standard NIC (for EtherCAT). I would like to switch to Linux (Debian), because this computer is old, slow, and outdated (Windows 11 is far from being compatible with this computer). Before doing this, I would like to be sure of the compatility between my 3 boards and Codesys Control Linux SL. Otherwize, I will stay on Windows 10 and use it in an isolated environnement. Thanks for your advices. Regards,
Last updated: 2026-06-15

Forge πŸ‡¬πŸ‡§ CODESYS Forge talk (Discussion)
Discussions about CODESYS Forge projects and features of the CODESYS Forge website
Last updated: 2026-06-15

WebVisu scaling regression in V3.5.22 P2: frame size jumps when switching visualizations CODESYS Forge talk (Thread)
WebVisu scaling regression in V3.5.22 P2: frame size jumps when switching visualizations
Last updated: 2026-06-15

<< < 1 .. 3619 3620 3621 3622 3623 .. 3689 > >> (Page 3621 of 3689)

Showing results of 92211

Sort by relevance or date