24.03.2018, 20:29 (This post was last modified: 24.03.2018, 20:48 by Mrinj.)
Hi,
Please excuse the question but I’m newbie who’s been reading and testing and still can not connect the dotts:
How to read/write % value to a virtual object 32/1/1 from a custom created java script (in notepad), saved as html, uploaded as image to Wizer and imported in frame/url in a visualization? Do I need to have a starage.lp for multiple addresses?
Can someone please replay with a short step by step guide or a simple js example?
Best,
I've been reading post (probably old), testing and maybe that's why is confusing for me. Excuse me please!
My plan was to enter a number and save/read the value to an object (in %) from an image (probably with script) that is embedded in visualization, frame and via /scada/resources/icons/image.html. I know this can be done in visualization, object and then by choosing the object address, but the idea is that multiple objects can be saved.
How can this be done with Custom JS?
Probably it will be best and easiest with normal value in visu.
And probably I've been reading & trying to hard to understand the principles of JS and Wiser.
Thanks for your time, advice and help!
I have another question.
I want to get "send fixed value" data from object when i click on element.
I know that to know the object, the code is el.data("object"), and for status object, el.data("status-object"), but i don't know others.
(30.04.2019, 11:59)admin Wrote: Fixed value is not stored in data attributes. Why do you need this feature?
For the same example that I explained before. I have seen that by modifying the example code for dimming lights, I can use it for my case. But I wanted to make a generic code, because the same object is used for many actions. I wanted to put the sending value in "send fixed value" in each object and take it in JS.
The button's to control the volume are in the LM visualisation, and i the solution that you give me, I have to create a JS to simulate the push button (1 on press, 0 on release) too.