Ewon TechForum
Providing technical solutions to technical requests

Creating Totaliser Within eWON
Josh Offline

I'm trying to create a tag in the eWON which would be a totaliser for a flow meter.

I have a standard flowmeter which the eWON downloads the flowrate from every 10 seconds, I'm trying to use the BASIC IDE to take this flowrate convert it to a volume and add it to a totaliser. I'm not good at the syntax though and because the system is already online and operating I'm worried about introducing bugs which could affect normal operations.

Firstly, is it possible to create another tag (or continuously update an existing tag) with the BASIC IDE that would behave the same as other tags? eg: downloadable with the datamailbox?

Secondly, where would be the best place to start for learning the syntax etc (I checked the eWON general reference)

Third, is there already an example of this on this forum that I missed?


AngelaT Offline
Ewon Distributor
Hi Josh,

You can create tags with the MEM IO server that behave just like regular tags - you can log them, set alarms, publish them, but they don't read from a controller.  They represent variables on the eWON itself.  I'd recommend spending a little time over at https://developer.ewon.biz/ You'll find the programming reference guide and many good code examples to get you started.

feedback Offline
Junior Member

Just insert simple script;

ONCHANGE "Test_Pulse", "IF Test_Pulse@ = 1 THEN Test@ = Test@ + 1"

simon Offline
eWON Support
Also, do not forget that you can set the topic to "RET" to retain your totalizer tag value even if the Ewon reboots.

Possibly Related Threads…
23-03-2020, 04:24 PM
Last Post: simon
24-01-2020, 09:45 PM
Last Post: tedsch
  eWON and ThingWorx Started by simon
13 Replies - 6.277 Views
17-01-2020, 05:55 PM
Last Post: ltitel
07-01-2020, 03:34 PM
Last Post: simon
22-10-2019, 10:42 AM
Last Post: simon
03-09-2019, 02:08 PM
Last Post: simon
13-08-2019, 04:06 PM
Last Post: gomzy04
23-07-2019, 05:31 PM
Last Post: simon
  MQTT eWon Flexy 205 Started by RFreist
3 Replies - 1.430 Views
18-07-2019, 12:30 PM
Last Post: simon
20-05-2019, 03:36 PM
Last Post: simon

Users browsing this thread:
1 Guest(s)

Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy