# Ethernet enabled Weight Scale Recomendations

**URL:** <https://forum.inductiveautomation.com/t/ethernet-enabled-weight-scale-recomendations/31294>\
**Category:** General Discussion\
**Tags:** ignition79\
**Created:** [January 15, 2020, 1:59pm UTC](https://forum.inductiveautomation.com/t/ethernet-enabled-weight-scale-recomendations/31294 "2020-01-15T13:59:07Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 8, 2020, 3:26pm UTC](https://forum.inductiveautomation.com/t/ethernet-enabled-weight-scale-recomendations/31294/9 "2020-09-08T15:26:11Z")

</div>

Dug this out. It depends on the background thread management (clientserial.py) described in this post:

> [@How to listen serial data without interruption](http://forum.inductiveautomation.com/t/how-to-listen-serial-data-without-interruption/15709):
>
> I am using serial module to get data from a rs232 device, and the device is could only send its data to serial port ,but could not accept any request. the problem is I don’t know when the data will be send,so I need to listen the serial constantly to avoid lose any data. but unfortunately, there are no any event trigger on serial component in ignition . dose anyone meet the same problem and could give some help? (I’m using ignition 7.7.5) I put scripts on a timer , but datas always los…

The above can be modified to run in the gateway with regular tags instead of client tags... I recommend that for most processes. It also needs an update to use the LifeCycle module instead of `system.util.getGlobals()`. See this topic for details:

> [@system.util.getGlobals() not persisted across Designer Save](http://forum.inductiveautomation.com/t/system-util-getglobals-not-persisted-across-designer-save/33869/14):
>
> Ok. New module “Life Cycle” w/ system.util.persistent(name) utility function. For v7.9: [https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121825.modl](https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121825.modl) For v8.0: [https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121920-v8.modl](https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121920-v8.modl) Test with a project script like this: # project script "Life" g = system.util.persistent('LifeTest') count = g.setdefault('editCount', -1) count += 1 g['editCount'] = count def editCount(): return count Print the return from Life.editCou…

So, prereqs satisfied, this is the script, lightly edited for NDA compliance and copyright statement:

[https://www.automation-pros.com/ignition/ethernetMettlerToledo.py](https://www.automation-pros.com/ignition/ethernetMettlerToledo.py)

Have fun!

---

_[View the full topic](https://forum.inductiveautomation.com/t/ethernet-enabled-weight-scale-recomendations/31294)._
