Ewon TechForum
Providing technical solutions to technical requests


Creating Totaliser Within eWON
Josh Offline
Member
#1
Hi,

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?

Thanks!
Josh
Reply

AngelaT Offline
Ewon Distributor
#2
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.
Reply

feedback Offline
Junior Member
#3
Hi,

Just insert simple script;

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

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



Possibly Related Threads…
24-01-2020, 09:45 PM
Last Post: tedsch
  eWON and ThingWorx Started by simon
13 Replies - 5.848 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.220 Views
18-07-2019, 12:30 PM
Last Post: simon
20-05-2019, 03:36 PM
Last Post: simon
16-05-2019, 07:18 PM
Last Post: ProAuto



Users browsing this thread:
1 Guest(s)



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