3/11/2021 11:58 PM | |||||||||||||||||||
Joined: 7/7/2010 Last visit: 5/17/2024 Posts: 14751 Rating: (2370)
|
Here's an example, but you can use F1-Help for example SCL code. Or download Siemens libraries, many of which use SCL - especially for the s7-1500.
Look for a Siemens json library so it can perform the extraction for you. I'm surprised you did not find references to such a library when looking at the Siemens MQTT library. What method did they recommend for parsing the json returned from the MQTT server?
|
||||||||||||||||||
science guy |
|||||||||||||||||||
3/12/2021 9:03 AM | |
Joined: 9/23/2005 Last visit: 5/17/2024 Posts: 4537 Rating: (699) |
Then you missed GetSymbolName and GetSymbolPath. BUT there's nothing like SetTagValueBySymbolName and this is your real problem. To make use of the mentioned and existing functions in the way you require (or rather in the way I think is closest to what you want) you should be able to iterate over your data. With such constructs like "DB_CONVEYOR_1.ManualRun" you won't be able anyhow. Other possibility is to check every single piece of your data against name received in MQTT message. Let's call it hard coded solution.
Or stay with OPC UA. |
Regards, |
|
9/2/2022 11:33 AM | |||||||||||||||||||
Joined: 8/6/2021 Last visit: 12/21/2022 Posts: 14 Rating: (0) |
Hi , I read your topic and I would like to understand how you did to format the message in format, |
||||||||||||||||||
Follow us on