예제 #1
0
        private void recallTagValue(MoxaTag tag)
        {
            // read value, compare with current, rise event "OnChanged"

            if (this.OnDataChanged != null)
            {
                this.OnDataChanged(this, new TagEventArgs {
                    Tag = tag
                });
            }
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void AddTag(MoxaTag tag)
 {
 }
예제 #4
0
 public void AddNode(MoxaTag node)
 {
 }