All Neighborhoods

CODESYS Talk

    CODESYS Forge

  • YIN YIN posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Your reading matches what I ran into on a similar setup. The plain Symbol Configuration is handy for reading and writing variables, but it doesn't expose a real OPC UA method, so if the client has to use the Method service, you do need an Information Model and a method node mapped to your FB or program method. On the NodeIds, I wouldn't hard-code them in the client. In my own projects they stayed put when I only rebuilt and downloaded without touching the model, but I treat that as convenient, not...

  • Reinier Geers posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Thanks, What is Parsing the JSON Properly ? I dont know why there is JSON. Its way to mutch Data on a network. I like talking as a woman . 10 words when men only need one.

  • YIN YIN posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hi Reinier, That moving position is normal, and looking at your screenshot I think I can see why. Your arr_tekst chunks are fixed-size slices of the whole answer, so the same key lands at a different offset in every chunk. It can even be cut in half across two chunks, your second chunk starts mid-word with "arketPrices". So a search inside one chunk only tells you where the key sits in that chunk, and nothing more. Nothing is wrong with FIND itself, the positions are just not comparable from one...

  • YIN YIN posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hi lucw650, Short version: on its own, aVar is one variable, and in OPC UA terms it is one node. The 100 elements live inside that one node, so reading the whole array in one go is a single read of a single node. Where it gets confusing, and I tripped over this myself the first time, is that a client can also address the elements one by one, aVar[1], aVar[2] and so on. Each of those subscriptions is then handled separately, and some servers and OPC client licences count every subscribed element as...

  • YIN YIN posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    WREPLACE (like most Standard library string functions) works with WSTRING(255), so the result gets cut at 255 characters no matter how big your target variable is. Your second line stops right about there. Since the date always has the same length you don't need REPLACE at all. Find it once and overwrite the 10 characters in place: nPos := WFIND(sQuery, "(date:"); IF nPos > 0 THEN nPos := nPos + 8; // skip "(date:" plus the escaped quote, adjust to your literal SysMemCpy(pDest := ADR(sQuery) + TO_UDINT(nPos...