コード例 #1
0
        public bool CalibrationTest(Behavior behavior)
        {
            _jetTestConnection = new TestJetbusConnection(behavior, ipaddress, "Administrator", "wtx", delegate { return(true); });

            _dseObj = new DSEJet(_jetTestConnection, 200, Update);

            _dseObj.Connect(this.OnConnect, 100);

            _dseObj.AdjustNominalSignal();

            _dseObj.AdjustNominalSignalWithCalibrationWeight(1.5);

            if (
                _jetTestConnection.ReadIntegerFromBuffer(JetBusCommands.CIA461CalibrationWeight) == 15000 &&       // LFT_SCALE_CALIBRATION_WEIGHT = "6152/00"
                _jetTestConnection.ReadIntegerFromBuffer(JetBusCommands.CIA461ScaleCommand) == 1852596579          // CALIBRATE_NOMINAL_WEIGHT = 1852596579 // SCALE_COMMAND = "6002/01"
                )
            {
                return(true);
            }

            else
            {
                return(false);
            }
        }