Exemplo n.º 1
0
        private void btnNewStartTest_Click(object sender, EventArgs e)
        {
            //FormRemoteControl frmRemoteControl = new FormRemoteControl();
            //if (frmRemoteControl.ShowDialog() == DialogResult.Cancel)
            //{
            //    return;
            //}

            frmDebugInfo.C1_Update();
            if (DataOperate.MyTable.Rows[GlobalData.DataRowIndex]["药量"] is DBNull || DataOperate.MyTable.Rows[GlobalData.DataRowIndex]["药量"].ToString() == "")
            {
                DataOperate.MyTable.Rows[GlobalData.DataRowIndex]["药量"] = 30;
            }



            GlobalData.SmokeSensorMax    = 0;
            GlobalData.TemperatureMax    = 0;
            GlobalData.TemperatureOrigin = GlobalData.Temperature;
            GlobalData.SmokeSensorOrigin = GlobalData.SmokeSensor;
            GlobalData.timeStartTest     = DateTime.Now;
            frmDebugInfo.StartTest();
            GlobalData.serialPort.TxdCommand(0xFD);
            tmrAutoStopFire.Enabled = true;    //忘记停止试验,1分钟后自动关闭点火丝
            GlobalData.SystemStatus = SystemStatuses.BeTesting;
        }
Exemplo n.º 2
0
        private void btnNewStartTest_Click(object sender, EventArgs e)
        {
            // adamModbus.Modbus().ForceSingleCoil(iStart, iOnOff);
            //FormRemoteControl frmRemoteControl = new FormRemoteControl();
            //if (frmRemoteControl.ShowDialog() == DialogResult.Cancel)
            //{
            //    return;
            //}

            frmDebugInfo.C1_Update();
            if (DataOperate.MyTable.Rows[GlobalData.DataRowIndex]["药量"] is DBNull || DataOperate.MyTable.Rows[GlobalData.DataRowIndex]["药量"].ToString() == "")
            {
                DataOperate.MyTable.Rows[GlobalData.DataRowIndex]["药量"] = 30;
            }
            {
                GlobalData.SmokeSensorMax    = 0;
                GlobalData.TemperatureMax    = 0;
                GlobalData.TemperatureOrigin = GlobalData.Temperature;
                GlobalData.SmokeSensorOrigin = GlobalData.SmokeSensor;
                GlobalData.timeStartTest     = DateTime.Now;
                frmDebugInfo.StartTest();
                control6024.StartESD();
                tmrAutoStopFire.Enabled = true;//
                GlobalData.SystemStatus = SystemStatuses.BeTesting;
            }
        }
Exemplo n.º 3
0
        private void btnNewStartTest_Click(object sender, EventArgs e)
        {
            plcZM.Release();

            frmDebugInfo.C1_Update();
            if (DataOperate.MyTable.Rows[GlobalData.DataRowIndex]["药量"] is DBNull || DataOperate.MyTable.Rows[GlobalData.DataRowIndex]["药量"].ToString() == "")
            {
                DataOperate.MyTable.Rows[GlobalData.DataRowIndex]["药量"] = 30;
            }

            {
                GlobalData.SmokeSensorMax    = 0;
                GlobalData.TemperatureMax    = 0;
                GlobalData.TemperatureOrigin = GlobalData.Temperature;
                GlobalData.SmokeSensorOrigin = GlobalData.SmokeSensor;
                GlobalData.timeStartTest     = DateTime.Now;
                frmDebugInfo.StartTest();
                GlobalData.SystemStatus = SystemStatuses.BeTesting;
            }
        }