Personal Data

Username:
tvm
Joined:
2018-11-06 03:41:30+00:00
Location:
Canada / EST
Gender:
Male

Projects

Skills

  • JavaScript
  • Continuous Function Chart
  • Structured Text
  • Sequencial Function Chart

Personal Tools

User Activity

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Use the StringUtils library. It uses pointers to the string, so you can have any length. https://help.codesys.com/webapp/idx-StringUtils-lib;product=StringUtils;version=3.5.15.0

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Use the StringUtils library. It uses pointers to the string, so you can have any length of string. https://help.codesys.com/webapp/idx-StringUtils-lib;product=StringUtils;version=3.5.15.0

  • Posted a comment on discussion Visualization πŸ‡¬πŸ‡§ on CODESYS Forge

    I saw something in the Visu Value Change example the other day that might help you. https://forge.codesys.com/prj/codesys-example/visu-value-chan/home/Home/ Look in the FB_ValueChangedListener.ValueChanged method. I haven't tried it yet.

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    I'm not clear on exactly what you're trying to do here, but creating a reference to the interface is not necessary. Just make your property of type IEngineeringValue, and in your property do LiveValue:= _liveValue the interface acts kind of a like a reference already

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Here's an example of one of the structures I was using with Open Weather Map: TYPE OWM_WEATHER : STRUCT id: JSONVAR; main: JSONVAR; description: JSONVAR; icon: JSONVAR; END_STRUCT END_TYPE Weather: OWM_WEATHER; You'll have to create structures and arrays that match the expected result from whichever API you're using. Order doesn't matter, but the structure does. (But parsing will be faster if the order matches as closely as possible). So then, for example, if I want to get the description, I could...

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    well, for what it's worth, the JSON library uses STRING variables as well, but feel free to modify it. The main conversion function blocks uses a pointer to the string: JSONString: POINTER TO ARRAY[1..GPL_JSON.MAX_JSON_STRING] OF BYTE; It might be as easy as changing the BYTE to a WORD, because after that it uses array indexes, not pointer math. But I haven't tested that.

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    well, for what it's worth, the JSON library uses STRING variables as well, but feel free to modify it. The main conversion function blocks uses a pointer to the string: JSONString: POINTER TO ARRAY[1..GPL_JSON.MAX_JSON_STRING] OF BYTE; It might be as easy as changing the BYTE to a WORD, because after that it uses array indexes, not pointers. But I haven't tested that.

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Take a look at this library: https://forge.codesys.com/lib/pro-json/home/Home/ I created it and did most of the testing with open weather map, which looks like what you're using as well.

View All