Personal Data

Username:
justthefacts77
Joined:
2020-04-03 13:11:26

Projects

  • No projects to display.

User Activity

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

    My apologies for delay, been out.... So the issue was in the "getAttributeSingle" whic is immedialty exectured and the associated enable for this function via "xExecute" being TRUE was too fast for system and not recgonized. make the variable "XExecute" driven by another variable you can delay some, etc. before executing this command. that should do it. another ways is have xExecute initialzed to FLASE and in the debugger drive to TRUE

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

    Hmmm.here's the odd things (I have CSYS support so I also submitted to them and they said HTTPS worked ok on example project). Example project Web Client "out of the box" from CSYS states HTTP or HTTPS URL supported in the comments of the PRG. This implies (to me) no unique HTTPS Cert generation, etc. required. I type the HTTPS URL ( https://api.weather.gov/gridpoints/TBW/69,116/forecast/hourly ) in browser, displays fine. I run WinPLC project and "TCP Init Error" No external inputs to CFC Block...

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

    I ran "security Agent" which is the latest cert. gen approach. Thanks though.

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

    *Note: previous posts on this did not resolve my issue. Using latest IIOT Library download with Web Client and associated example project on WinPLC. Use the provided HTTP URL: sURL : STRING(1024) := 'http://httpbin.org/get' (works fine) Use my HTTPS URL: sURL : STRING(1024) := 'https://api.weather.gov/gridpoints/TBW/69,116/forecast/hourly' gives me "TCP_INIT_ERROR" Unable to initialize the TCP socket. All Libraries look good as provided with the example project and updated accordingly. ?- something...

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

    Ok so looking at "ParseJSON"...feed it in a String, then how do I access members of an Element, then an object in an Array, i.e. how does it determine which Type? "coord" : { "lon" : -82.4584, "lat" : 27.9475 }, "weather" : [ { "id" : 804, "main" : Clouds, "description" : overcast clouds, "icon" : 04d } ], ?- What would be the syntax to assign the element to a temp variable, for example temp := JSONVars.weather.main Appreciate any input, gonna have to do my due diligence on the coding aspects for...

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

    Thank you much TVM! My biggest challenge is to parse out an element from an Array, so i was thinking multiple steps: - Find Key for the Array location - Find item in Array via an Index lookup...etc. Anyway ill dig into it. I am looking at the JSON Utilies SL library right now but hampered by the fact my HTTP Client is outputting a WString (JSON) from the weather API and haven't figured out way to feed into the FBlks they offer. Thank you again!

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

    Hey Folks, I am obtaining data from a Weather API site using the "WEB_CLIENT" block (HTTP Get). JSON data comes in and is stored off in a "WSTRING" as follows: "{"coord":{"lon":-82.4584,"lat":27.9475},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"base":"stations","main":{"temp":72.48,"feels_like":71.6,"temp_min":68.05,"temp_max":76.15,"pressure":1023,"humidity":43},....." Pretty format... { "coord": { "lon": -82.4584, "lat": 27.9475 }, "weather": { "id": 804,...

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

    Resolved, Engaging the EIP Master immediatley (xExecute = TRUE)prior to the Slave being ready, timesouts fast. Made this variable conditional in code.

View All