예제 #1
0
        public bool WriteZeroTest(Behavior behavior)
        {
            _jetTestConnection = new TestJetbusConnection(behavior, ipaddress, "Administrator", "wtx", delegate { return(true); });

            _wtxObj = new WTXJet(_jetTestConnection, 200, update);

            _wtxObj.Connect(this.OnConnect, 100);

            _wtxObj.Zero();     // Write in index(address) "6002/01" value 1869768058);

            if (_jetTestConnection.getDataBuffer.ContainsKey("6002/01") && _jetTestConnection.getDataBuffer.ContainsValue(1869768058))
            {
                return(true);
            }

            else
            {
                return(false);
            }
        }