cmseaton42 / node-ethernet-ip

A Lightweight Ethernet/IP API written to interface with Rockwell ControlLogix/CompactLogix Controllers.
MIT License
265 stars 106 forks source link

Keep values current even if value hasn't changed. #15

Closed patrickjmcd closed 6 years ago

patrickjmcd commented 6 years ago

Add a parameter to the Tag class to allow values to be updated even if the value has not changed.

Current Behavior

Currently, if a tag value is initialized or changed, the Tag emits an Initialized or Changed event. If values are being graphed and the value has not changed, this could result in graphs looking really weird. It also could seem to the user that the data connection has been broken.

Expected Behavior

In order to keep values current, implement a KeepAlive event to periodically (but infrequently) update the stored value of the tag based on a keepAlive property of the tag.

Possible Solution (Optional)

Implement a KeepAlive event to periodically (but infrequently) update the stored value of the tag based on a keepAlive property of the tag.

Context

Graphs that include values that don't change look weird.

cmseaton42 commented 6 years ago

Addressed with #16