void err_5err_6_ValueChange(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { uint state = this.err_5err_6.Value.UInt; //for (int i = 0; i < 16; i++) { // this.arrayErr3[i].Value = (state&(1<<i))>0?true:false; //} this.err3_0.Value = (state & (1 << 0)) > 0?true:false; this.err3_1.Value = (state & (1 << 1)) > 0?true:false; this.err3_2.Value = (state & (1 << 2)) > 0?true:false; this.err3_3.Value = (state & (1 << 3)) > 0?true:false; this.err3_4.Value = (state & (1 << 4)) > 0?true:false; this.err3_5.Value = (state & (1 << 5)) > 0?true:false; this.err3_6.Value = (state & (1 << 6)) > 0?true:false; this.err3_7.Value = (state & (1 << 7)) > 0?true:false; this.err3_8.Value = (state & (1 << 8)) > 0?true:false; this.err3_9.Value = (state & (1 << 9)) > 0?true:false; this.err3_10.Value = (state & (1 << 10)) > 0?true:false; this.err3_11.Value = (state & (1 << 11)) > 0?true:false; this.err3_12.Value = (state & (1 << 12)) > 0?true:false; this.err3_13.Value = (state & (1 << 13)) > 0?true:false; this.err3_14.Value = (state & (1 << 14)) > 0?true:false; this.err3_15.Value = (state & (1 << 15)) > 0?true:false; }
void err_3err_4_f2_ValueChange(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { uint state = this.err_3err_4_f2.Value.UInt; //for (int i = 0; i < 16; i++) { // this.arrayErr2[i].Value = (state&(1<<i))>0?true:false; //} this.err2_0_f2.Value = (state & (1 << 0)) > 0?true:false; this.err2_1_f2.Value = (state & (1 << 1)) > 0?true:false; this.err2_2_f2.Value = (state & (1 << 2)) > 0?true:false; this.err2_3_f2.Value = (state & (1 << 3)) > 0?true:false; this.err2_4_f2.Value = (state & (1 << 4)) > 0?true:false; this.err2_5_f2.Value = (state & (1 << 5)) > 0?true:false; this.err2_6_f2.Value = (state & (1 << 6)) > 0?true:false; this.err2_7_f2.Value = (state & (1 << 7)) > 0?true:false; this.err2_8_f2.Value = (state & (1 << 8)) > 0?true:false; this.err2_9_f2.Value = (state & (1 << 9)) > 0?true:false; this.err2_10_f2.Value = (state & (1 << 10)) > 0?true:false; this.err2_11_f2.Value = (state & (1 << 11)) > 0?true:false; this.err2_12_f2.Value = (state & (1 << 12)) > 0?true:false; this.err2_13_f2.Value = (state & (1 << 13)) > 0?true:false; this.err2_14_f2.Value = (state & (1 << 14)) > 0?true:false; this.err2_15_f2.Value = (state & (1 << 15)) > 0?true:false; }
void an_WaterLevel_ValueChanged(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { MessageBoxCF db = new MessageBoxCF(t_Level.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); if (!Globals.Tags.WaterLevelSwitch.Value) { db.Show(); Globals.Tags.Water_Heater.ResetTag(); } }
void PressChecker_ValueChanged(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { if (Globals.Tags.Cycle_Info.Value == 2 && Globals.Tags.InCycle.Value == 1) { this.Press_Button.IsEnabled = true; } else { this.Press_Button.IsEnabled = false; } }
//指示灯 void flicker_ValueChange(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { if (flicker.Value == 1) { DO_M.Value |= 1 << 0; } else if (flicker.Value == 0) { DO_M.Value &= ((1 << 0) ^ 0xff); } }
void SystemTagCommunicationErrorMessage_ValueChange(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { //通讯故障 Neo.ApplicationFramework.Tools.OpcClient.SystemDataItem item = (Neo.ApplicationFramework.Tools.OpcClient.SystemDataItem)sender; String msg = item.Value.String.ToLower(); if (msg.Contains("comm err")) { if (msg.Contains("filter")) { } } }
void AnalogNumeric_ValueChanged(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { if (!Globals.Tags.Testing_Proc.Value) { TrendViewer.ShowHistory("On"); TrendViewer1.ShowHistory("On"); this.Enable_Buttons(); } else if (Globals.Tags.Testing_Proc.Value) { TrendViewer.ShowHistory("Off"); TrendViewer1.ShowHistory("Off"); } }
void AnalogNumeric3_ValueChanged(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { string text = this.Text1.Text; string text2 = Globals.Tags.PressureCalibrationCounter.Value.ToString(); text = text + ' ' + text2; text = text + " sec ..."; this.Text.Text = text; if (Globals.Tags.PressureCalibrationCounter.Value == 0) { this.Rectangle2.Visible = false; this.Text.Visible = false; } }
void StatusChecker_ValueChanged(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { if (!Globals.Tags.Manuel_Washing.Value) { Test_Nav.IsEnabled = true; Gun_Button.IsEnabled = true; this.Home_Button.IsEnabled = true; Auto_Button.IsEnabled = true; if (!Globals.Tags.Drying_Proc.Value) { this.Setting_Button.IsEnabled = true; } } else if (Globals.Tags.Manuel_Washing.Value) { Auto_Button.IsEnabled = false; Test_Nav.IsEnabled = false; Setting_Button.IsEnabled = false; Gun_Button.IsEnabled = false; this.Home_Button.IsEnabled = false; } }
void StatusChecker_ValueChanged(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { if (!Globals.Tags.Automatic_Washing.Value) { Test_Nav.IsEnabled = true; Manuel_Button.IsEnabled = true; Gun_Button.IsEnabled = true; this.Rectangle1.Visible = false; this.Text3.Visible = false; if (!Globals.Tags.Drying_Proc.Value) { this.Setting_Button.IsEnabled = true; } } else if (Globals.Tags.Automatic_Washing.Value) { Manuel_Button.IsEnabled = false; Test_Nav.IsEnabled = false; Setting_Button.IsEnabled = false; Gun_Button.IsEnabled = false; this.Rectangle1.Visible = true; this.Text3.Visible = true; } }
void dis_usa_f2_ValueChange(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { dis_usa_173_f2.Value = dis_usa_f2.Value * 1.732; }
//设置从站地址寄存器 void index_ValueChange(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { Globals.Tags.slave_address.Value = Globals.Tags.index.Value; }