Ewon Technical Forum

Full Version: MEM Tags and Server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am having troubvle with the MEM section of my flexy. I have all the tags in either FINS or MODBUS working fine. I have configured the MEM tags wiht the topic of RET. I constantly have a Zero indication. My  comprehension of the manual, it says that MEM is like a storage in a sense. Is there any other programming needed for these MEM values to show a real number, or how long does it take for the MEM tags to register a value? For example, it has been a few days since I reprogrammed the tags. Long story short I lost all my tags because we had some com issues.
You can manually input a value in mem tags (in Value, view mode, double click on value column) or you can use them with Basic IDE. You can write a value (or a string) also from ViewON.
(19-05-2023, 04:35 PM)ziozetti Wrote: [ -> ]You can manually input a value in mem tags (in Value, view mode, double click on value column) or you can use them with Basic IDE. You can write a value (or a string) also from ViewON.

ok, Thank you. We are tryinmg to use them for monitoring other tags. Is this possible or do we absolutley require a basic strign to read or write MEM tags?
MEM tags are only "containers" for informations, someone has to write them. What do you mean for monitoring?
As an example, with script below you can save in mem tag MY_TAG_MEM the higher value of MY_TAG.

Code:
ONCHANGE "MY_TAG","GOTO MY_TAG_CHANGE"

MY_TAG_CHANGE:
IF MY_TAG@ >MY_TAG_MEM@ THEN
  MY_TAG_MEM@ = MY_TAG@
ENDIF
END
(19-05-2023, 04:54 PM)ziozetti Wrote: [ -> ]MEM tags are only "containers" for informations, someone has to write them. What do you mean for monitoring?
As an example, with script below you can save in mem tag MY_TAG_MEM the higher value of MY_TAG.

Code:
ONCHANGE "MY_TAG","GOTO MY_TAG_CHANGE"

MY_TAG_CHANGE:
IF MY_TAG@ >MY_TAG_MEM@ THEN
  MY_TAG_MEM@ = MY_TAG@
ENDIF
END

Oh ok, so basically its just a memory bank for saving the last value? why would we want to do this? I just assumed we are monitoring something because i thik we use them for calculations i believe. I never set up the site and i have never used the mem function so this is new to me. I appreciate the help.
In this view I'm using MEM tags to store (and show) data day by day: https://techforum.ewon.biz/thread-1801-p...ml#pid6286
At the end of the month values are added in order to obtain montly amount.
MEM tag is used also for trend range.
(19-05-2023, 05:31 PM)ziozetti Wrote: [ -> ]In this view I'm using MEM tags to store (and show) data day by day: https://techforum.ewon.biz/thread-1801-p...ml#pid6286
At the end of the month values are added in order to obtain montly amount.
MEM tag is used also for trend range.

Is this only done by Basic or can i run this in task manager as well?
(20-05-2023, 12:19 AM)ziozetti Wrote: [ -> ]Mainly basic:
https://techforum.ewon.biz/thread-1801-p...ml#pid6290

Ok, Thank you for the help again!