6/14/2021 11:01 AM | |
Posts: 5 Rating:
|
I am trying to write my own Edge app for a Unified Comfort Panel.For Creating the app I follow the example of "Creating and managing Edge apps using the example of the "SendMail" app" (https://support.industry.siemens.com/cs/ww/en/view/109778780) So I created a TIA Project with the HMI tags "tag3", "tag4", "tag5" (all as WString) which are displayed in IO fields. With my IDE I wrote some code in JavaScript with the intention to write and process values into/from the IO fields. After connecting to runtime with OpenPip API, I tried to display a value I defined in my code. let tag3 = 19; if(tagsList) { for(const tagData of tagsList) { tagsReadCompleted.push(tagData.Name); if(tagData.tagData === "tag3") { console.log("tag3 is:" + tag3); }... However, this does not work, and the values are not displayed on my Unified Panel. Any ideas, what went wrong or how I could achieve my idea? The full code is attached as .txt AttachmentJavaScript Code.txt (922 Downloads) |
Last edited by: Jen_Moderator at: 06/24/2021 08:48:27Optimized link. |
|
Follow us on