private void recallTagValue(MoxaTag tag) { // read value, compare with current, rise event "OnChanged" if (this.OnDataChanged != null) { this.OnDataChanged(this, new TagEventArgs { Tag = tag }); } }
public MoxaIPProvider() { this.nodes = new List <MoxaIPNode>(); this.tags = new List <MoxaTag>(); this.bitInterval = 1000; this.bitTimer = new Timer(bitInterval); this.bitTimer.Enabled = false; this.bitTimer.Elapsed += new ElapsedEventHandler(timer_Elapsed); this.pollInterval = 300; this.pollTimer = new Timer(pollInterval); this.pollTimer.Enabled = false; this.pollTimer.Elapsed += new ElapsedEventHandler(pollTimer_Elapsed); this.nodeIsNotResponding += new EventHandler <NodeEventArgs>(MoxaIPProvider_nodeIsNotResponding); MoxaIPNode newNode = new MoxaIPNode("192.168.21.2", 501, 300, MXIO_ModuleType.E1212); this.nodes.Add(newNode); MoxaTag newTag = new MoxaTag(); this.tags.Add(newTag); }
public void AddTag(MoxaTag tag) { }
public void AddNode(MoxaTag node) { }