diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/DeviceDetailEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/DeviceDetailEntity.cs new file mode 100644 index 0000000..540a7ee --- /dev/null +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/DeviceDetailEntity.cs @@ -0,0 +1,564 @@ +using Mesnac.Controls.Base; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Mesnac.Controls.Default; +using Mesnac.Controls.ChemicalWeighing; +using Mesnac.Controls.Feeding; + +namespace Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity +{ + public class DeviceDetailEntity + { + public MCLabel DAMode { get; set; } + public MCLabel DAStatus { get; set; } + public MCLabel DABatch { get; set; } + public MCLabel DAStep { get; set; } + public MCLabel DAStepCode { get; set; } + public MCLabel DATotalTime { get; set; } + public MCLabel DAStepTime { get; set; } + public MCLabel DATemperature { get; set; } + public MCLabel DASpeed { get; set; } + public MCLabel DBMode { get; set; } + public MCLabel DBStatus { get; set; } + public MCLabel DBBatch { get; set; } + public MCLabel DBStep { get; set; } + public MCLabel DBStepCode { get; set; } + public MCLabel DBTotalTime { get; set; } + public MCLabel DBStepTime { get; set; } + public MCLabel DBTemperature { get; set; } + public MCLabel DBSpeed { get; set; } + public MCLabel DCMode { get; set; } + public MCLabel DCStatus { get; set; } + public MCLabel DCBatch { get; set; } + public MCLabel DCStep { get; set; } + public MCLabel DCStepCode { get; set; } + public MCLabel DCTotalTime { get; set; } + public MCLabel DCStepTime { get; set; } + public MCLabel DCTemperature { get; set; } + public MCLabel DCSpeed { get; set; } + public MCLabel DDMode { get; set; } + public MCLabel DDStatus { get; set; } + public MCLabel DDBatch { get; set; } + public MCLabel DDStep { get; set; } + public MCLabel DDStepCode { get; set; } + public MCLabel DDTotalTime { get; set; } + public MCLabel DDStepTime { get; set; } + public MCLabel DDTemperature { get; set; } + public MCLabel DDSpeed { get; set; } + + public MCLabel WAMode { get; set; } + public MCLabel WAStatus { get; set; } + public MCLabel WABatch { get; set; } + public MCLabel WAStep { get; set; } + public MCLabel WAStepCode { get; set; } + public MCLabel WATotalTime { get; set; } + public MCLabel WAStepTime { get; set; } + public MCLabel WATemperature { get; set; } + public MCLabel WASpeed { get; set; } + public MCLabel WBMode { get; set; } + public MCLabel WBStatus { get; set; } + public MCLabel WBBatch { get; set; } + public MCLabel WBStep { get; set; } + public MCLabel WBStepCode { get; set; } + public MCLabel WBTotalTime { get; set; } + public MCLabel WBStepTime { get; set; } + public MCLabel WBTemperature { get; set; } + public MCLabel WBSpeed { get; set; } + public MCLabel WCMode { get; set; } + public MCLabel WCStatus { get; set; } + public MCLabel WCBatch { get; set; } + public MCLabel WCStep { get; set; } + public MCLabel WCStepCode { get; set; } + public MCLabel WCTotalTime { get; set; } + public MCLabel WCStepTime { get; set; } + public MCLabel WCTemperature { get; set; } + public MCLabel WCSpeed { get; set; } + public MCLabel WDMode { get; set; } + public MCLabel WDStatus { get; set; } + public MCLabel WDBatch { get; set; } + public MCLabel WDStep { get; set; } + public MCLabel WDStepCode { get; set; } + public MCLabel WDTotalTime { get; set; } + public MCLabel WDStepTime { get; set; } + public MCLabel WDTemperature { get; set; } + public MCLabel WDSpeed { get; set; } + public MCLabel WEMode { get; set; } + public MCLabel WEStatus { get; set; } + public MCLabel WEBatch { get; set; } + public MCLabel WEStep { get; set; } + public MCLabel WEStepCode { get; set; } + public MCLabel WETotalTime { get; set; } + public MCLabel WEStepTime { get; set; } + public MCLabel WETemperature { get; set; } + public MCLabel WESpeed { get; set; } + public MCLabel WFMode { get; set; } + public MCLabel WFStatus { get; set; } + public MCLabel WFBatch { get; set; } + public MCLabel WFStep { get; set; } + public MCLabel WFStepCode { get; set; } + public MCLabel WFTotalTime { get; set; } + public MCLabel WFStepTime { get; set; } + public MCLabel WFTemperature { get; set; } + public MCLabel WFSpeed { get; set; } + public MCLabel WGMode { get; set; } + public MCLabel WGStatus { get; set; } + public MCLabel WGBatch { get; set; } + public MCLabel WGStep { get; set; } + public MCLabel WGStepCode { get; set; } + public MCLabel WGTotalTime { get; set; } + public MCLabel WGStepTime { get; set; } + public MCLabel WGTemperature { get; set; } + public MCLabel WGSpeed { get; set; } + public MCLabel WHMode { get; set; } + public MCLabel WHStatus { get; set; } + public MCLabel WHBatch { get; set; } + public MCLabel WHStep { get; set; } + public MCLabel WHStepCode { get; set; } + public MCLabel WHTotalTime { get; set; } + public MCLabel WHStepTime { get; set; } + public MCLabel WHTemperature { get; set; } + public MCLabel WHSpeed { get; set; } + + public MCLabel WACurrent { get; set; } + public MCLabel WAPressure { get; set; } + public MCLabel WBCurrent { get; set; } + public MCLabel WBPressure { get; set; } + public MCLabel WCCurrent { get; set; } + public MCLabel WCPressure { get; set; } + public MCLabel WDCurrent { get; set; } + public MCLabel WDPressure { get; set; } + public MCLabel WECurrent { get; set; } + public MCLabel WEPressure { get; set; } + public MCLabel WFCurrent { get; set; } + public MCLabel WFPressure { get; set; } + public MCLabel WGCurrent { get; set; } + public MCLabel WGPressure { get; set; } + public MCLabel WHCurrent { get; set; } + public MCLabel WHPressure { get; set; } + + + + public MCLabel GAMode { get; set; } + public MCLabel GAStatus { get; set; } + public MCLabel GABatch { get; set; } + public MCLabel GAStep { get; set; } + public MCLabel GAStepCode { get; set; } + public MCLabel GATotalTime { get; set; } + public MCLabel GAStepTime { get; set; } + public MCLabel GATemperature { get; set; } + public MCLabel GASpeed { get; set; } + public MCLabel GBMode { get; set; } + public MCLabel GBStatus { get; set; } + public MCLabel GBBatch { get; set; } + public MCLabel GBStep { get; set; } + public MCLabel GBStepCode { get; set; } + public MCLabel GBTotalTime { get; set; } + public MCLabel GBStepTime { get; set; } + public MCLabel GBTemperature { get; set; } + public MCLabel GBSpeed { get; set; } + public MCLabel GCMode { get; set; } + public MCLabel GCStatus { get; set; } + public MCLabel GCBatch { get; set; } + public MCLabel GCStep { get; set; } + public MCLabel GCStepCode { get; set; } + public MCLabel GCTotalTime { get; set; } + public MCLabel GCStepTime { get; set; } + public MCLabel GCTemperature { get; set; } + public MCLabel GCSpeed { get; set; } + public MCLabel GDMode { get; set; } + public MCLabel GDStatus { get; set; } + public MCLabel GDBatch { get; set; } + public MCLabel GDStep { get; set; } + public MCLabel GDStepCode { get; set; } + public MCLabel GDTotalTime { get; set; } + public MCLabel GDStepTime { get; set; } + public MCLabel GDTemperature { get; set; } + public MCLabel GDSpeed { get; set; } + public MCLabel GEMode { get; set; } + public MCLabel GEStatus { get; set; } + public MCLabel GEBatch { get; set; } + public MCLabel GEStep { get; set; } + public MCLabel GEStepCode { get; set; } + public MCLabel GETotalTime { get; set; } + public MCLabel GEStepTime { get; set; } + public MCLabel GETemperature { get; set; } + public MCLabel GESpeed { get; set; } + public MCLabel GFMode { get; set; } + public MCLabel GFStatus { get; set; } + public MCLabel GFBatch { get; set; } + public MCLabel GFStep { get; set; } + public MCLabel GFStepCode { get; set; } + public MCLabel GFTotalTime { get; set; } + public MCLabel GFStepTime { get; set; } + public MCLabel GFTemperature { get; set; } + public MCLabel GFSpeed { get; set; } + public MCLabel GGMode { get; set; } + public MCLabel GGStatus { get; set; } + public MCLabel GGBatch { get; set; } + public MCLabel GGStep { get; set; } + public MCLabel GGStepCode { get; set; } + public MCLabel GGTotalTime { get; set; } + public MCLabel GGStepTime { get; set; } + public MCLabel GGTemperature { get; set; } + public MCLabel GGSpeed { get; set; } + public MCLabel GHMode { get; set; } + public MCLabel GHStatus { get; set; } + public MCLabel GHBatch { get; set; } + public MCLabel GHStep { get; set; } + public MCLabel GHStepCode { get; set; } + public MCLabel GHTotalTime { get; set; } + public MCLabel GHStepTime { get; set; } + public MCLabel GHTemperature { get; set; } + public MCLabel GHSpeed { get; set; } + + public StateButton WatchDog { get; set; } + + public SystemStateShow EMStop { get; set; } + + public SwitchLight Vessel_1_HighLevel { get; set; } + public SwitchLight Vessel_2_HighLevel { get; set; } + public SwitchLight Vessel_3_HighLevel { get; set; } + public SwitchLight Vessel_4_HighLevel { get; set; } + public SwitchLight Vessel_5_HighLevel { get; set; } + public SwitchLight Vessel_1_LowLevel { get; set; } + public SwitchLight Vessel_2_LowLevel { get; set; } + public SwitchLight Vessel_3_LowLevel { get; set; } + public SwitchLight Vessel_4_LowLevel { get; set; } + public SwitchLight Vessel_5_LowLevel { get; set; } + public SwitchLight highLevel_D1 { get; set; } + public SwitchLight highLevel_D2 { get; set; } + public SwitchLight highLevel_D3 { get; set; } + public SwitchLight highLevel_D4 { get; set; } + public SwitchLight highLevel_D5 { get; set; } + public SwitchLight highLevel_D6 { get; set; } + public SwitchLight highLevel_D7 { get; set; } + public SwitchLight highLevel_D8 { get; set; } + public SwitchLight highLevel_D9 { get; set; } + public SwitchLight highLevel_D10 { get; set; } + public SwitchLight highLevel_D11 { get; set; } + public SwitchLight highLevel_D12 { get; set; } + public SwitchLight lowLevel_D1 { get; set; } + public SwitchLight lowLevel_D2 { get; set; } + public SwitchLight lowLevel_D3 { get; set; } + public SwitchLight lowLevel_D4 { get; set; } + public SwitchLight lowLevel_D5 { get; set; } + public SwitchLight lowLevel_D6 { get; set; } + public SwitchLight lowLevel_D7 { get; set; } + public SwitchLight lowLevel_D8 { get; set; } + public SwitchLight lowLevel_D9 { get; set; } + public SwitchLight lowLevel_D10 { get; set; } + public SwitchLight lowLevel_D11 { get; set; } + public SwitchLight lowLevel_D12 { get; set; } + public SwitchLight Hopper_1_HighLevel { get; set; } + public SwitchLight Hopper_2_HighLevel { get; set; } + public SwitchLight Hopper_3_HighLevel { get; set; } + public SwitchLight Hopper_4_HighLevel { get; set; } + public SwitchLight Hopper_1_LowLevel { get; set; } + public SwitchLight Hopper_2_LowLevel { get; set; } + public SwitchLight Hopper_3_LowLevel { get; set; } + public SwitchLight Hopper_4_LowLevel { get; set; } + public SwitchLight WScale_1_HighLevel { get; set; } + public SwitchLight WScale_2_HighLevel { get; set; } + public SwitchLight WScale_3_HighLevel { get; set; } + public SwitchLight WScale_4_HighLevel { get; set; } + public SwitchLight WScale_1_LowLevel { get; set; } + public SwitchLight WScale_2_LowLevel { get; set; } + public SwitchLight WScale_3_LowLevel { get; set; } + public SwitchLight WScale_4_LowLevel { get; set; } + public SwitchLight DMWETER1 { get; set; } + public SwitchLight DMWETER11 { get; set; } + public SwitchLight DMWETER2 { get; set; } + public SwitchLight DMWETER22 { get; set; } + public SwitchLight DMWETER3 { get; set; } + public SwitchLight DMWETER33 { get; set; } + public SwitchLight DMWETER4 { get; set; } + public SwitchLight DMWETER44 { get; set; } + public SwitchLight DMWETER5 { get; set; } + public SwitchLight DMWETER55 { get; set; } + public SwitchLight DMWETER6 { get; set; } + public SwitchLight DMWETER66 { get; set; } + public SwitchLight DMWETER7 { get; set; } + public SwitchLight DMWETER77 { get; set; } + public SwitchLight DMWETER8 { get; set; } + public SwitchLight DMWETER88 { get; set; } + + public MCLabel topPressure_V1 { get; set; } + public MCLabel topPressure_V2 { get; set; } + public MCLabel topPressure_V3 { get; set; } + public MCLabel topPressure_V4 { get; set; } + public MCLabel topPressure_V5 { get; set; } + public MCLabel Vessel_1_ActWeight { get; set; } + public MCLabel Vessel_2_ActWeight { get; set; } + public MCLabel Vessel_3_ActWeight { get; set; } + public MCLabel Vessel_4_ActWeight { get; set; } + public MCLabel Vessel_5_ActWeight { get; set; } + public MCLabel conveyV1_PV { get; set; } + public MCLabel conveyV2_PV { get; set; } + public MCLabel conveyV3_PV { get; set; } + public MCLabel conveyV5_PV { get; set; } + public MCLabel mainPress_V1_ActualValue { get; set; } + public MCLabel mainPress_V2_ActualValue { get; set; } + public MCLabel mainPress_V3_ActualValue { get; set; } + public MCLabel mainPress_V5_ActualValue { get; set; } + public MCLabel purgeV1_PV { get; set; } + public MCLabel purgeV2_PV { get; set; } + public MCLabel purgeV3_PV { get; set; } + public MCLabel purgeV5_PV { get; set; } + public MCLabel WScale_1_ActWeight { get; set; } + public MCLabel WScale_2_ActWeight { get; set; } + public MCLabel WScale_3_ActWeight { get; set; } + public MCLabel WScale_4_ActWeight { get; set; } + public MCLabel DM1DRY1_ACT_Speed { get; set; } + public MCLabel DM1DRY2_ACT_Speed { get; set; } + public MCLabel DM1DRY3_ACT_Speed { get; set; } + public MCLabel DM1DRY4_ACT_Speed { get; set; } + public MCLabel Hopper_1_ActWeight { get; set; } + public MCLabel Hopper_2_ActWeight { get; set; } + public MCLabel Hopper_3_ActWeight { get; set; } + public MCLabel Hopper_4_ActWeight { get; set; } + public MCLabel DM1GEM { get; set; } + public MCLabel DM2GEM { get; set; } + public MCLabel DM3GEM { get; set; } + public MCLabel DM4GEM { get; set; } + public MCLabel DM5GEM { get; set; } + public MCLabel DM6GEM { get; set; } + public MCLabel DM7GEM { get; set; } + public MCLabel DM8GEM { get; set; } + public MCLabel DM2ASF01 { get; set; } + public MCLabel DM2BSF01 { get; set; } + public MCLabel DM2CSF01 { get; set; } + public MCLabel DM2DSF01 { get; set; } + + public RSCREWBIG DM1ASF01 { get; set; } + public RSCREWBIG DM1BSF01 { get; set; } + public LSCREWBIG DM1CSF01 { get; set; } + public LSCREWBIG DM1DSF01 { get; set; } + public RSCREWBIG DM1ESF01 { get; set; } + public LSCREWBIG DM1FSF01 { get; set; } + public RSCREWBIG DM1GSF01 { get; set; } + public RSCREWBIG DM1HSF01 { get; set; } + public LSCREWBIG DM1ISF01 { get; set; } + public LSCREWBIG DM1JSF01 { get; set; } + public RSCREWBIG DM1KSF01 { get; set; } + public RSCREWBIG DM1LSF01 { get; set; } + public LSCREWBIG DM1MSF01 { get; set; } + public LSCREWBIG DM1NSF01 { get; set; } + public RSCREWBIG DM1OSF01 { get; set; } + public LSCREWBIG DM2ASF01L { get; set; } + public LSCREWBIG DM2BSF01L { get; set; } + public LSCREWBIG DM2CSF01L { get; set; } + public LSCREWBIG DM2DSF01L { get; set; } + public RSCREWBIG DM2ASF01R { get; set; } + public RSCREWBIG DM2BSF01R { get; set; } + public RSCREWBIG DM2CSF01R { get; set; } + public RSCREWBIG DM2DSF01R { get; set; } + + public Jzf AS1BLT01 { get; set; } + public Jzf AS1BLT02 { get; set; } + public Jzf AS1BLT03 { get; set; } + public Jzf AS1BLT04 { get; set; } + public Jzf AS1BLT05 { get; set; } + public Jzf AS2BLT01 { get; set; } + public Jzf AS2BLT02 { get; set; } + public Jzf AS2BLT03 { get; set; } + public Jzf AS2BLT04 { get; set; } + public Jzf AS2BLT05 { get; set; } + public Jzf AS3BLT01 { get; set; } + public Jzf AS3BLT02 { get; set; } + public Jzf AS3BLT03 { get; set; } + public Jzf AS3BLT04 { get; set; } + public Jzf AS3BLT05 { get; set; } + public Jzf AS4BLT01 { get; set; } + public Jzf AS4BLT03 { get; set; } + public Jzf AS5BLT01 { get; set; } + public Jzf AS5BLT02 { get; set; } + public Jzf AS5BLT03 { get; set; } + public Jzf AS5BLT04 { get; set; } + public Jzf AS5BLT05 { get; set; } + public Jzf AS2PCP01 { get; set; } + public Jzf AS2PCP02 { get; set; } + public Jzf AS2PCP03 { get; set; } + public Jzf AS1OIS01 { get; set; } + public Jzf AS1OIS02 { get; set; } + public Jzf AS1OIS03 { get; set; } + public Jzf AS2OIS01 { get; set; } + public Jzf AS2OIS02 { get; set; } + public Jzf AS2OIS03 { get; set; } + public Jzf AS3OIS01 { get; set; } + public Jzf AS3OIS02 { get; set; } + public Jzf AS3OIS03 { get; set; } + public Jzf AS4OIS01 { get; set; } + public Jzf AS4OIS02 { get; set; } + public Jzf AS4OIS03 { get; set; } + public Jzf AS1GET01 { get; set; } + public Jzf AS1GET02 { get; set; } + public Jzf AS2GET01 { get; set; } + public Jzf AS2GET02 { get; set; } + public Jzf AS3GET01 { get; set; } + public Jzf AS3GET02 { get; set; } + public Jzf AS4GET01 { get; set; } + public Jzf AS4GET02 { get; set; } + public Jzf AS5GET01 { get; set; } + public Jzf AS5GET02 { get; set; } + public Jzf AS6GET01 { get; set; } + public Jzf AS6GET02 { get; set; } + public Jzf AS7GET01 { get; set; } + public Jzf AS7GET02 { get; set; } + public Jzf AS8GET01 { get; set; } + public Jzf AS8GET02 { get; set; } + + public Fan DM1ADF01 { get; set; } + public Fan DM1BDF01 { get; set; } + public Fan DM1CDF01 { get; set; } + public Fan DM1DDF01 { get; set; } + public Fan DM1EDF01 { get; set; } + public Fan DM1FDF01 { get; set; } + public Fan DM1GDF01 { get; set; } + public Fan DM1HDF01 { get; set; } + public Fan DM1IDF01 { get; set; } + public Fan DM1JDF01 { get; set; } + public Fan DM1KDF01 { get; set; } + public Fan DM1LDF01 { get; set; } + public Fan DM1ADB01 { get; set; } + public Fan DM1BDB01 { get; set; } + public Fan DM1CDB01 { get; set; } + public Fan DM1DDB01 { get; set; } + public Fan DM1EDB01 { get; set; } + public Fan DM1FDB01 { get; set; } + public Fan DM1GDB01 { get; set; } + public Fan DM1HDB01 { get; set; } + public Fan DM1IDB01 { get; set; } + public Fan DM1JDB01 { get; set; } + public Fan DM1KDB01 { get; set; } + public Fan DM1LDB01 { get; set; } + public Fan DM1DRY1_Running { get; set; } + public Fan DM1DRY2_Running { get; set; } + public Fan DM1DRY3_Running { get; set; } + public Fan DM1DRY4_Running { get; set; } + public Fan PM3ADF01 { get; set; } + + public ControlCabinet PM1ADF01 { get; set; } + public ControlCabinet PM1BDF01 { get; set; } + public ControlCabinet PM1CDF01 { get; set; } + public ControlCabinet PM1DDF01 { get; set; } + public ControlCabinet PM1EDF01 { get; set; } + public ControlCabinet PM1FDF01 { get; set; } + public ControlCabinet PM1GDF01 { get; set; } + public ControlCabinet PM1HDF01 { get; set; } + public ControlCabinet PM1IDF01 { get; set; } + public ControlCabinet PM1JDF01 { get; set; } + public ControlCabinet PM1KDF01 { get; set; } + public ControlCabinet PM1LDF01 { get; set; } + + public LjSwith BU1ASF01 { get; set; } + public LjSwith BU1BSF01 { get; set; } + public LjSwith BU1CSF01 { get; set; } + public LjSwith BU1DSF01 { get; set; } + public LjSwith BU1ESF01 { get; set; } + public LjSwith BU1FSF01 { get; set; } + public LjSwith BU1GSF01 { get; set; } + public LjSwith BU1HSF01 { get; set; } + public LjSwith BU1ISF01 { get; set; } + public LjSwith BU1JSF01 { get; set; } + public LjSwith BU1KSF01 { get; set; } + public LjSwith BU1LSF01 { get; set; } + public LjSwith BU1MSF01 { get; set; } + public LjSwith BU1NSF01 { get; set; } + public LjSwith BU1OSF01 { get; set; } + public LjSwith BU1BLT01 { get; set; } + public LjSwith BU1BLT02 { get; set; } + public LjSwith BU1BLT03 { get; set; } + public LjSwith BU1BLT04 { get; set; } + public LjSwith BU1BLT05 { get; set; } + public LjSwith BU1BLT06 { get; set; } + public LjSwith BU1BLT07 { get; set; } + public LjSwith BU2BLT01 { get; set; } + public LjSwith BU2BLT02 { get; set; } + public LjSwith BU2BLT03 { get; set; } + public LjSwith BU2BLT04 { get; set; } + public LjSwith BU2BLT05 { get; set; } + public LjSwith BU3BLT01 { get; set; } + public LjSwith BU3BLT02 { get; set; } + public LjSwith BU3BLT03 { get; set; } + public LjSwith BU3BLT04 { get; set; } + public LjSwith BU3BLT05 { get; set; } + public LjSwith BU3BLT06 { get; set; } + public LjSwith BU3BLT07 { get; set; } + public LjSwith BU4BLT01 { get; set; } + public LjSwith BU4BLT02 { get; set; } + public LjSwith BU4BLT03 { get; set; } + public LjSwith BU4BLT04 { get; set; } + public LjSwith BU4BLT05 { get; set; } + public LjSwith BU4BLT06 { get; set; } + public LjSwith BU4BLT07 { get; set; } + public LjSwith BU5BLT01 { get; set; } + public LjSwith BU5BLT02 { get; set; } + public LjSwith BU5BLT03 { get; set; } + public LjSwith BU5BLT04 { get; set; } + public LjSwith BU1ADB01 { get; set; } + public LjSwith BU1BDB01 { get; set; } + public LjSwith BU1CDB01 { get; set; } + public LjSwith BU1DDB01 { get; set; } + public LjSwith BU1EDB01 { get; set; } + public LjSwith BU1FDB01 { get; set; } + public LjSwith BU1GDB01 { get; set; } + public LjSwith BU1HDB01 { get; set; } + public LjSwith BU1IDB01 { get; set; } + public LjSwith BU1JDB01 { get; set; } + public LjSwith BU1KDB01 { get; set; } + public LjSwith BU1LDB01 { get; set; } + public LjSwith BU1GEB02 { get; set; } + public LjSwith BU2GEB02 { get; set; } + public LjSwith BU3GEB02 { get; set; } + public LjSwith BU4GEB02 { get; set; } + public LjSwith BU5GEB02 { get; set; } + public LjSwith BU6GEB02 { get; set; } + public LjSwith BU7GEB02 { get; set; } + public LjSwith BU8GEB02 { get; set; } + public LjSwith BU1DRB01 { get; set; } + public LjSwith BU2DRB01 { get; set; } + public LjSwith BU3DRB01 { get; set; } + public LjSwith BU4DRB01 { get; set; } + public LjSwith BU1GEB01 { get; set; } + public LjSwith BU2GEB01 { get; set; } + public LjSwith BU3GEB01 { get; set; } + public LjSwith BU4GEB01 { get; set; } + public LjSwith BU5GEB01 { get; set; } + public LjSwith BU6GEB01 { get; set; } + public LjSwith BU7GEB01 { get; set; } + public LjSwith BU8GEB01 { get; set; } + public LjSwith BU2ASF01 { get; set; } + public LjSwith BU2ASF02 { get; set; } + public LjSwith BU2BSF01 { get; set; } + public LjSwith BU2BSF02 { get; set; } + public LjSwith BU2CSF01 { get; set; } + public LjSwith BU2CSF02 { get; set; } + public LjSwith BU2DSF01 { get; set; } + public LjSwith BU2DSF02 { get; set; } + public LjSwith BUWeter1 { get; set; } + public LjSwith BUWeter2 { get; set; } + public LjSwith BUWeter3 { get; set; } + public LjSwith BUWeter4 { get; set; } + public LjSwith BUWeter5 { get; set; } + public LjSwith BUWeter6 { get; set; } + public LjSwith BUWeter7 { get; set; } + public LjSwith BUWeter8 { get; set; } + + public ThreeWayValve DV2PCP01 { get; set; } + public ThreeWayValve DV2PCP02 { get; set; } + public ThreeWayValve DV2PCP03 { get; set; } + public ThreeWayValve DV2PCP04 { get; set; } + public ThreeWayValve DV2PCP05 { get; set; } + public ThreeWayValve DV2PCP06 { get; set; } + public ThreeWayValve DV2PCP07 { get; set; } + public ThreeWayValve DV2PCP08 { get; set; } + public ThreeWayValve DV2PCP09 { get; set; } + public ThreeWayValve DV2PCP10 { get; set; } + public ThreeWayValve DV2PCP11 { get; set; } + public ThreeWayValve DV2PCP12 { get; set; } + public ThreeWayValve DV2PCP13 { get; set; } + } +} diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs new file mode 100644 index 0000000..f749749 --- /dev/null +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs @@ -0,0 +1,496 @@ +using Mesnac.Controls.Default; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity +{ + public class PlcReadTempEntity + { + public bool WatchDog_Set { get; set; } + public bool EMStop_Set { get; set; } + + public bool Vessel_1_HighLevel_Set { get; set; } + public bool Vessel_2_HighLevel_Set { get; set; } + public bool Vessel_3_HighLevel_Set { get; set; } + public bool Vessel_4_HighLevel_Set { get; set; } + public bool Vessel_5_HighLevel_Set { get; set; } + public bool Vessel_1_LowLevel_Set { get; set; } + public bool Vessel_2_LowLevel_Set { get; set; } + public bool Vessel_3_LowLevel_Set { get; set; } + public bool Vessel_4_LowLevel_Set { get; set; } + public bool Vessel_5_LowLevel_Set { get; set; } + public bool highLevel_D1_Set { get; set; } + public bool highLevel_D2_Set { get; set; } + public bool highLevel_D3_Set { get; set; } + public bool highLevel_D4_Set { get; set; } + public bool highLevel_D5_Set { get; set; } + public bool highLevel_D6_Set { get; set; } + public bool highLevel_D7_Set { get; set; } + public bool highLevel_D8_Set { get; set; } + public bool highLevel_D9_Set { get; set; } + public bool highLevel_D10_Set { get; set; } + public bool highLevel_D11_Set { get; set; } + public bool highLevel_D12_Set { get; set; } + public bool lowLevel_D1_Set { get; set; } + public bool lowLevel_D2_Set { get; set; } + public bool lowLevel_D3_Set { get; set; } + public bool lowLevel_D4_Set { get; set; } + public bool lowLevel_D5_Set { get; set; } + public bool lowLevel_D6_Set { get; set; } + public bool lowLevel_D7_Set { get; set; } + public bool lowLevel_D8_Set { get; set; } + public bool lowLevel_D9_Set { get; set; } + public bool lowLevel_D10_Set { get; set; } + public bool lowLevel_D11_Set { get; set; } + public bool lowLevel_D12_Set { get; set; } + public bool Hopper_1_HighLevel_Set { get; set; } + public bool Hopper_2_HighLevel_Set { get; set; } + public bool Hopper_3_HighLevel_Set { get; set; } + public bool Hopper_4_HighLevel_Set { get; set; } + public bool Hopper_1_LowLevel_Set { get; set; } + public bool Hopper_2_LowLevel_Set { get; set; } + public bool Hopper_3_LowLevel_Set { get; set; } + public bool Hopper_4_LowLevel_Set { get; set; } + public bool WScale_1_HighLevel_Set { get; set; } + public bool WScale_2_HighLevel_Set { get; set; } + public bool WScale_3_HighLevel_Set { get; set; } + public bool WScale_4_HighLevel_Set { get; set; } + public bool WScale_1_LowLevel_Set { get; set; } + public bool WScale_2_LowLevel_Set { get; set; } + public bool WScale_3_LowLevel_Set { get; set; } + public bool WScale_4_LowLevel_Set { get; set; } + public bool DMWETER1_Set { get; set; } + public bool DMWETER2_Set { get; set; } + public bool DMWETER3_Set { get; set; } + public bool DMWETER4_Set { get; set; } + public bool DMWETER5_Set { get; set; } + public bool DMWETER6_Set { get; set; } + public bool DMWETER7_Set { get; set; } + public bool DMWETER8_Set { get; set; } + public bool DMWETER1_Alarm { get; set; } + public bool DMWETER2_Alarm { get; set; } + public bool DMWETER3_Alarm { get; set; } + public bool DMWETER4_Alarm { get; set; } + public bool DMWETER5_Alarm { get; set; } + public bool DMWETER6_Alarm { get; set; } + public bool DMWETER7_Alarm { get; set; } + public bool DMWETER8_Alarm { get; set; } + + public float topPressure_V1_Set { get; set; } + public float topPressure_V2_Set { get; set; } + public float topPressure_V3_Set { get; set; } + public float topPressure_V4_Set { get; set; } + public float topPressure_V5_Set { get; set; } + public float Vessel_1_ActWeight_Set { get; set; } + public float Vessel_2_ActWeight_Set { get; set; } + public float Vessel_3_ActWeight_Set { get; set; } + public float Vessel_4_ActWeight_Set { get; set; } + public float Vessel_5_ActWeight_Set { get; set; } + public float conveyV1_PV_Set { get; set; } + public float conveyV2_PV_Set { get; set; } + public float conveyV3_PV_Set { get; set; } + public float conveyV5_PV_Set { get; set; } + public float mainPress_V1_ActualValue_Set { get; set; } + public float mainPress_V2_ActualValue_Set { get; set; } + public float mainPress_V3_ActualValue_Set { get; set; } + public float mainPress_V5_ActualValue_Set { get; set; } + public float purgeV1_PV_Set { get; set; } + public float purgeV2_PV_Set { get; set; } + public float purgeV3_PV_Set { get; set; } + public float purgeV5_PV_Set { get; set; } + public float WScale_1_ActWeight_Set { get; set; } + public float WScale_2_ActWeight_Set { get; set; } + public float WScale_3_ActWeight_Set { get; set; } + public float WScale_4_ActWeight_Set { get; set; } + public float DM1DRY1_ACT_Speed_Set { get; set; } + public float DM1DRY2_ACT_Speed_Set { get; set; } + public float DM1DRY3_ACT_Speed_Set { get; set; } + public float DM1DRY4_ACT_Speed_Set { get; set; } + public float Hopper_1_ActWeight_Set { get; set; } + public float Hopper_2_ActWeight_Set { get; set; } + public float Hopper_3_ActWeight_Set { get; set; } + public float Hopper_4_ActWeight_Set { get; set; } + public float DM1GEM_Set { get; set; } + public float DM2GEM_Set { get; set; } + public float DM3GEM_Set { get; set; } + public float DM4GEM_Set { get; set; } + public float DM5GEM_Set { get; set; } + public float DM6GEM_Set { get; set; } + public float DM7GEM_Set { get; set; } + public float DM8GEM_Set { get; set; } + public float DM2ASF01_Set { get; set; } + public float DM2BSF01_Set { get; set; } + public float DM2CSF01_Set { get; set; } + public float DM2DSF01_Set { get; set; } + + + public bool DM1ASF01_Set { get; set; } + public bool DM1BSF01_Set { get; set; } + public bool DM1CSF01_Set { get; set; } + public bool DM1DSF01_Set { get; set; } + public bool DM1ESF01_Set { get; set; } + public bool DM1FSF01_Set { get; set; } + public bool DM1GSF01_Set { get; set; } + public bool DM1HSF01_Set { get; set; } + public bool DM1ISF01_Set { get; set; } + public bool DM1JSF01_Set { get; set; } + public bool DM1KSF01_Set { get; set; } + public bool DM1LSF01_Set { get; set; } + public bool DM1MSF01_Set { get; set; } + public bool DM1NSF01_Set { get; set; } + public bool DM1OSF01_Set { get; set; } + public bool DM2ASF01L_Set { get; set; } + public bool DM2BSF01L_Set { get; set; } + public bool DM2CSF01L_Set { get; set; } + public bool DM2DSF01L_Set { get; set; } + public bool DM2ASF01R_Set { get; set; } + public bool DM2BSF01R_Set { get; set; } + public bool DM2CSF01R_Set { get; set; } + public bool DM2DSF01R_Set { get; set; } + + public bool AS1BLT01_Set { get; set; } + public bool AS1BLT02_Set { get; set; } + public bool AS1BLT03_Set { get; set; } + public bool AS1BLT04_Set { get; set; } + public bool AS1BLT05_Set { get; set; } + public bool AS2BLT01_Set { get; set; } + public bool AS2BLT02_Set { get; set; } + public bool AS2BLT03_Set { get; set; } + public bool AS2BLT04_Set { get; set; } + public bool AS2BLT05_Set { get; set; } + public bool AS3BLT01_Set { get; set; } + public bool AS3BLT02_Set { get; set; } + public bool AS3BLT03_Set { get; set; } + public bool AS3BLT04_Set { get; set; } + public bool AS3BLT05_Set { get; set; } + public bool AS4BLT01_Set { get; set; } + public bool AS4BLT03_Set { get; set; } + public bool AS5BLT01_Set { get; set; } + public bool AS5BLT02_Set { get; set; } + public bool AS5BLT03_Set { get; set; } + public bool AS5BLT04_Set { get; set; } + public bool AS5BLT05_Set { get; set; } + public bool AS2PCP01_Set { get; set; } + public bool AS2PCP02_Set { get; set; } + public bool AS2PCP03_Set { get; set; } + public bool AS1OIS01_Set { get; set; } + public bool AS1OIS02_Set { get; set; } + public bool AS1OIS03_Set { get; set; } + public bool AS2OIS01_Set { get; set; } + public bool AS2OIS02_Set { get; set; } + public bool AS2OIS03_Set { get; set; } + public bool AS3OIS01_Set { get; set; } + public bool AS3OIS02_Set { get; set; } + public bool AS3OIS03_Set { get; set; } + public bool AS4OIS01_Set { get; set; } + public bool AS4OIS02_Set { get; set; } + public bool AS4OIS03_Set { get; set; } + public bool AS1GET01_Set { get; set; } + public bool AS1GET02_Set { get; set; } + public bool AS2GET01_Set { get; set; } + public bool AS2GET02_Set { get; set; } + public bool AS3GET01_Set { get; set; } + public bool AS3GET02_Set { get; set; } + public bool AS4GET01_Set { get; set; } + public bool AS4GET02_Set { get; set; } + public bool AS5GET01_Set { get; set; } + public bool AS5GET02_Set { get; set; } + public bool AS6GET01_Set { get; set; } + public bool AS6GET02_Set { get; set; } + public bool AS7GET01_Set { get; set; } + public bool AS7GET02_Set { get; set; } + public bool AS8GET01_Set { get; set; } + public bool AS8GET02_Set { get; set; } + + public bool DM1ADF01_Set { get; set; } + public bool DM1BDF01_Set { get; set; } + public bool DM1CDF01_Set { get; set; } + public bool DM1DDF01_Set { get; set; } + public bool DM1EDF01_Set { get; set; } + public bool DM1FDF01_Set { get; set; } + public bool DM1GDF01_Set { get; set; } + public bool DM1HDF01_Set { get; set; } + public bool DM1IDF01_Set { get; set; } + public bool DM1JDF01_Set { get; set; } + public bool DM1KDF01_Set { get; set; } + public bool DM1LDF01_Set { get; set; } + public bool DM1ADB01_Set { get; set; } + public bool DM1BDB01_Set { get; set; } + public bool DM1CDB01_Set { get; set; } + public bool DM1DDB01_Set { get; set; } + public bool DM1EDB01_Set { get; set; } + public bool DM1FDB01_Set { get; set; } + public bool DM1GDB01_Set { get; set; } + public bool DM1HDB01_Set { get; set; } + public bool DM1IDB01_Set { get; set; } + public bool DM1JDB01_Set { get; set; } + public bool DM1KDB01_Set { get; set; } + public bool DM1LDB01_Set { get; set; } + public bool DM1DRY1_Running_Set { get; set; } + public bool DM1DRY2_Running_Set { get; set; } + public bool DM1DRY3_Running_Set { get; set; } + public bool DM1DRY4_Running_Set { get; set; } + public bool PM3ADF01_Set { get; set; } + + public bool PM1ADF01_Set { get; set; } + public bool PM1BDF01_Set { get; set; } + public bool PM1CDF01_Set { get; set; } + public bool PM1DDF01_Set { get; set; } + public bool PM1EDF01_Set { get; set; } + public bool PM1FDF01_Set { get; set; } + public bool PM1GDF01_Set { get; set; } + public bool PM1HDF01_Set { get; set; } + public bool PM1IDF01_Set { get; set; } + public bool PM1JDF01_Set { get; set; } + public bool PM1KDF01_Set { get; set; } + public bool PM1LDF01_Set { get; set; } + + public bool BU1ASF01_Set { get; set; } + public bool BU1BSF01_Set { get; set; } + public bool BU1CSF01_Set { get; set; } + public bool BU1DSF01_Set { get; set; } + public bool BU1ESF01_Set { get; set; } + public bool BU1FSF01_Set { get; set; } + public bool BU1GSF01_Set { get; set; } + public bool BU1HSF01_Set { get; set; } + public bool BU1ISF01_Set { get; set; } + public bool BU1JSF01_Set { get; set; } + public bool BU1KSF01_Set { get; set; } + public bool BU1LSF01_Set { get; set; } + public bool BU1MSF01_Set { get; set; } + public bool BU1NSF01_Set { get; set; } + public bool BU1OSF01_Set { get; set; } + public bool BU1BLT01_Set { get; set; } + public bool BU1BLT02_Set { get; set; } + public bool BU1BLT03_Set { get; set; } + public bool BU1BLT04_Set { get; set; } + public bool BU1BLT05_Set { get; set; } + public bool BU1BLT06_Set { get; set; } + public bool BU1BLT07_Set { get; set; } + public bool BU2BLT01_Set { get; set; } + public bool BU2BLT02_Set { get; set; } + public bool BU2BLT03_Set { get; set; } + public bool BU2BLT04_Set { get; set; } + public bool BU2BLT05_Set { get; set; } + public bool BU3BLT01_Set { get; set; } + public bool BU3BLT02_Set { get; set; } + public bool BU3BLT03_Set { get; set; } + public bool BU3BLT04_Set { get; set; } + public bool BU3BLT05_Set { get; set; } + public bool BU3BLT06_Set { get; set; } + public bool BU3BLT07_Set { get; set; } + public bool BU4BLT01_Set { get; set; } + public bool BU4BLT02_Set { get; set; } + public bool BU4BLT03_Set { get; set; } + public bool BU4BLT04_Set { get; set; } + public bool BU4BLT05_Set { get; set; } + public bool BU4BLT06_Set { get; set; } + public bool BU4BLT07_Set { get; set; } + public bool BU5BLT01_Set { get; set; } + public bool BU5BLT02_Set { get; set; } + public bool BU5BLT03_Set { get; set; } + public bool BU5BLT04_Set { get; set; } + public bool BU1ADB01_Set { get; set; } + public bool BU1BDB01_Set { get; set; } + public bool BU1CDB01_Set { get; set; } + public bool BU1DDB01_Set { get; set; } + public bool BU1EDB01_Set { get; set; } + public bool BU1FDB01_Set { get; set; } + public bool BU1GDB01_Set { get; set; } + public bool BU1HDB01_Set { get; set; } + public bool BU1IDB01_Set { get; set; } + public bool BU1JDB01_Set { get; set; } + public bool BU1KDB01_Set { get; set; } + public bool BU1LDB01_Set { get; set; } + public bool BU1GEB02_Set { get; set; } + public bool BU2GEB02_Set { get; set; } + public bool BU3GEB02_Set { get; set; } + public bool BU4GEB02_Set { get; set; } + public bool BU5GEB02_Set { get; set; } + public bool BU6GEB02_Set { get; set; } + public bool BU7GEB02_Set { get; set; } + public bool BU8GEB02_Set { get; set; } + public bool BU1DRB01_Set { get; set; } + public bool BU2DRB01_Set { get; set; } + public bool BU3DRB01_Set { get; set; } + public bool BU4DRB01_Set { get; set; } + public bool BU1GEB01_Set { get; set; } + public bool BU2GEB01_Set { get; set; } + public bool BU3GEB01_Set { get; set; } + public bool BU4GEB01_Set { get; set; } + public bool BU5GEB01_Set { get; set; } + public bool BU6GEB01_Set { get; set; } + public bool BU7GEB01_Set { get; set; } + public bool BU8GEB01_Set { get; set; } + public bool BU2ASF01_Set { get; set; } + public bool BU2ASF02_Set { get; set; } + public bool BU2BSF01_Set { get; set; } + public bool BU2BSF02_Set { get; set; } + public bool BU2CSF01_Set { get; set; } + public bool BU2CSF02_Set { get; set; } + public bool BU2DSF01_Set { get; set; } + public bool BU2DSF02_Set { get; set; } + public bool BUWeter1_Set { get; set; } + public bool BUWeter2_Set { get; set; } + public bool BUWeter3_Set { get; set; } + public bool BUWeter4_Set { get; set; } + public bool BUWeter5_Set { get; set; } + public bool BUWeter6_Set { get; set; } + public bool BUWeter7_Set { get; set; } + public bool BUWeter8_Set { get; set; } + + public bool BU1ASF01_Alarm { get; set; } + public bool BU1BSF01_Alarm { get; set; } + public bool BU1CSF01_Alarm { get; set; } + public bool BU1DSF01_Alarm { get; set; } + public bool BU1ESF01_Alarm { get; set; } + public bool BU1FSF01_Alarm { get; set; } + public bool BU1GSF01_Alarm { get; set; } + public bool BU1HSF01_Alarm { get; set; } + public bool BU1ISF01_Alarm { get; set; } + public bool BU1JSF01_Alarm { get; set; } + public bool BU1KSF01_Alarm { get; set; } + public bool BU1LSF01_Alarm { get; set; } + public bool BU1MSF01_Alarm { get; set; } + public bool BU1NSF01_Alarm { get; set; } + public bool BU1OSF01_Alarm { get; set; } + public bool BU1BLT01_Alarm { get; set; } + public bool BU1BLT02_Alarm { get; set; } + public bool BU1BLT03_Alarm { get; set; } + public bool BU1BLT04_Alarm { get; set; } + public bool BU1BLT05_Alarm { get; set; } + public bool BU1BLT06_Alarm { get; set; } + public bool BU1BLT07_Alarm { get; set; } + public bool BU2BLT01_Alarm { get; set; } + public bool BU2BLT02_Alarm { get; set; } + public bool BU2BLT03_Alarm { get; set; } + public bool BU2BLT04_Alarm { get; set; } + public bool BU2BLT05_Alarm { get; set; } + public bool BU3BLT01_Alarm { get; set; } + public bool BU3BLT02_Alarm { get; set; } + public bool BU3BLT03_Alarm { get; set; } + public bool BU3BLT04_Alarm { get; set; } + public bool BU3BLT05_Alarm { get; set; } + public bool BU3BLT06_Alarm { get; set; } + public bool BU3BLT07_Alarm { get; set; } + public bool BU4BLT01_Alarm { get; set; } + public bool BU4BLT02_Alarm { get; set; } + public bool BU4BLT03_Alarm { get; set; } + public bool BU4BLT04_Alarm { get; set; } + public bool BU4BLT05_Alarm { get; set; } + public bool BU4BLT06_Alarm { get; set; } + public bool BU4BLT07_Alarm { get; set; } + public bool BU5BLT01_Alarm { get; set; } + public bool BU5BLT02_Alarm { get; set; } + public bool BU5BLT03_Alarm { get; set; } + public bool BU5BLT04_Alarm { get; set; } + public bool BU1ADB01_Alarm { get; set; } + public bool BU1BDB01_Alarm { get; set; } + public bool BU1CDB01_Alarm { get; set; } + public bool BU1DDB01_Alarm { get; set; } + public bool BU1EDB01_Alarm { get; set; } + public bool BU1FDB01_Alarm { get; set; } + public bool BU1GDB01_Alarm { get; set; } + public bool BU1HDB01_Alarm { get; set; } + public bool BU1IDB01_Alarm { get; set; } + public bool BU1JDB01_Alarm { get; set; } + public bool BU1KDB01_Alarm { get; set; } + public bool BU1LDB01_Alarm { get; set; } + public bool BU1GEB02_Alarm { get; set; } + public bool BU2GEB02_Alarm { get; set; } + public bool BU3GEB02_Alarm { get; set; } + public bool BU4GEB02_Alarm { get; set; } + public bool BU5GEB02_Alarm { get; set; } + public bool BU6GEB02_Alarm { get; set; } + public bool BU7GEB02_Alarm { get; set; } + public bool BU8GEB02_Alarm { get; set; } + public bool BU1DRB01_Alarm { get; set; } + public bool BU2DRB01_Alarm { get; set; } + public bool BU3DRB01_Alarm { get; set; } + public bool BU4DRB01_Alarm { get; set; } + public bool BU1GEB01_Alarm { get; set; } + public bool BU2GEB01_Alarm { get; set; } + public bool BU3GEB01_Alarm { get; set; } + public bool BU4GEB01_Alarm { get; set; } + public bool BU5GEB01_Alarm { get; set; } + public bool BU6GEB01_Alarm { get; set; } + public bool BU7GEB01_Alarm { get; set; } + public bool BU8GEB01_Alarm { get; set; } + public bool BU2ASF01_Alarm { get; set; } + public bool BU2ASF02_Alarm { get; set; } + public bool BU2BSF01_Alarm { get; set; } + public bool BU2BSF02_Alarm { get; set; } + public bool BU2CSF01_Alarm { get; set; } + public bool BU2CSF02_Alarm { get; set; } + public bool BU2DSF01_Alarm { get; set; } + public bool BU2DSF02_Alarm { get; set; } + public bool BUWeter1_Alarm { get; set; } + public bool BUWeter2_Alarm { get; set; } + public bool BUWeter3_Alarm { get; set; } + public bool BUWeter4_Alarm { get; set; } + public bool BUWeter5_Alarm { get; set; } + public bool BUWeter6_Alarm { get; set; } + public bool BUWeter7_Alarm { get; set; } + public bool BUWeter8_Alarm { get; set; } + + public bool DV2PCP01_SetL { get; set; } + public bool DV2PCP02_SetL { get; set; } + public bool DV2PCP03_SetL { get; set; } + public bool DV2PCP04_SetL { get; set; } + public bool DV2PCP05_SetL { get; set; } + public bool DV2PCP06_SetL { get; set; } + public bool DV2PCP07_SetL { get; set; } + public bool DV2PCP08_SetL { get; set; } + public bool DV2PCP09_SetL { get; set; } + public bool DV2PCP10_SetL { get; set; } + public bool DV2PCP11_SetL { get; set; } + public bool DV2PCP12_SetL { get; set; } + public bool DV2PCP13_SetL { get; set; } + + public bool DV2PCP01_SetR { get; set; } + public bool DV2PCP02_SetR { get; set; } + public bool DV2PCP03_SetR { get; set; } + public bool DV2PCP04_SetR { get; set; } + public bool DV2PCP05_SetR { get; set; } + public bool DV2PCP06_SetR { get; set; } + public bool DV2PCP07_SetR { get; set; } + public bool DV2PCP08_SetR { get; set; } + public bool DV2PCP09_SetR { get; set; } + public bool DV2PCP10_SetR { get; set; } + public bool DV2PCP11_SetR { get; set; } + public bool DV2PCP12_SetR { get; set; } + public bool DV2PCP13_SetR { get; set; } + + public bool DV2PCP01_AlarmL { get; set; } + public bool DV2PCP02_AlarmL { get; set; } + public bool DV2PCP03_AlarmL { get; set; } + public bool DV2PCP04_AlarmL { get; set; } + public bool DV2PCP05_AlarmL { get; set; } + public bool DV2PCP06_AlarmL { get; set; } + public bool DV2PCP07_AlarmL { get; set; } + public bool DV2PCP08_AlarmL { get; set; } + public bool DV2PCP09_AlarmL { get; set; } + public bool DV2PCP10_AlarmL { get; set; } + public bool DV2PCP11_AlarmL { get; set; } + public bool DV2PCP12_AlarmL { get; set; } + public bool DV2PCP13_AlarmL { get; set; } + + public bool DV2PCP01_AlarmR { get; set; } + public bool DV2PCP02_AlarmR { get; set; } + public bool DV2PCP03_AlarmR { get; set; } + public bool DV2PCP04_AlarmR { get; set; } + public bool DV2PCP05_AlarmR { get; set; } + public bool DV2PCP06_AlarmR { get; set; } + public bool DV2PCP07_AlarmR { get; set; } + public bool DV2PCP08_AlarmR { get; set; } + public bool DV2PCP09_AlarmR { get; set; } + public bool DV2PCP10_AlarmR { get; set; } + public bool DV2PCP11_AlarmR { get; set; } + public bool DV2PCP12_AlarmR { get; set; } + public bool DV2PCP13_AlarmR { get; set; } + + } +} diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs index f0749ae..a099bb7 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs @@ -24,869 +24,41 @@ using System.Windows.Forms; using HslCommunication; using IAction = Mesnac.Action.Base.IAction; using Timer = System.Windows.Forms.Timer; -using Mesnac.Action.ChemicalWeighing.Report.DeviceDetail2Report.Entity; using Mesnac.Action.ChemicalWeighing.LjMaterial; using System.Data; +using Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity; namespace Mesnac.Action.ChemicalWeighing.MainDetailControl { public class MainDetailControlAction : ChemicalWeighingAction, IAction { - List Controls; - DB2102Helper DB2102; - DB2103Helper DB2103; - DB2107Helper DB2107; - ConcurrentDictionary conCurrentCache = new ConcurrentDictionary(); + #region plc读取类 Timer 线程字典 DataTable - Timer timer; - Timer timer1; - - List McControllist; - DeviceDetail2Entity DeviceDetailForm = new DeviceDetail2Entity(); - private DbMCControl AlarmForm = null; //物料列表控件 - - #region 控件声明 - - StateButton WatchDog; - - SystemStateShow EMStop; - - SwitchLight Vessel_1_HighLevel; - SwitchLight Vessel_2_HighLevel; - SwitchLight Vessel_3_HighLevel; - SwitchLight Vessel_4_HighLevel; - SwitchLight Vessel_5_HighLevel; - SwitchLight Vessel_1_LowLevel; - SwitchLight Vessel_2_LowLevel; - SwitchLight Vessel_3_LowLevel; - SwitchLight Vessel_4_LowLevel; - SwitchLight Vessel_5_LowLevel; - SwitchLight highLevel_D1; - SwitchLight highLevel_D2; - SwitchLight highLevel_D3; - SwitchLight highLevel_D4; - SwitchLight highLevel_D5; - SwitchLight highLevel_D6; - SwitchLight highLevel_D7; - SwitchLight highLevel_D8; - SwitchLight highLevel_D9; - SwitchLight highLevel_D10; - SwitchLight highLevel_D11; - SwitchLight highLevel_D12; - SwitchLight lowLevel_D1; - SwitchLight lowLevel_D2; - SwitchLight lowLevel_D3; - SwitchLight lowLevel_D4; - SwitchLight lowLevel_D5; - SwitchLight lowLevel_D6; - SwitchLight lowLevel_D7; - SwitchLight lowLevel_D8; - SwitchLight lowLevel_D9; - SwitchLight lowLevel_D10; - SwitchLight lowLevel_D11; - SwitchLight lowLevel_D12; - SwitchLight Hopper_1_HighLevel; - SwitchLight Hopper_2_HighLevel; - SwitchLight Hopper_3_HighLevel; - SwitchLight Hopper_4_HighLevel; - SwitchLight Hopper_1_LowLevel; - SwitchLight Hopper_2_LowLevel; - SwitchLight Hopper_3_LowLevel; - SwitchLight Hopper_4_LowLevel; - SwitchLight WScale_1_HighLevel; - SwitchLight WScale_2_HighLevel; - SwitchLight WScale_3_HighLevel; - SwitchLight WScale_4_HighLevel; - SwitchLight WScale_1_LowLevel; - SwitchLight WScale_2_LowLevel; - SwitchLight WScale_3_LowLevel; - SwitchLight WScale_4_LowLevel; - SwitchLight DMWETER1; - SwitchLight DMWETER11; - SwitchLight DMWETER2; - SwitchLight DMWETER22; - SwitchLight DMWETER3; - SwitchLight DMWETER33; - SwitchLight DMWETER4; - SwitchLight DMWETER44; - SwitchLight DMWETER5; - SwitchLight DMWETER55; - SwitchLight DMWETER6; - SwitchLight DMWETER66; - SwitchLight DMWETER7; - SwitchLight DMWETER77; - SwitchLight DMWETER8; - SwitchLight DMWETER88; - - MCLabel topPressure_V1; - MCLabel topPressure_V2; - MCLabel topPressure_V3; - MCLabel topPressure_V4; - MCLabel topPressure_V5; - MCLabel Vessel_1_ActWeight; - MCLabel Vessel_2_ActWeight; - MCLabel Vessel_3_ActWeight; - MCLabel Vessel_4_ActWeight; - MCLabel Vessel_5_ActWeight; - MCLabel conveyV1_PV; - MCLabel conveyV2_PV; - MCLabel conveyV3_PV; - MCLabel conveyV5_PV; - MCLabel mainPress_V1_ActualValue; - MCLabel mainPress_V2_ActualValue; - MCLabel mainPress_V3_ActualValue; - MCLabel mainPress_V5_ActualValue; - MCLabel purgeV1_PV; - MCLabel purgeV2_PV; - MCLabel purgeV3_PV; - MCLabel purgeV5_PV; - MCLabel WScale_1_ActWeight; - MCLabel WScale_2_ActWeight; - MCLabel WScale_3_ActWeight; - MCLabel WScale_4_ActWeight; - MCLabel DM1DRY1_ACT_Speed; - MCLabel DM1DRY2_ACT_Speed; - MCLabel DM1DRY3_ACT_Speed; - MCLabel DM1DRY4_ACT_Speed; - MCLabel Hopper_1_ActWeight; - MCLabel Hopper_2_ActWeight; - MCLabel Hopper_3_ActWeight; - MCLabel Hopper_4_ActWeight; - MCLabel DM1GEM; - MCLabel DM2GEM; - MCLabel DM3GEM; - MCLabel DM4GEM; - MCLabel DM5GEM; - MCLabel DM6GEM; - MCLabel DM7GEM; - MCLabel DM8GEM; - MCLabel DM2ASF01; - MCLabel DM2BSF01; - MCLabel DM2CSF01; - MCLabel DM2DSF01; - - RSCREWBIG DM1ASF01; - RSCREWBIG DM1BSF01; - LSCREWBIG DM1CSF01; - LSCREWBIG DM1DSF01; - RSCREWBIG DM1ESF01; - LSCREWBIG DM1FSF01; - RSCREWBIG DM1GSF01; - RSCREWBIG DM1HSF01; - LSCREWBIG DM1ISF01; - LSCREWBIG DM1JSF01; - RSCREWBIG DM1KSF01; - RSCREWBIG DM1LSF01; - LSCREWBIG DM1MSF01; - LSCREWBIG DM1NSF01; - RSCREWBIG DM1OSF01; - LSCREWBIG DM2ASF01L; - LSCREWBIG DM2BSF01L; - LSCREWBIG DM2CSF01L; - LSCREWBIG DM2DSF01L; - RSCREWBIG DM2ASF01R; - RSCREWBIG DM2BSF01R; - RSCREWBIG DM2CSF01R; - RSCREWBIG DM2DSF01R; - - Jzf AS1BLT01; - Jzf AS1BLT02; - Jzf AS1BLT03; - Jzf AS1BLT04; - Jzf AS1BLT05; - Jzf AS2BLT01; - Jzf AS2BLT02; - Jzf AS2BLT03; - Jzf AS2BLT04; - Jzf AS2BLT05; - Jzf AS3BLT01; - Jzf AS3BLT02; - Jzf AS3BLT03; - Jzf AS3BLT04; - Jzf AS3BLT05; - Jzf AS4BLT01; - Jzf AS4BLT03; - Jzf AS5BLT01; - Jzf AS5BLT02; - Jzf AS5BLT03; - Jzf AS5BLT04; - Jzf AS5BLT05; - Jzf AS2PCP01; - Jzf AS2PCP02; - Jzf AS2PCP03; - Jzf AS1OIS01; - Jzf AS1OIS02; - Jzf AS1OIS03; - Jzf AS2OIS01; - Jzf AS2OIS02; - Jzf AS2OIS03; - Jzf AS3OIS01; - Jzf AS3OIS02; - Jzf AS3OIS03; - Jzf AS4OIS01; - Jzf AS4OIS02; - Jzf AS4OIS03; - Jzf AS1GET01; - Jzf AS1GET02; - Jzf AS2GET01; - Jzf AS2GET02; - Jzf AS3GET01; - Jzf AS3GET02; - Jzf AS4GET01; - Jzf AS4GET02; - Jzf AS5GET01; - Jzf AS5GET02; - Jzf AS6GET01; - Jzf AS6GET02; - Jzf AS7GET01; - Jzf AS7GET02; - Jzf AS8GET01; - Jzf AS8GET02; - - Fan DM1ADF01; - Fan DM1BDF01; - Fan DM1CDF01; - Fan DM1DDF01; - Fan DM1EDF01; - Fan DM1FDF01; - Fan DM1GDF01; - Fan DM1HDF01; - Fan DM1IDF01; - Fan DM1JDF01; - Fan DM1KDF01; - Fan DM1LDF01; - Fan DM1ADB01; - Fan DM1BDB01; - Fan DM1CDB01; - Fan DM1DDB01; - Fan DM1EDB01; - Fan DM1FDB01; - Fan DM1GDB01; - Fan DM1HDB01; - Fan DM1IDB01; - Fan DM1JDB01; - Fan DM1KDB01; - Fan DM1LDB01; - Fan DM1DRY1_Running; - Fan DM1DRY2_Running; - Fan DM1DRY3_Running; - Fan DM1DRY4_Running; - Fan PM3ADF01; - - ControlCabinet PM1ADF01; - ControlCabinet PM1BDF01; - ControlCabinet PM1CDF01; - ControlCabinet PM1DDF01; - ControlCabinet PM1EDF01; - ControlCabinet PM1FDF01; - ControlCabinet PM1GDF01; - ControlCabinet PM1HDF01; - ControlCabinet PM1IDF01; - ControlCabinet PM1JDF01; - ControlCabinet PM1KDF01; - ControlCabinet PM1LDF01; - - LjSwith BU1ASF01; - LjSwith BU1BSF01; - LjSwith BU1CSF01; - LjSwith BU1DSF01; - LjSwith BU1ESF01; - LjSwith BU1FSF01; - LjSwith BU1GSF01; - LjSwith BU1HSF01; - LjSwith BU1ISF01; - LjSwith BU1JSF01; - LjSwith BU1KSF01; - LjSwith BU1LSF01; - LjSwith BU1MSF01; - LjSwith BU1NSF01; - LjSwith BU1OSF01; - LjSwith BU1BLT01; - LjSwith BU1BLT02; - LjSwith BU1BLT03; - LjSwith BU1BLT04; - LjSwith BU1BLT05; - LjSwith BU1BLT06; - LjSwith BU1BLT07; - LjSwith BU2BLT01; - LjSwith BU2BLT02; - LjSwith BU2BLT03; - LjSwith BU2BLT04; - LjSwith BU2BLT05; - LjSwith BU3BLT01; - LjSwith BU3BLT02; - LjSwith BU3BLT03; - LjSwith BU3BLT04; - LjSwith BU3BLT05; - LjSwith BU3BLT06; - LjSwith BU3BLT07; - LjSwith BU4BLT01; - LjSwith BU4BLT02; - LjSwith BU4BLT03; - LjSwith BU4BLT04; - LjSwith BU4BLT05; - LjSwith BU4BLT06; - LjSwith BU4BLT07; - LjSwith BU5BLT01; - LjSwith BU5BLT02; - LjSwith BU5BLT03; - LjSwith BU5BLT04; - LjSwith BU1ADB01; - LjSwith BU1BDB01; - LjSwith BU1CDB01; - LjSwith BU1DDB01; - LjSwith BU1EDB01; - LjSwith BU1FDB01; - LjSwith BU1GDB01; - LjSwith BU1HDB01; - LjSwith BU1IDB01; - LjSwith BU1JDB01; - LjSwith BU1KDB01; - LjSwith BU1LDB01; - LjSwith BU1GEB02; - LjSwith BU2GEB02; - LjSwith BU3GEB02; - LjSwith BU4GEB02; - LjSwith BU5GEB02; - LjSwith BU6GEB02; - LjSwith BU7GEB02; - LjSwith BU8GEB02; - LjSwith BU1DRB01; - LjSwith BU2DRB01; - LjSwith BU3DRB01; - LjSwith BU4DRB01; - LjSwith BU1GEB01; - LjSwith BU2GEB01; - LjSwith BU3GEB01; - LjSwith BU4GEB01; - LjSwith BU5GEB01; - LjSwith BU6GEB01; - LjSwith BU7GEB01; - LjSwith BU8GEB01; - LjSwith BU2ASF01; - LjSwith BU2ASF02; - LjSwith BU2BSF01; - LjSwith BU2BSF02; - LjSwith BU2CSF01; - LjSwith BU2CSF02; - LjSwith BU2DSF01; - LjSwith BU2DSF02; - LjSwith BUWeter1; - LjSwith BUWeter2; - LjSwith BUWeter3; - LjSwith BUWeter4; - LjSwith BUWeter5; - LjSwith BUWeter6; - LjSwith BUWeter7; - LjSwith BUWeter8; - - ThreeWayValve DV2PCP01; - ThreeWayValve DV2PCP02; - ThreeWayValve DV2PCP03; - ThreeWayValve DV2PCP04; - ThreeWayValve DV2PCP05; - ThreeWayValve DV2PCP06; - ThreeWayValve DV2PCP07; - ThreeWayValve DV2PCP08; - ThreeWayValve DV2PCP09; - ThreeWayValve DV2PCP10; - ThreeWayValve DV2PCP11; - ThreeWayValve DV2PCP12; - ThreeWayValve DV2PCP13; + private DB2102Helper DB2102; + private DB2103Helper DB2103; + private DB2107Helper DB2107; + private ConcurrentDictionary conCurrentCache = new ConcurrentDictionary(); + private Timer timer; + private Timer timer1; + System.Data.DataTable ParametersWithPCTable = new System.Data.DataTable(); #endregion - #region Plc读数变量 - - bool WatchDog_Set; - bool EMStop_Set; - - bool Vessel_1_HighLevel_Set; - bool Vessel_2_HighLevel_Set; - bool Vessel_3_HighLevel_Set; - bool Vessel_4_HighLevel_Set; - bool Vessel_5_HighLevel_Set; - bool Vessel_1_LowLevel_Set; - bool Vessel_2_LowLevel_Set; - bool Vessel_3_LowLevel_Set; - bool Vessel_4_LowLevel_Set; - bool Vessel_5_LowLevel_Set; - bool highLevel_D1_Set; - bool highLevel_D2_Set; - bool highLevel_D3_Set; - bool highLevel_D4_Set; - bool highLevel_D5_Set; - bool highLevel_D6_Set; - bool highLevel_D7_Set; - bool highLevel_D8_Set; - bool highLevel_D9_Set; - bool highLevel_D10_Set; - bool highLevel_D11_Set; - bool highLevel_D12_Set; - bool lowLevel_D1_Set; - bool lowLevel_D2_Set; - bool lowLevel_D3_Set; - bool lowLevel_D4_Set; - bool lowLevel_D5_Set; - bool lowLevel_D6_Set; - bool lowLevel_D7_Set; - bool lowLevel_D8_Set; - bool lowLevel_D9_Set; - bool lowLevel_D10_Set; - bool lowLevel_D11_Set; - bool lowLevel_D12_Set; - bool Hopper_1_HighLevel_Set; - bool Hopper_2_HighLevel_Set; - bool Hopper_3_HighLevel_Set; - bool Hopper_4_HighLevel_Set; - bool Hopper_1_LowLevel_Set; - bool Hopper_2_LowLevel_Set; - bool Hopper_3_LowLevel_Set; - bool Hopper_4_LowLevel_Set; - bool WScale_1_HighLevel_Set; - bool WScale_2_HighLevel_Set; - bool WScale_3_HighLevel_Set; - bool WScale_4_HighLevel_Set; - bool WScale_1_LowLevel_Set; - bool WScale_2_LowLevel_Set; - bool WScale_3_LowLevel_Set; - bool WScale_4_LowLevel_Set; - bool DMWETER1_Set; - bool DMWETER2_Set; - bool DMWETER3_Set; - bool DMWETER4_Set; - bool DMWETER5_Set; - bool DMWETER6_Set; - bool DMWETER7_Set; - bool DMWETER8_Set; - bool DMWETER1_Alarm; - bool DMWETER2_Alarm; - bool DMWETER3_Alarm; - bool DMWETER4_Alarm; - bool DMWETER5_Alarm; - bool DMWETER6_Alarm; - bool DMWETER7_Alarm; - bool DMWETER8_Alarm; - - float topPressure_V1_Set; - float topPressure_V2_Set; - float topPressure_V3_Set; - float topPressure_V4_Set; - float topPressure_V5_Set; - float Vessel_1_ActWeight_Set; - float Vessel_2_ActWeight_Set; - float Vessel_3_ActWeight_Set; - float Vessel_4_ActWeight_Set; - float Vessel_5_ActWeight_Set; - float conveyV1_PV_Set; - float conveyV2_PV_Set; - float conveyV3_PV_Set; - float conveyV5_PV_Set; - float mainPress_V1_ActualValue_Set; - float mainPress_V2_ActualValue_Set; - float mainPress_V3_ActualValue_Set; - float mainPress_V5_ActualValue_Set; - float purgeV1_PV_Set; - float purgeV2_PV_Set; - float purgeV3_PV_Set; - float purgeV5_PV_Set; - float WScale_1_ActWeight_Set; - float WScale_2_ActWeight_Set; - float WScale_3_ActWeight_Set; - float WScale_4_ActWeight_Set; - float DM1DRY1_ACT_Speed_Set; - float DM1DRY2_ACT_Speed_Set; - float DM1DRY3_ACT_Speed_Set; - float DM1DRY4_ACT_Speed_Set; - float Hopper_1_ActWeight_Set; - float Hopper_2_ActWeight_Set; - float Hopper_3_ActWeight_Set; - float Hopper_4_ActWeight_Set; - float DM1GEM_Set; - float DM2GEM_Set; - float DM3GEM_Set; - float DM4GEM_Set; - float DM5GEM_Set; - float DM6GEM_Set; - float DM7GEM_Set; - float DM8GEM_Set; - float DM2ASF01_Set; - float DM2BSF01_Set; - float DM2CSF01_Set; - float DM2DSF01_Set; - - - bool DM1ASF01_Set; - bool DM1BSF01_Set; - bool DM1CSF01_Set; - bool DM1DSF01_Set; - bool DM1ESF01_Set; - bool DM1FSF01_Set; - bool DM1GSF01_Set; - bool DM1HSF01_Set; - bool DM1ISF01_Set; - bool DM1JSF01_Set; - bool DM1KSF01_Set; - bool DM1LSF01_Set; - bool DM1MSF01_Set; - bool DM1NSF01_Set; - bool DM1OSF01_Set; - bool DM2ASF01L_Set; - bool DM2BSF01L_Set; - bool DM2CSF01L_Set; - bool DM2DSF01L_Set; - bool DM2ASF01R_Set; - bool DM2BSF01R_Set; - bool DM2CSF01R_Set; - bool DM2DSF01R_Set; - - bool AS1BLT01_Set; - bool AS1BLT02_Set; - bool AS1BLT03_Set; - bool AS1BLT04_Set; - bool AS1BLT05_Set; - bool AS2BLT01_Set; - bool AS2BLT02_Set; - bool AS2BLT03_Set; - bool AS2BLT04_Set; - bool AS2BLT05_Set; - bool AS3BLT01_Set; - bool AS3BLT02_Set; - bool AS3BLT03_Set; - bool AS3BLT04_Set; - bool AS3BLT05_Set; - bool AS4BLT01_Set; - bool AS4BLT03_Set; - bool AS5BLT01_Set; - bool AS5BLT02_Set; - bool AS5BLT03_Set; - bool AS5BLT04_Set; - bool AS5BLT05_Set; - bool AS2PCP01_Set; - bool AS2PCP02_Set; - bool AS2PCP03_Set; - bool AS1OIS01_Set; - bool AS1OIS02_Set; - bool AS1OIS03_Set; - bool AS2OIS01_Set; - bool AS2OIS02_Set; - bool AS2OIS03_Set; - bool AS3OIS01_Set; - bool AS3OIS02_Set; - bool AS3OIS03_Set; - bool AS4OIS01_Set; - bool AS4OIS02_Set; - bool AS4OIS03_Set; - bool AS1GET01_Set; - bool AS1GET02_Set; - bool AS2GET01_Set; - bool AS2GET02_Set; - bool AS3GET01_Set; - bool AS3GET02_Set; - bool AS4GET01_Set; - bool AS4GET02_Set; - bool AS5GET01_Set; - bool AS5GET02_Set; - bool AS6GET01_Set; - bool AS6GET02_Set; - bool AS7GET01_Set; - bool AS7GET02_Set; - bool AS8GET01_Set; - bool AS8GET02_Set; - - bool DM1ADF01_Set; - bool DM1BDF01_Set; - bool DM1CDF01_Set; - bool DM1DDF01_Set; - bool DM1EDF01_Set; - bool DM1FDF01_Set; - bool DM1GDF01_Set; - bool DM1HDF01_Set; - bool DM1IDF01_Set; - bool DM1JDF01_Set; - bool DM1KDF01_Set; - bool DM1LDF01_Set; - bool DM1ADB01_Set; - bool DM1BDB01_Set; - bool DM1CDB01_Set; - bool DM1DDB01_Set; - bool DM1EDB01_Set; - bool DM1FDB01_Set; - bool DM1GDB01_Set; - bool DM1HDB01_Set; - bool DM1IDB01_Set; - bool DM1JDB01_Set; - bool DM1KDB01_Set; - bool DM1LDB01_Set; - bool DM1DRY1_Running_Set; - bool DM1DRY2_Running_Set; - bool DM1DRY3_Running_Set; - bool DM1DRY4_Running_Set; - bool PM3ADF01_Set; - - bool PM1ADF01_Set; - bool PM1BDF01_Set; - bool PM1CDF01_Set; - bool PM1DDF01_Set; - bool PM1EDF01_Set; - bool PM1FDF01_Set; - bool PM1GDF01_Set; - bool PM1HDF01_Set; - bool PM1IDF01_Set; - bool PM1JDF01_Set; - bool PM1KDF01_Set; - bool PM1LDF01_Set; - - bool BU1ASF01_Set; - bool BU1BSF01_Set; - bool BU1CSF01_Set; - bool BU1DSF01_Set; - bool BU1ESF01_Set; - bool BU1FSF01_Set; - bool BU1GSF01_Set; - bool BU1HSF01_Set; - bool BU1ISF01_Set; - bool BU1JSF01_Set; - bool BU1KSF01_Set; - bool BU1LSF01_Set; - bool BU1MSF01_Set; - bool BU1NSF01_Set; - bool BU1OSF01_Set; - bool BU1BLT01_Set; - bool BU1BLT02_Set; - bool BU1BLT03_Set; - bool BU1BLT04_Set; - bool BU1BLT05_Set; - bool BU1BLT06_Set; - bool BU1BLT07_Set; - bool BU2BLT01_Set; - bool BU2BLT02_Set; - bool BU2BLT03_Set; - bool BU2BLT04_Set; - bool BU2BLT05_Set; - bool BU3BLT01_Set; - bool BU3BLT02_Set; - bool BU3BLT03_Set; - bool BU3BLT04_Set; - bool BU3BLT05_Set; - bool BU3BLT06_Set; - bool BU3BLT07_Set; - bool BU4BLT01_Set; - bool BU4BLT02_Set; - bool BU4BLT03_Set; - bool BU4BLT04_Set; - bool BU4BLT05_Set; - bool BU4BLT06_Set; - bool BU4BLT07_Set; - bool BU5BLT01_Set; - bool BU5BLT02_Set; - bool BU5BLT03_Set; - bool BU5BLT04_Set; - bool BU1ADB01_Set; - bool BU1BDB01_Set; - bool BU1CDB01_Set; - bool BU1DDB01_Set; - bool BU1EDB01_Set; - bool BU1FDB01_Set; - bool BU1GDB01_Set; - bool BU1HDB01_Set; - bool BU1IDB01_Set; - bool BU1JDB01_Set; - bool BU1KDB01_Set; - bool BU1LDB01_Set; - bool BU1GEB02_Set; - bool BU2GEB02_Set; - bool BU3GEB02_Set; - bool BU4GEB02_Set; - bool BU5GEB02_Set; - bool BU6GEB02_Set; - bool BU7GEB02_Set; - bool BU8GEB02_Set; - bool BU1DRB01_Set; - bool BU2DRB01_Set; - bool BU3DRB01_Set; - bool BU4DRB01_Set; - bool BU1GEB01_Set; - bool BU2GEB01_Set; - bool BU3GEB01_Set; - bool BU4GEB01_Set; - bool BU5GEB01_Set; - bool BU6GEB01_Set; - bool BU7GEB01_Set; - bool BU8GEB01_Set; - bool BU2ASF01_Set; - bool BU2ASF02_Set; - bool BU2BSF01_Set; - bool BU2BSF02_Set; - bool BU2CSF01_Set; - bool BU2CSF02_Set; - bool BU2DSF01_Set; - bool BU2DSF02_Set; - bool BUWeter1_Set; - bool BUWeter2_Set; - bool BUWeter3_Set; - bool BUWeter4_Set; - bool BUWeter5_Set; - bool BUWeter6_Set; - bool BUWeter7_Set; - bool BUWeter8_Set; - - bool BU1ASF01_Alarm; - bool BU1BSF01_Alarm; - bool BU1CSF01_Alarm; - bool BU1DSF01_Alarm; - bool BU1ESF01_Alarm; - bool BU1FSF01_Alarm; - bool BU1GSF01_Alarm; - bool BU1HSF01_Alarm; - bool BU1ISF01_Alarm; - bool BU1JSF01_Alarm; - bool BU1KSF01_Alarm; - bool BU1LSF01_Alarm; - bool BU1MSF01_Alarm; - bool BU1NSF01_Alarm; - bool BU1OSF01_Alarm; - bool BU1BLT01_Alarm; - bool BU1BLT02_Alarm; - bool BU1BLT03_Alarm; - bool BU1BLT04_Alarm; - bool BU1BLT05_Alarm; - bool BU1BLT06_Alarm; - bool BU1BLT07_Alarm; - bool BU2BLT01_Alarm; - bool BU2BLT02_Alarm; - bool BU2BLT03_Alarm; - bool BU2BLT04_Alarm; - bool BU2BLT05_Alarm; - bool BU3BLT01_Alarm; - bool BU3BLT02_Alarm; - bool BU3BLT03_Alarm; - bool BU3BLT04_Alarm; - bool BU3BLT05_Alarm; - bool BU3BLT06_Alarm; - bool BU3BLT07_Alarm; - bool BU4BLT01_Alarm; - bool BU4BLT02_Alarm; - bool BU4BLT03_Alarm; - bool BU4BLT04_Alarm; - bool BU4BLT05_Alarm; - bool BU4BLT06_Alarm; - bool BU4BLT07_Alarm; - bool BU5BLT01_Alarm; - bool BU5BLT02_Alarm; - bool BU5BLT03_Alarm; - bool BU5BLT04_Alarm; - bool BU1ADB01_Alarm; - bool BU1BDB01_Alarm; - bool BU1CDB01_Alarm; - bool BU1DDB01_Alarm; - bool BU1EDB01_Alarm; - bool BU1FDB01_Alarm; - bool BU1GDB01_Alarm; - bool BU1HDB01_Alarm; - bool BU1IDB01_Alarm; - bool BU1JDB01_Alarm; - bool BU1KDB01_Alarm; - bool BU1LDB01_Alarm; - bool BU1GEB02_Alarm; - bool BU2GEB02_Alarm; - bool BU3GEB02_Alarm; - bool BU4GEB02_Alarm; - bool BU5GEB02_Alarm; - bool BU6GEB02_Alarm; - bool BU7GEB02_Alarm; - bool BU8GEB02_Alarm; - bool BU1DRB01_Alarm; - bool BU2DRB01_Alarm; - bool BU3DRB01_Alarm; - bool BU4DRB01_Alarm; - bool BU1GEB01_Alarm; - bool BU2GEB01_Alarm; - bool BU3GEB01_Alarm; - bool BU4GEB01_Alarm; - bool BU5GEB01_Alarm; - bool BU6GEB01_Alarm; - bool BU7GEB01_Alarm; - bool BU8GEB01_Alarm; - bool BU2ASF01_Alarm; - bool BU2ASF02_Alarm; - bool BU2BSF01_Alarm; - bool BU2BSF02_Alarm; - bool BU2CSF01_Alarm; - bool BU2CSF02_Alarm; - bool BU2DSF01_Alarm; - bool BU2DSF02_Alarm; - bool BUWeter1_Alarm; - bool BUWeter2_Alarm; - bool BUWeter3_Alarm; - bool BUWeter4_Alarm; - bool BUWeter5_Alarm; - bool BUWeter6_Alarm; - bool BUWeter7_Alarm; - bool BUWeter8_Alarm; - - bool DV2PCP01_SetL; - bool DV2PCP02_SetL; - bool DV2PCP03_SetL; - bool DV2PCP04_SetL; - bool DV2PCP05_SetL; - bool DV2PCP06_SetL; - bool DV2PCP07_SetL; - bool DV2PCP08_SetL; - bool DV2PCP09_SetL; - bool DV2PCP10_SetL; - bool DV2PCP11_SetL; - bool DV2PCP12_SetL; - bool DV2PCP13_SetL; - - bool DV2PCP01_SetR; - bool DV2PCP02_SetR; - bool DV2PCP03_SetR; - bool DV2PCP04_SetR; - bool DV2PCP05_SetR; - bool DV2PCP06_SetR; - bool DV2PCP07_SetR; - bool DV2PCP08_SetR; - bool DV2PCP09_SetR; - bool DV2PCP10_SetR; - bool DV2PCP11_SetR; - bool DV2PCP12_SetR; - bool DV2PCP13_SetR; - - bool DV2PCP01_AlarmL; - bool DV2PCP02_AlarmL; - bool DV2PCP03_AlarmL; - bool DV2PCP04_AlarmL; - bool DV2PCP05_AlarmL; - bool DV2PCP06_AlarmL; - bool DV2PCP07_AlarmL; - bool DV2PCP08_AlarmL; - bool DV2PCP09_AlarmL; - bool DV2PCP10_AlarmL; - bool DV2PCP11_AlarmL; - bool DV2PCP12_AlarmL; - bool DV2PCP13_AlarmL; - - bool DV2PCP01_AlarmR; - bool DV2PCP02_AlarmR; - bool DV2PCP03_AlarmR; - bool DV2PCP04_AlarmR; - bool DV2PCP05_AlarmR; - bool DV2PCP06_AlarmR; - bool DV2PCP07_AlarmR; - bool DV2PCP08_AlarmR; - bool DV2PCP09_AlarmR; - bool DV2PCP10_AlarmR; - bool DV2PCP11_AlarmR; - bool DV2PCP12_AlarmR; - bool DV2PCP13_AlarmR; + #region 控件变量 - #endregion - + private List Controls; + private List McControllist; + private DeviceDetailEntity DeviceDetailReportForm = new DeviceDetailEntity(); + private PlcReadTempEntity PlcReadTemp = new PlcReadTempEntity(); + private DbMCControl AlarmForm = null; //物料列表控件 private MCLabel MCWatchDog; + #endregion + + #region Run方法 + public void Run(RuntimeParameter runtime) { @@ -898,213 +70,21 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl //this.GetDbMCControlByKey(Mesnac.Basic.DataSourceFactory.MCDbType.Local, "AlarmForm").FirstOrDefault(); //获取物料数据控件 - #region 报表实体类对应前端控件 - - DeviceDetailForm.DAMode = StringToLable("DAMode"); - DeviceDetailForm.DAStatus = StringToLable("DAStatus"); - DeviceDetailForm.DABatch = StringToLable("DABatch"); - DeviceDetailForm.DAStep = StringToLable("DAStep"); - DeviceDetailForm.DAStepCode = StringToLable("DAStepCode"); - DeviceDetailForm.DATotalTime = StringToLable("DATotalTime"); - DeviceDetailForm.DAStepTime = StringToLable("DAStepTime"); - DeviceDetailForm.DASpeed = StringToLable("DASpeed"); - - DeviceDetailForm.DBMode = StringToLable("DBMode"); - DeviceDetailForm.DBStatus = StringToLable("DBStatus"); - DeviceDetailForm.DBBatch = StringToLable("DBBatch"); - DeviceDetailForm.DBStep = StringToLable("DBStep"); - DeviceDetailForm.DBStepCode = StringToLable("DBStepCode"); - DeviceDetailForm.DBTotalTime = StringToLable("DBTotalTime"); - DeviceDetailForm.DBStepTime = StringToLable("DBStepTime"); - DeviceDetailForm.DBSpeed = StringToLable("DBSpeed"); - - DeviceDetailForm.DCMode = StringToLable("DCMode"); - DeviceDetailForm.DCStatus = StringToLable("DCStatus"); - DeviceDetailForm.DCBatch = StringToLable("DCBatch"); - DeviceDetailForm.DCStep = StringToLable("DCStep"); - DeviceDetailForm.DCStepCode = StringToLable("DCStepCode"); - DeviceDetailForm.DCTotalTime = StringToLable("DCTotalTime"); - DeviceDetailForm.DCStepTime = StringToLable("DCStepTime"); - DeviceDetailForm.DCSpeed = StringToLable("DCSpeed"); - - DeviceDetailForm.DDMode = StringToLable("DDMode"); - DeviceDetailForm.DDStatus = StringToLable("DDStatus"); - DeviceDetailForm.DDBatch = StringToLable("DDBatch"); - DeviceDetailForm.DDStep = StringToLable("DDStep"); - DeviceDetailForm.DDStepCode = StringToLable("DDStepCode"); - DeviceDetailForm.DDTotalTime = StringToLable("DDTotalTime"); - DeviceDetailForm.DDStepTime = StringToLable("DDStepTime"); - DeviceDetailForm.DDSpeed = StringToLable("DDSpeed"); - - - - DeviceDetailForm.WAMode = StringToLable("WAMode"); - DeviceDetailForm.WAStatus = StringToLable("WAStatus"); - DeviceDetailForm.WABatch = StringToLable("WABatch"); - DeviceDetailForm.WAStep = StringToLable("WAStep"); - DeviceDetailForm.WAStepCode = StringToLable("WAStepCode"); - DeviceDetailForm.WATotalTime = StringToLable("WATotalTime"); - DeviceDetailForm.WAStepTime = StringToLable("WAStepTime"); - DeviceDetailForm.WASpeed = StringToLable("WASpeed"); - DeviceDetailForm.WACurrent = StringToLable("WACurrent"); - DeviceDetailForm.WAPressure = StringToLable("WAPressure"); - - DeviceDetailForm.WBMode = StringToLable("WBMode"); - DeviceDetailForm.WBStatus = StringToLable("WBStatus"); - DeviceDetailForm.WBBatch = StringToLable("WBBatch"); - DeviceDetailForm.WBStep = StringToLable("WBStep"); - DeviceDetailForm.WBStepCode = StringToLable("WBStepCode"); - DeviceDetailForm.WBTotalTime = StringToLable("WBTotalTime"); - DeviceDetailForm.WBStepTime = StringToLable("WBStepTime"); - DeviceDetailForm.WBSpeed = StringToLable("WBSpeed"); - DeviceDetailForm.WBCurrent = StringToLable("WBCurrent"); - DeviceDetailForm.WBPressure = StringToLable("WBPressure"); - - DeviceDetailForm.WCMode = StringToLable("WCMode"); - DeviceDetailForm.WCStatus = StringToLable("WCStatus"); - DeviceDetailForm.WCBatch = StringToLable("WCBatch"); - DeviceDetailForm.WCStep = StringToLable("WCStep"); - DeviceDetailForm.WCStepCode = StringToLable("WCStepCode"); - DeviceDetailForm.WCTotalTime = StringToLable("WCTotalTime"); - DeviceDetailForm.WCStepTime = StringToLable("WCStepTime"); - DeviceDetailForm.WCSpeed = StringToLable("WCSpeed"); - DeviceDetailForm.WCCurrent = StringToLable("WCCurrent"); - DeviceDetailForm.WCPressure = StringToLable("WCPressure"); - - DeviceDetailForm.WDMode = StringToLable("WDMode"); - DeviceDetailForm.WDStatus = StringToLable("WDStatus"); - DeviceDetailForm.WDBatch = StringToLable("WDBatch"); - DeviceDetailForm.WDStep = StringToLable("WDStep"); - DeviceDetailForm.WDStepCode = StringToLable("WDStepCode"); - DeviceDetailForm.WDTotalTime = StringToLable("WDTotalTime"); - DeviceDetailForm.WDStepTime = StringToLable("WDStepTime"); - DeviceDetailForm.WDSpeed = StringToLable("WDSpeed"); - DeviceDetailForm.WDCurrent = StringToLable("WDCurrent"); - DeviceDetailForm.WDPressure = StringToLable("WDPressure"); - - DeviceDetailForm.WEMode = StringToLable("WEMode"); - DeviceDetailForm.WEStatus = StringToLable("WEStatus"); - DeviceDetailForm.WEBatch = StringToLable("WEBatch"); - DeviceDetailForm.WEStep = StringToLable("WEStep"); - DeviceDetailForm.WEStepCode = StringToLable("WEStepCode"); - DeviceDetailForm.WETotalTime = StringToLable("WETotalTime"); - DeviceDetailForm.WEStepTime = StringToLable("WEStepTime"); - DeviceDetailForm.WESpeed = StringToLable("WESpeed"); - DeviceDetailForm.WECurrent = StringToLable("WECurrent"); - DeviceDetailForm.WEPressure = StringToLable("WEPressure"); - - DeviceDetailForm.WFMode = StringToLable("WFMode"); - DeviceDetailForm.WFStatus = StringToLable("WFStatus"); - DeviceDetailForm.WFBatch = StringToLable("WFBatch"); - DeviceDetailForm.WFStep = StringToLable("WFStep"); - DeviceDetailForm.WFStepCode = StringToLable("WFStepCode"); - DeviceDetailForm.WFTotalTime = StringToLable("WFTotalTime"); - DeviceDetailForm.WFStepTime = StringToLable("WFStepTime"); - DeviceDetailForm.WFSpeed = StringToLable("WFSpeed"); - DeviceDetailForm.WFCurrent = StringToLable("WFCurrent"); - DeviceDetailForm.WFPressure = StringToLable("WFPressure"); - - DeviceDetailForm.WGMode = StringToLable("WGMode"); - DeviceDetailForm.WGStatus = StringToLable("WGStatus"); - DeviceDetailForm.WGBatch = StringToLable("WGBatch"); - DeviceDetailForm.WGStep = StringToLable("WGStep"); - DeviceDetailForm.WGStepCode = StringToLable("WGStepCode"); - DeviceDetailForm.WGTotalTime = StringToLable("WGTotalTime"); - DeviceDetailForm.WGStepTime = StringToLable("WGStepTime"); - DeviceDetailForm.WGSpeed = StringToLable("WGSpeed"); - DeviceDetailForm.WGCurrent = StringToLable("WGCurrent"); - DeviceDetailForm.WGPressure = StringToLable("WGPressure"); - - DeviceDetailForm.WHMode = StringToLable("WHMode"); - DeviceDetailForm.WHStatus = StringToLable("WHStatus"); - DeviceDetailForm.WHBatch = StringToLable("WHBatch"); - DeviceDetailForm.WHStep = StringToLable("WHStep"); - DeviceDetailForm.WHStepCode = StringToLable("WHStepCode"); - DeviceDetailForm.WHTotalTime = StringToLable("WHTotalTime"); - DeviceDetailForm.WHStepTime = StringToLable("WHStepTime"); - DeviceDetailForm.WHSpeed = StringToLable("WHSpeed"); - DeviceDetailForm.WHCurrent = StringToLable("WHCurrent"); - DeviceDetailForm.WHPressure = StringToLable("WHPressure"); - - - - DeviceDetailForm.GAMode = StringToLable("GAMode"); - DeviceDetailForm.GAStatus = StringToLable("GAStatus"); - DeviceDetailForm.GABatch = StringToLable("GABatch"); - DeviceDetailForm.GAStep = StringToLable("GAStep"); - DeviceDetailForm.GAStepCode = StringToLable("GAStepCode"); - DeviceDetailForm.GATotalTime = StringToLable("GATotalTime"); - DeviceDetailForm.GAStepTime = StringToLable("GAStepTime"); - DeviceDetailForm.GASpeed = StringToLable("GASpeed"); - - DeviceDetailForm.GBMode = StringToLable("GBMode"); - DeviceDetailForm.GBStatus = StringToLable("GBStatus"); - DeviceDetailForm.GBBatch = StringToLable("GBBatch"); - DeviceDetailForm.GBStep = StringToLable("GBStep"); - DeviceDetailForm.GBStepCode = StringToLable("GBStepCode"); - DeviceDetailForm.GBTotalTime = StringToLable("GBTotalTime"); - DeviceDetailForm.GBStepTime = StringToLable("GBStepTime"); - DeviceDetailForm.GBSpeed = StringToLable("GBSpeed"); - - DeviceDetailForm.GCMode = StringToLable("GCMode"); - DeviceDetailForm.GCStatus = StringToLable("GCStatus"); - DeviceDetailForm.GCBatch = StringToLable("GCBatch"); - DeviceDetailForm.GCStep = StringToLable("GCStep"); - DeviceDetailForm.GCStepCode = StringToLable("GCStepCode"); - DeviceDetailForm.GCTotalTime = StringToLable("GCTotalTime"); - DeviceDetailForm.GCStepTime = StringToLable("GCStepTime"); - DeviceDetailForm.GCSpeed = StringToLable("GCSpeed"); - - DeviceDetailForm.GDMode = StringToLable("GDMode"); - DeviceDetailForm.GDStatus = StringToLable("GDStatus"); - DeviceDetailForm.GDBatch = StringToLable("GDBatch"); - DeviceDetailForm.GDStep = StringToLable("GDStep"); - DeviceDetailForm.GDStepCode = StringToLable("GDStepCode"); - DeviceDetailForm.GDTotalTime = StringToLable("GDTotalTime"); - DeviceDetailForm.GDStepTime = StringToLable("GDStepTime"); - DeviceDetailForm.GDSpeed = StringToLable("GDSpeed"); - - DeviceDetailForm.GEMode = StringToLable("GEMode"); - DeviceDetailForm.GEStatus = StringToLable("GEStatus"); - DeviceDetailForm.GEBatch = StringToLable("GEBatch"); - DeviceDetailForm.GEStep = StringToLable("GEStep"); - DeviceDetailForm.GEStepCode = StringToLable("GEStepCode"); - DeviceDetailForm.GETotalTime = StringToLable("GETotalTime"); - DeviceDetailForm.GEStepTime = StringToLable("GEStepTime"); - DeviceDetailForm.GESpeed = StringToLable("GESpeed"); - - DeviceDetailForm.GFMode = StringToLable("GFMode"); - DeviceDetailForm.GFStatus = StringToLable("GFStatus"); - DeviceDetailForm.GFBatch = StringToLable("GFBatch"); - DeviceDetailForm.GFStep = StringToLable("GFStep"); - DeviceDetailForm.GFStepCode = StringToLable("GFStepCode"); - DeviceDetailForm.GFTotalTime = StringToLable("GFTotalTime"); - DeviceDetailForm.GFStepTime = StringToLable("GFStepTime"); - DeviceDetailForm.GFSpeed = StringToLable("GFSpeed"); - - DeviceDetailForm.GGMode = StringToLable("GGMode"); - DeviceDetailForm.GGStatus = StringToLable("GGStatus"); - DeviceDetailForm.GGBatch = StringToLable("GGBatch"); - DeviceDetailForm.GGStep = StringToLable("GGStep"); - DeviceDetailForm.GGStepCode = StringToLable("GGStepCode"); - DeviceDetailForm.GGTotalTime = StringToLable("GGTotalTime"); - DeviceDetailForm.GGStepTime = StringToLable("GGStepTime"); - DeviceDetailForm.GGSpeed = StringToLable("GGSpeed"); - - DeviceDetailForm.GHMode = StringToLable("GHMode"); - DeviceDetailForm.GHStatus = StringToLable("GHStatus"); - DeviceDetailForm.GHBatch = StringToLable("GHBatch"); - DeviceDetailForm.GHStep = StringToLable("GHStep"); - DeviceDetailForm.GHStepCode = StringToLable("GHStepCode"); - DeviceDetailForm.GHTotalTime = StringToLable("GHTotalTime"); - DeviceDetailForm.GHStepTime = StringToLable("GHStepTime"); - DeviceDetailForm.GHSpeed = StringToLable("GHSpeed"); - #endregion - Controls = GetAllControls(); - MCWatchDog =Controls.FirstOrDefault(x=>x.Name=="MCWatchDog") as MCLabel; - + MCWatchDog =Controls.FirstOrDefault(x => x.Name == "MCWatchDog") as MCLabel; + + ParametersWithPCTable.Columns.Add("id", typeof(string)); + ParametersWithPCTable.Columns.Add("mode", typeof(bool)); + ParametersWithPCTable.Columns.Add("status", typeof(bool)); + ParametersWithPCTable.Columns.Add("batch", typeof(int)); + ParametersWithPCTable.Columns.Add("step", typeof(int)); + ParametersWithPCTable.Columns.Add("stepName", typeof(int)); + ParametersWithPCTable.Columns.Add("totalTime", typeof(int)); + ParametersWithPCTable.Columns.Add("stepTime", typeof(int)); + ParametersWithPCTable.Columns.Add("speed", typeof(float)); + ParametersWithPCTable.Columns.Add("currnet", typeof(float)); + ParametersWithPCTable.Columns.Add("pressure", typeof(float)); SetControl(); @@ -1120,368 +100,441 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl } + #endregion + + #region 线程新建,计时器调用 + + /// + /// 新建PLC读取线程 + /// + /// + private void NewThread(object obj) + { + try + { + + if (conCurrentCache.Count == 0) + { + MesnacServiceManager.Instance.LoggingService.Info("开始"); + Stopwatch stopwatch = new Stopwatch(); + stopwatch.Start(); + + conCurrentCache.TryAdd("plc", DateTime.Now); + + DB2102 = new DB2102Helper(); + DB2103 = new DB2103Helper(); + DB2107 = new DB2107Helper(); + + NewThreadDb2102(); + NewThreadDb2103(); + NewThreadDb2107(); + + conCurrentCache.Clear(); + + stopwatch.Stop(); + var send = stopwatch.ElapsedMilliseconds; + MesnacServiceManager.Instance.LoggingService.Info("结束" + send); + + conCurrentCache.Clear(); + } + else + { + MesnacServiceManager.Instance.LoggingService.Info("设备细节画面读数线程被过滤"); + } + } + catch (Exception ex) + { + conCurrentCache.Clear(); + } + + + + } + + /// + /// Plc读数线程池,定时器退出删除 + /// + private void GetPlcValue(object sender, EventArgs e) + { + int x = GetAllDbMCControlsByOption(DbOptionTypes.QueryAndModify).Count; + if (GetAllDbMCControlsByOption(DbOptionTypes.QueryAndModify).Count == 0) + { + timer.Stop(); + timer.Dispose(); + } + + + ThreadPool.QueueUserWorkItem(new WaitCallback(NewThread)); + + } + + #endregion + + #region 图像数据读取、控件赋值 + /// /// DB2102数据读取、控件赋值 /// private void NewThreadDb2102() { - BU1ASF01_Set = DB2102.BU1ASF01.Set; - BU1BSF01_Set = DB2102.BU1BSF01.Set; - BU1CSF01_Set = DB2102.BU1CSF01.Set; - BU1DSF01_Set = DB2102.BU1DSF01.Set; - BU1ESF01_Set = DB2102.BU1ESF01.Set; - BU1FSF01_Set = DB2102.BU1FSF01.Set; - BU1GSF01_Set = DB2102.BU1GSF01.Set; - BU1HSF01_Set = DB2102.BU1HSF01.Set; - BU1ISF01_Set = DB2102.BU1ISF01.Set; - BU1JSF01_Set = DB2102.BU1JSF01.Set; - BU1KSF01_Set = DB2102.BU1KSF01.Set; - BU1LSF01_Set = DB2102.BU1LSF01.Set; - BU1MSF01_Set = DB2102.BU1MSF01.Set; - BU1NSF01_Set = DB2102.BU1NSF01.Set; - BU1OSF01_Set = DB2102.BU1OSF01.Set; - BU1BLT01_Set = DB2102.BU1BLT01.Set; - BU1BLT02_Set = DB2102.BU1BLT02.Set; - BU1BLT03_Set = DB2102.BU1BLT03.Set; - BU1BLT04_Set = DB2102.BU1BLT04.Set; - BU1BLT05_Set = DB2102.BU1BLT05.Set; - BU1BLT06_Set = DB2102.BU1BLT06.Set; - BU1BLT07_Set = DB2102.BU1BLT07.Set; - BU2BLT01_Set = DB2102.BU2BLT01.Set; - BU2BLT02_Set = DB2102.BU2BLT02.Set; - BU2BLT03_Set = DB2102.BU2BLT03.Set; - BU2BLT04_Set = DB2102.BU2BLT04.Set; - BU2BLT05_Set = DB2102.BU2BLT05.Set; - BU3BLT01_Set = DB2102.BU3BLT01.Set; - BU3BLT02_Set = DB2102.BU3BLT02.Set; - BU3BLT03_Set = DB2102.BU3BLT03.Set; - BU3BLT04_Set = DB2102.BU3BLT04.Set; - BU3BLT05_Set = DB2102.BU3BLT05.Set; - BU3BLT06_Set = DB2102.BU3BLT06.Set; - BU3BLT07_Set = DB2102.BU3BLT07.Set; - BU4BLT01_Set = DB2102.BU4BLT01.Set; - BU4BLT02_Set = DB2102.BU4BLT02.Set; - BU4BLT03_Set = DB2102.BU4BLT03.Set; - BU4BLT04_Set = DB2102.BU4BLT04.Set; - BU4BLT05_Set = DB2102.BU4BLT05.Set; - BU4BLT06_Set = DB2102.BU4BLT06.Set; - BU4BLT07_Set = DB2102.BU4BLT07.Set; - BU5BLT01_Set = DB2102.BU5BLT01.Set; - BU5BLT02_Set = DB2102.BU5BLT02.Set; - BU5BLT03_Set = DB2102.BU5BLT03.Set; - BU5BLT04_Set = DB2102.BU5BLT04.Set; - BU1ADB01_Set = DB2102.BU1ADB01.Set; - BU1BDB01_Set = DB2102.BU1BDB01.Set; - BU1CDB01_Set = DB2102.BU1CDB01.Set; - BU1DDB01_Set = DB2102.BU1DDB01.Set; - BU1EDB01_Set = DB2102.BU1EDB01.Set; - BU1FDB01_Set = DB2102.BU1FDB01.Set; - BU1GDB01_Set = DB2102.BU1GDB01.Set; - BU1HDB01_Set = DB2102.BU1HDB01.Set; - BU1IDB01_Set = DB2102.BU1IDB01.Set; - BU1JDB01_Set = DB2102.BU1JDB01.Set; - BU1KDB01_Set = DB2102.BU1KDB01.Set; - BU1LDB01_Set = DB2102.BU1LDB01.Set; - - - BU1GEB02_Set = DB2102.BU1GEB02.Set; - BU2GEB02_Set = DB2102.BU2GEB02.Set; - BU3GEB02_Set = DB2102.BU3GEB02.Set; - BU4GEB02_Set = DB2102.BU4GEB02.Set; - BU5GEB02_Set = DB2102.BU5GEB02.Set; - BU6GEB02_Set = DB2102.BU6GEB02.Set; - BU7GEB02_Set = DB2102.BU7GEB02.Set; - BU8GEB02_Set = DB2102.BU8GEB02.Set; - BU1DRB01_Set = DB2102.BU1DRB01.Set; - BU2DRB01_Set = DB2102.BU2DRB01.Set; - BU3DRB01_Set = DB2102.BU3DRB01.Set; - BU4DRB01_Set = DB2102.BU4DRB01.Set; - BU1GEB01_Set = DB2102.BU1GEB01.Set; - BU2GEB01_Set = DB2102.BU2GEB01.Set; - BU3GEB01_Set = DB2102.BU3GEB01.Set; - BU4GEB01_Set = DB2102.BU4GEB01.Set; - BU5GEB01_Set = DB2102.BU5GEB01.Set; - BU6GEB01_Set = DB2102.BU6GEB01.Set; - BU7GEB01_Set = DB2102.BU7GEB01.Set; - BU8GEB01_Set = DB2102.BU8GEB01.Set; - BU2ASF01_Set = DB2102.BU2ASF01.Set; - BU2ASF02_Set = DB2102.BU2ASF02.Set; - BU2BSF01_Set = DB2102.BU2BSF01.Set; - BU2BSF02_Set = DB2102.BU2BSF02.Set; - BU2CSF01_Set = DB2102.BU2CSF01.Set; - BU2CSF02_Set = DB2102.BU2CSF02.Set; - BU2DSF01_Set = DB2102.BU2DSF01.Set; - BU2DSF02_Set = DB2102.BU2DSF02.Set; - BUWeter1_Set = DB2102.BUWeter1.Set; - BUWeter2_Set = DB2102.BUWeter2.Set; - BUWeter3_Set = DB2102.BUWeter3.Set; - BUWeter4_Set = DB2102.BUWeter4.Set; - BUWeter5_Set = DB2102.BUWeter5.Set; - BUWeter6_Set = DB2102.BUWeter6.Set; - BUWeter7_Set = DB2102.BUWeter7.Set; - BUWeter8_Set = DB2102.BUWeter8.Set; - - BU1ASF01_Alarm = DB2102.BU1ASF01.Alarm; - BU1BSF01_Alarm = DB2102.BU1BSF01.Alarm; - BU1CSF01_Alarm = DB2102.BU1CSF01.Alarm; - BU1DSF01_Alarm = DB2102.BU1DSF01.Alarm; - BU1ESF01_Alarm = DB2102.BU1ESF01.Alarm; - BU1FSF01_Alarm = DB2102.BU1FSF01.Alarm; - BU1GSF01_Alarm = DB2102.BU1GSF01.Alarm; - BU1HSF01_Alarm = DB2102.BU1HSF01.Alarm; - BU1ISF01_Alarm = DB2102.BU1ISF01.Alarm; - BU1JSF01_Alarm = DB2102.BU1JSF01.Alarm; - BU1KSF01_Alarm = DB2102.BU1KSF01.Alarm; - BU1LSF01_Alarm = DB2102.BU1LSF01.Alarm; - BU1MSF01_Alarm = DB2102.BU1MSF01.Alarm; - BU1NSF01_Alarm = DB2102.BU1NSF01.Alarm; - BU1OSF01_Alarm = DB2102.BU1OSF01.Alarm; - BU1BLT01_Alarm = DB2102.BU1BLT01.Alarm; - BU1BLT02_Alarm = DB2102.BU1BLT02.Alarm; - BU1BLT03_Alarm = DB2102.BU1BLT03.Alarm; - BU1BLT04_Alarm = DB2102.BU1BLT04.Alarm; - BU1BLT05_Alarm = DB2102.BU1BLT05.Alarm; - BU1BLT06_Alarm = DB2102.BU1BLT06.Alarm; - BU1BLT07_Alarm = DB2102.BU1BLT07.Alarm; - BU2BLT01_Alarm = DB2102.BU2BLT01.Alarm; - BU2BLT02_Alarm = DB2102.BU2BLT02.Alarm; - BU2BLT03_Alarm = DB2102.BU2BLT03.Alarm; - BU2BLT04_Alarm = DB2102.BU2BLT04.Alarm; - BU2BLT05_Alarm = DB2102.BU2BLT05.Alarm; - BU3BLT01_Alarm = DB2102.BU3BLT01.Alarm; - BU3BLT02_Alarm = DB2102.BU3BLT02.Alarm; - BU3BLT03_Alarm = DB2102.BU3BLT03.Alarm; - BU3BLT04_Alarm = DB2102.BU3BLT04.Alarm; - BU3BLT05_Alarm = DB2102.BU3BLT05.Alarm; - BU3BLT06_Alarm = DB2102.BU3BLT06.Alarm; - BU3BLT07_Alarm = DB2102.BU3BLT07.Alarm; - BU4BLT01_Alarm = DB2102.BU4BLT01.Alarm; - BU4BLT02_Alarm = DB2102.BU4BLT02.Alarm; - BU4BLT03_Alarm = DB2102.BU4BLT03.Alarm; - BU4BLT04_Alarm = DB2102.BU4BLT04.Alarm; - BU4BLT05_Alarm = DB2102.BU4BLT05.Alarm; - BU4BLT06_Alarm = DB2102.BU4BLT06.Alarm; - BU4BLT07_Alarm = DB2102.BU4BLT07.Alarm; - BU5BLT01_Alarm = DB2102.BU5BLT01.Alarm; - BU5BLT02_Alarm = DB2102.BU5BLT02.Alarm; - BU5BLT03_Alarm = DB2102.BU5BLT03.Alarm; - BU5BLT04_Alarm = DB2102.BU5BLT04.Alarm; - BU1ADB01_Alarm = DB2102.BU1ADB01.Alarm; - BU1BDB01_Alarm = DB2102.BU1BDB01.Alarm; - BU1CDB01_Alarm = DB2102.BU1CDB01.Alarm; - BU1DDB01_Alarm = DB2102.BU1DDB01.Alarm; - BU1EDB01_Alarm = DB2102.BU1EDB01.Alarm; - BU1FDB01_Alarm = DB2102.BU1FDB01.Alarm; - BU1GDB01_Alarm = DB2102.BU1GDB01.Alarm; - BU1HDB01_Alarm = DB2102.BU1HDB01.Alarm; - BU1IDB01_Alarm = DB2102.BU1IDB01.Alarm; - BU1JDB01_Alarm = DB2102.BU1JDB01.Alarm; - BU1KDB01_Alarm = DB2102.BU1KDB01.Alarm; - BU1LDB01_Alarm = DB2102.BU1LDB01.Alarm; - - BU1GEB02_Alarm = DB2102.BU1GEB02.Alarm; - BU2GEB02_Alarm = DB2102.BU2GEB02.Alarm; - BU3GEB02_Alarm = DB2102.BU3GEB02.Alarm; - BU4GEB02_Alarm = DB2102.BU4GEB02.Alarm; - BU5GEB02_Alarm = DB2102.BU5GEB02.Alarm; - BU6GEB02_Alarm = DB2102.BU6GEB02.Alarm; - BU7GEB02_Alarm = DB2102.BU7GEB02.Alarm; - BU8GEB02_Alarm = DB2102.BU8GEB02.Alarm; - BU1DRB01_Alarm = DB2102.BU1DRB01.Alarm; - BU2DRB01_Alarm = DB2102.BU2DRB01.Alarm; - BU3DRB01_Alarm = DB2102.BU3DRB01.Alarm; - BU4DRB01_Alarm = DB2102.BU4DRB01.Alarm; - BU1GEB01_Alarm = DB2102.BU1GEB01.Alarm; - BU2GEB01_Alarm = DB2102.BU2GEB01.Alarm; - BU3GEB01_Alarm = DB2102.BU3GEB01.Alarm; - BU4GEB01_Alarm = DB2102.BU4GEB01.Alarm; - BU5GEB01_Alarm = DB2102.BU5GEB01.Alarm; - BU6GEB01_Alarm = DB2102.BU6GEB01.Alarm; - BU7GEB01_Alarm = DB2102.BU7GEB01.Alarm; - BU8GEB01_Alarm = DB2102.BU8GEB01.Alarm; - BU2ASF01_Alarm = DB2102.BU2ASF01.Alarm; - BU2ASF02_Alarm = DB2102.BU2ASF02.Alarm; - BU2BSF01_Alarm = DB2102.BU2BSF01.Alarm; - BU2BSF02_Alarm = DB2102.BU2BSF02.Alarm; - BU2CSF01_Alarm = DB2102.BU2CSF01.Alarm; - BU2CSF02_Alarm = DB2102.BU2CSF02.Alarm; - BU2DSF01_Alarm = DB2102.BU2DSF01.Alarm; - BU2DSF02_Alarm = DB2102.BU2DSF02.Alarm; - BUWeter1_Alarm = DB2102.BUWeter1.Alarm; - BUWeter2_Alarm = DB2102.BUWeter2.Alarm; - BUWeter3_Alarm = DB2102.BUWeter3.Alarm; - BUWeter4_Alarm = DB2102.BUWeter4.Alarm; - BUWeter5_Alarm = DB2102.BUWeter5.Alarm; - BUWeter6_Alarm = DB2102.BUWeter6.Alarm; - BUWeter7_Alarm = DB2102.BUWeter7.Alarm; - BUWeter8_Alarm = DB2102.BUWeter8.Alarm; - - - - DV2PCP01_SetL = DB2102.DV2PCP01.SetLeft; - DV2PCP02_SetL = DB2102.DV2PCP02.SetLeft; - DV2PCP03_SetL = DB2102.DV2PCP03.SetLeft; - DV2PCP04_SetL = DB2102.DV2PCP04.SetLeft; - DV2PCP05_SetL = DB2102.DV2PCP05.SetLeft; - DV2PCP06_SetL = DB2102.DV2PCP06.SetLeft; - DV2PCP07_SetL = DB2102.DV2PCP07.SetLeft; - DV2PCP08_SetL = DB2102.DV2PCP08.SetLeft; - DV2PCP09_SetL = DB2102.DV2PCP09.SetLeft; - DV2PCP10_SetL = DB2102.DV2PCP10.SetLeft; - DV2PCP11_SetL = DB2102.DV2PCP11.SetLeft; - DV2PCP12_SetL = DB2102.DV2PCP12.SetLeft; - DV2PCP13_SetL = DB2102.DV2PCP13.SetLeft; - - DV2PCP01_SetR = DB2102.DV2PCP01.SetRight; - DV2PCP02_SetR = DB2102.DV2PCP02.SetRight; - DV2PCP03_SetR = DB2102.DV2PCP03.SetRight; - DV2PCP04_SetR = DB2102.DV2PCP04.SetRight; - DV2PCP05_SetR = DB2102.DV2PCP05.SetRight; - DV2PCP06_SetR = DB2102.DV2PCP06.SetRight; - DV2PCP07_SetR = DB2102.DV2PCP07.SetRight; - DV2PCP08_SetR = DB2102.DV2PCP08.SetRight; - DV2PCP09_SetR = DB2102.DV2PCP09.SetRight; - DV2PCP10_SetR = DB2102.DV2PCP10.SetRight; - DV2PCP11_SetR = DB2102.DV2PCP11.SetRight; - DV2PCP12_SetR = DB2102.DV2PCP12.SetRight; - DV2PCP13_SetR = DB2102.DV2PCP13.SetRight; - - DV2PCP01_AlarmL = DB2102.DV2PCP01.AlarmLeftPosition; - DV2PCP02_AlarmL = DB2102.DV2PCP02.AlarmLeftPosition; - DV2PCP03_AlarmL = DB2102.DV2PCP03.AlarmLeftPosition; - DV2PCP04_AlarmL = DB2102.DV2PCP04.AlarmLeftPosition; - DV2PCP05_AlarmL = DB2102.DV2PCP05.AlarmLeftPosition; - DV2PCP06_AlarmL = DB2102.DV2PCP06.AlarmLeftPosition; - DV2PCP07_AlarmL = DB2102.DV2PCP07.AlarmLeftPosition; - DV2PCP08_AlarmL = DB2102.DV2PCP08.AlarmLeftPosition; - DV2PCP09_AlarmL = DB2102.DV2PCP09.AlarmLeftPosition; - DV2PCP10_AlarmL = DB2102.DV2PCP10.AlarmLeftPosition; - DV2PCP11_AlarmL = DB2102.DV2PCP11.AlarmLeftPosition; - DV2PCP12_AlarmL = DB2102.DV2PCP12.AlarmLeftPosition; - DV2PCP13_AlarmL = DB2102.DV2PCP13.AlarmLeftPosition; - - DV2PCP01_AlarmR = DB2102.DV2PCP01.AlarmRightPosition; - DV2PCP02_AlarmR = DB2102.DV2PCP02.AlarmRightPosition; - DV2PCP03_AlarmR = DB2102.DV2PCP03.AlarmRightPosition; - DV2PCP04_AlarmR = DB2102.DV2PCP04.AlarmRightPosition; - DV2PCP05_AlarmR = DB2102.DV2PCP05.AlarmRightPosition; - DV2PCP06_AlarmR = DB2102.DV2PCP06.AlarmRightPosition; - DV2PCP07_AlarmR = DB2102.DV2PCP07.AlarmRightPosition; - DV2PCP08_AlarmR = DB2102.DV2PCP08.AlarmRightPosition; - DV2PCP09_AlarmR = DB2102.DV2PCP09.AlarmRightPosition; - DV2PCP10_AlarmR = DB2102.DV2PCP10.AlarmRightPosition; - DV2PCP11_AlarmR = DB2102.DV2PCP11.AlarmRightPosition; - DV2PCP12_AlarmR = DB2102.DV2PCP12.AlarmRightPosition; - DV2PCP13_AlarmR = DB2102.DV2PCP13.AlarmRightPosition; - - - SetThreeWayValve(DV2PCP01, DV2PCP01_AlarmR, DV2PCP01_SetR, DV2PCP01_AlarmL, DV2PCP01_SetL); - SetThreeWayValve(DV2PCP02, DV2PCP02_AlarmR, DV2PCP02_SetR, DV2PCP02_AlarmL, DV2PCP02_SetL); - SetThreeWayValve(DV2PCP03, DV2PCP03_AlarmR, DV2PCP03_SetR, DV2PCP03_AlarmL, DV2PCP03_SetL); - SetThreeWayValve(DV2PCP04, DV2PCP04_AlarmR, DV2PCP04_SetR, DV2PCP04_AlarmL, DV2PCP04_SetL); - SetThreeWayValve(DV2PCP05, DV2PCP05_AlarmR, DV2PCP05_SetR, DV2PCP05_AlarmL, DV2PCP05_SetL); - SetThreeWayValve(DV2PCP06, DV2PCP06_AlarmR, DV2PCP06_SetR, DV2PCP06_AlarmL, DV2PCP06_SetL); - SetThreeWayValve(DV2PCP07, DV2PCP07_AlarmR, DV2PCP07_SetR, DV2PCP07_AlarmL, DV2PCP07_SetL); - SetThreeWayValve(DV2PCP08, DV2PCP08_AlarmR, DV2PCP08_SetR, DV2PCP08_AlarmL, DV2PCP08_SetL); - SetThreeWayValve(DV2PCP09, DV2PCP09_AlarmR, DV2PCP09_SetR, DV2PCP09_AlarmL, DV2PCP09_SetL); - SetThreeWayValve(DV2PCP10, DV2PCP10_AlarmR, DV2PCP10_SetR, DV2PCP10_AlarmL, DV2PCP10_SetL); - SetThreeWayValve(DV2PCP11, DV2PCP11_AlarmR, DV2PCP11_SetR, DV2PCP11_AlarmL, DV2PCP11_SetL); - SetThreeWayValve(DV2PCP12, DV2PCP12_AlarmR, DV2PCP12_SetR, DV2PCP12_AlarmL, DV2PCP12_SetL); - SetThreeWayValve(DV2PCP13, DV2PCP13_AlarmR, DV2PCP13_SetR, DV2PCP13_AlarmL, DV2PCP13_SetL); - - SetLjSwith(BU1ASF01, BU1ASF01_Set, BU1ASF01_Alarm); - SetLjSwith(BU1BSF01, BU1BSF01_Set, BU1BSF01_Alarm); - SetLjSwith(BU1CSF01, BU1CSF01_Set, BU1CSF01_Alarm); - SetLjSwith(BU1DSF01, BU1DSF01_Set, BU1DSF01_Alarm); - SetLjSwith(BU1ESF01, BU1ESF01_Set, BU1ESF01_Alarm); - SetLjSwith(BU1FSF01, BU1FSF01_Set, BU1FSF01_Alarm); - SetLjSwith(BU1GSF01, BU1GSF01_Set, BU1GSF01_Alarm); - SetLjSwith(BU1HSF01, BU1HSF01_Set, BU1HSF01_Alarm); - SetLjSwith(BU1ISF01, BU1ISF01_Set, BU1ISF01_Alarm); - SetLjSwith(BU1JSF01, BU1JSF01_Set, BU1JSF01_Alarm); - SetLjSwith(BU1KSF01, BU1KSF01_Set, BU1KSF01_Alarm); - SetLjSwith(BU1LSF01, BU1LSF01_Set, BU1LSF01_Alarm); - SetLjSwith(BU1MSF01, BU1MSF01_Set, BU1MSF01_Alarm); - SetLjSwith(BU1NSF01, BU1NSF01_Set, BU1NSF01_Alarm); - SetLjSwith(BU1OSF01, BU1OSF01_Set, BU1OSF01_Alarm); - SetLjSwith(BU1BLT01, BU1BLT01_Set, BU1BLT01_Alarm); - SetLjSwith(BU1BLT02, BU1BLT02_Set, BU1BLT02_Alarm); - SetLjSwith(BU1BLT03, BU1BLT03_Set, BU1BLT03_Alarm); - SetLjSwith(BU1BLT04, BU1BLT04_Set, BU1BLT04_Alarm); - SetLjSwith(BU1BLT05, BU1BLT05_Set, BU1BLT05_Alarm); - SetLjSwith(BU1BLT06, BU1BLT06_Set, BU1BLT06_Alarm); - SetLjSwith(BU1BLT07, BU1BLT07_Set, BU1BLT07_Alarm); - SetLjSwith(BU2BLT01, BU2BLT01_Set, BU2BLT01_Alarm); - SetLjSwith(BU2BLT02, BU2BLT02_Set, BU2BLT02_Alarm); - SetLjSwith(BU2BLT03, BU2BLT03_Set, BU2BLT03_Alarm); - SetLjSwith(BU2BLT04, BU2BLT04_Set, BU2BLT04_Alarm); - SetLjSwith(BU2BLT05, BU2BLT05_Set, BU2BLT05_Alarm); - SetLjSwith(BU3BLT01, BU3BLT01_Set, BU3BLT01_Alarm); - SetLjSwith(BU3BLT02, BU3BLT02_Set, BU3BLT02_Alarm); - SetLjSwith(BU3BLT03, BU3BLT03_Set, BU3BLT03_Alarm); - SetLjSwith(BU3BLT04, BU3BLT04_Set, BU3BLT04_Alarm); - SetLjSwith(BU3BLT05, BU3BLT05_Set, BU3BLT05_Alarm); - SetLjSwith(BU3BLT06, BU3BLT06_Set, BU3BLT06_Alarm); - SetLjSwith(BU3BLT07, BU3BLT07_Set, BU3BLT07_Alarm); - SetLjSwith(BU4BLT01, BU4BLT01_Set, BU4BLT01_Alarm); - SetLjSwith(BU4BLT02, BU4BLT02_Set, BU4BLT02_Alarm); - SetLjSwith(BU4BLT03, BU4BLT03_Set, BU4BLT03_Alarm); - SetLjSwith(BU4BLT04, BU4BLT04_Set, BU4BLT04_Alarm); - SetLjSwith(BU4BLT05, BU4BLT05_Set, BU4BLT05_Alarm); - SetLjSwith(BU4BLT06, BU4BLT06_Set, BU4BLT06_Alarm); - SetLjSwith(BU4BLT07, BU4BLT07_Set, BU4BLT07_Alarm); - SetLjSwith(BU5BLT01, BU5BLT01_Set, BU5BLT01_Alarm); - SetLjSwith(BU5BLT02, BU5BLT02_Set, BU5BLT02_Alarm); - SetLjSwith(BU5BLT03, BU5BLT03_Set, BU5BLT03_Alarm); - SetLjSwith(BU5BLT04, BU5BLT04_Set, BU5BLT04_Alarm); - SetLjSwith(BU1ADB01, BU1ADB01_Set, BU1ADB01_Alarm); - SetLjSwith(BU1BDB01, BU1BDB01_Set, BU1BDB01_Alarm); - SetLjSwith(BU1CDB01, BU1CDB01_Set, BU1CDB01_Alarm); - SetLjSwith(BU1DDB01, BU1DDB01_Set, BU1DDB01_Alarm); - SetLjSwith(BU1EDB01, BU1EDB01_Set, BU1EDB01_Alarm); - SetLjSwith(BU1FDB01, BU1FDB01_Set, BU1FDB01_Alarm); - SetLjSwith(BU1GDB01, BU1GDB01_Set, BU1GDB01_Alarm); - SetLjSwith(BU1HDB01, BU1HDB01_Set, BU1HDB01_Alarm); - SetLjSwith(BU1IDB01, BU1IDB01_Set, BU1IDB01_Alarm); - SetLjSwith(BU1JDB01, BU1JDB01_Set, BU1JDB01_Alarm); - SetLjSwith(BU1KDB01, BU1KDB01_Set, BU1KDB01_Alarm); - SetLjSwith(BU1LDB01, BU1LDB01_Set, BU1LDB01_Alarm); - SetLjSwith(BU1GEB02, BU1GEB02_Set, BU1GEB02_Alarm); - SetLjSwith(BU2GEB02, BU2GEB02_Set, BU2GEB02_Alarm); - SetLjSwith(BU3GEB02, BU3GEB02_Set, BU3GEB02_Alarm); - SetLjSwith(BU4GEB02, BU4GEB02_Set, BU4GEB02_Alarm); - SetLjSwith(BU5GEB02, BU5GEB02_Set, BU5GEB02_Alarm); - SetLjSwith(BU6GEB02, BU6GEB02_Set, BU6GEB02_Alarm); - SetLjSwith(BU7GEB02, BU7GEB02_Set, BU7GEB02_Alarm); - SetLjSwith(BU8GEB02, BU8GEB02_Set, BU8GEB02_Alarm); - SetLjSwith(BU1DRB01, BU1DRB01_Set, BU1DRB01_Alarm); - SetLjSwith(BU2DRB01, BU2DRB01_Set, BU2DRB01_Alarm); - SetLjSwith(BU3DRB01, BU3DRB01_Set, BU3DRB01_Alarm); - SetLjSwith(BU4DRB01, BU4DRB01_Set, BU4DRB01_Alarm); - SetLjSwith(BU1GEB01, BU1GEB01_Set, BU1GEB01_Alarm); - SetLjSwith(BU2GEB01, BU2GEB01_Set, BU2GEB01_Alarm); - SetLjSwith(BU3GEB01, BU3GEB01_Set, BU3GEB01_Alarm); - SetLjSwith(BU4GEB01, BU4GEB01_Set, BU4GEB01_Alarm); - SetLjSwith(BU5GEB01, BU5GEB01_Set, BU5GEB01_Alarm); - SetLjSwith(BU6GEB01, BU6GEB01_Set, BU6GEB01_Alarm); - SetLjSwith(BU7GEB01, BU7GEB01_Set, BU7GEB01_Alarm); - SetLjSwith(BU8GEB01, BU8GEB01_Set, BU8GEB01_Alarm); - SetLjSwith(BU2ASF01, BU2ASF01_Set, BU2ASF01_Alarm); - SetLjSwith(BU2ASF02, BU2ASF02_Set, BU2ASF02_Alarm); - SetLjSwith(BU2BSF01, BU2BSF01_Set, BU2BSF01_Alarm); - SetLjSwith(BU2BSF02, BU2BSF02_Set, BU2BSF02_Alarm); - SetLjSwith(BU2CSF01, BU2CSF01_Set, BU2CSF01_Alarm); - SetLjSwith(BU2CSF02, BU2CSF02_Set, BU2CSF02_Alarm); - SetLjSwith(BU2DSF01, BU2DSF01_Set, BU2DSF01_Alarm); - SetLjSwith(BU2DSF02, BU2DSF02_Set, BU2DSF02_Alarm); - SetLjSwith(BUWeter1, BUWeter1_Set, BUWeter1_Alarm); - SetLjSwith(BUWeter2, BUWeter2_Set, BUWeter2_Alarm); - SetLjSwith(BUWeter3, BUWeter3_Set, BUWeter3_Alarm); - SetLjSwith(BUWeter4, BUWeter4_Set, BUWeter4_Alarm); - SetLjSwith(BUWeter5, BUWeter5_Set, BUWeter5_Alarm); - SetLjSwith(BUWeter6, BUWeter6_Set, BUWeter6_Alarm); - SetLjSwith(BUWeter7, BUWeter7_Set, BUWeter7_Alarm); - SetLjSwith(BUWeter8, BUWeter8_Set, BUWeter8_Alarm); + + PlcReadTemp.BU1ASF01_Set = DB2102.BU1ASF01.Set; + PlcReadTemp.BU1BSF01_Set = DB2102.BU1BSF01.Set; + PlcReadTemp.BU1CSF01_Set = DB2102.BU1CSF01.Set; + PlcReadTemp.BU1DSF01_Set = DB2102.BU1DSF01.Set; + PlcReadTemp.BU1ESF01_Set = DB2102.BU1ESF01.Set; + PlcReadTemp.BU1FSF01_Set = DB2102.BU1FSF01.Set; + PlcReadTemp.BU1GSF01_Set = DB2102.BU1GSF01.Set; + PlcReadTemp.BU1HSF01_Set = DB2102.BU1HSF01.Set; + PlcReadTemp.BU1ISF01_Set = DB2102.BU1ISF01.Set; + PlcReadTemp.BU1JSF01_Set = DB2102.BU1JSF01.Set; + PlcReadTemp.BU1KSF01_Set = DB2102.BU1KSF01.Set; + PlcReadTemp.BU1LSF01_Set = DB2102.BU1LSF01.Set; + PlcReadTemp.BU1MSF01_Set = DB2102.BU1MSF01.Set; + PlcReadTemp.BU1NSF01_Set = DB2102.BU1NSF01.Set; + PlcReadTemp.BU1OSF01_Set = DB2102.BU1OSF01.Set; + PlcReadTemp.BU1BLT01_Set = DB2102.BU1BLT01.Set; + PlcReadTemp.BU1BLT02_Set = DB2102.BU1BLT02.Set; + PlcReadTemp.BU1BLT03_Set = DB2102.BU1BLT03.Set; + PlcReadTemp.BU1BLT04_Set = DB2102.BU1BLT04.Set; + PlcReadTemp.BU1BLT05_Set = DB2102.BU1BLT05.Set; + PlcReadTemp.BU1BLT06_Set = DB2102.BU1BLT06.Set; + PlcReadTemp.BU1BLT07_Set = DB2102.BU1BLT07.Set; + PlcReadTemp.BU2BLT01_Set = DB2102.BU2BLT01.Set; + PlcReadTemp.BU2BLT02_Set = DB2102.BU2BLT02.Set; + PlcReadTemp.BU2BLT03_Set = DB2102.BU2BLT03.Set; + PlcReadTemp.BU2BLT04_Set = DB2102.BU2BLT04.Set; + PlcReadTemp.BU2BLT05_Set = DB2102.BU2BLT05.Set; + PlcReadTemp.BU3BLT01_Set = DB2102.BU3BLT01.Set; + PlcReadTemp.BU3BLT02_Set = DB2102.BU3BLT02.Set; + PlcReadTemp.BU3BLT03_Set = DB2102.BU3BLT03.Set; + PlcReadTemp.BU3BLT04_Set = DB2102.BU3BLT04.Set; + PlcReadTemp.BU3BLT05_Set = DB2102.BU3BLT05.Set; + PlcReadTemp.BU3BLT06_Set = DB2102.BU3BLT06.Set; + PlcReadTemp.BU3BLT07_Set = DB2102.BU3BLT07.Set; + PlcReadTemp.BU4BLT01_Set = DB2102.BU4BLT01.Set; + PlcReadTemp.BU4BLT02_Set = DB2102.BU4BLT02.Set; + PlcReadTemp.BU4BLT03_Set = DB2102.BU4BLT03.Set; + PlcReadTemp.BU4BLT04_Set = DB2102.BU4BLT04.Set; + PlcReadTemp.BU4BLT05_Set = DB2102.BU4BLT05.Set; + PlcReadTemp.BU4BLT06_Set = DB2102.BU4BLT06.Set; + PlcReadTemp.BU4BLT07_Set = DB2102.BU4BLT07.Set; + PlcReadTemp.BU5BLT01_Set = DB2102.BU5BLT01.Set; + PlcReadTemp.BU5BLT02_Set = DB2102.BU5BLT02.Set; + PlcReadTemp.BU5BLT03_Set = DB2102.BU5BLT03.Set; + PlcReadTemp.BU5BLT04_Set = DB2102.BU5BLT04.Set; + PlcReadTemp.BU1ADB01_Set = DB2102.BU1ADB01.Set; + PlcReadTemp.BU1BDB01_Set = DB2102.BU1BDB01.Set; + PlcReadTemp.BU1CDB01_Set = DB2102.BU1CDB01.Set; + PlcReadTemp.BU1DDB01_Set = DB2102.BU1DDB01.Set; + PlcReadTemp.BU1EDB01_Set = DB2102.BU1EDB01.Set; + PlcReadTemp.BU1FDB01_Set = DB2102.BU1FDB01.Set; + PlcReadTemp.BU1GDB01_Set = DB2102.BU1GDB01.Set; + PlcReadTemp.BU1HDB01_Set = DB2102.BU1HDB01.Set; + PlcReadTemp.BU1IDB01_Set = DB2102.BU1IDB01.Set; + PlcReadTemp.BU1JDB01_Set = DB2102.BU1JDB01.Set; + PlcReadTemp.BU1KDB01_Set = DB2102.BU1KDB01.Set; + PlcReadTemp.BU1LDB01_Set = DB2102.BU1LDB01.Set; + + + PlcReadTemp.BU1GEB02_Set = DB2102.BU1GEB02.Set; + PlcReadTemp.BU2GEB02_Set = DB2102.BU2GEB02.Set; + PlcReadTemp.BU3GEB02_Set = DB2102.BU3GEB02.Set; + PlcReadTemp.BU4GEB02_Set = DB2102.BU4GEB02.Set; + PlcReadTemp.BU5GEB02_Set = DB2102.BU5GEB02.Set; + PlcReadTemp.BU6GEB02_Set = DB2102.BU6GEB02.Set; + PlcReadTemp.BU7GEB02_Set = DB2102.BU7GEB02.Set; + PlcReadTemp.BU8GEB02_Set = DB2102.BU8GEB02.Set; + PlcReadTemp.BU1DRB01_Set = DB2102.BU1DRB01.Set; + PlcReadTemp.BU2DRB01_Set = DB2102.BU2DRB01.Set; + PlcReadTemp.BU3DRB01_Set = DB2102.BU3DRB01.Set; + PlcReadTemp.BU4DRB01_Set = DB2102.BU4DRB01.Set; + PlcReadTemp.BU1GEB01_Set = DB2102.BU1GEB01.Set; + PlcReadTemp.BU2GEB01_Set = DB2102.BU2GEB01.Set; + PlcReadTemp.BU3GEB01_Set = DB2102.BU3GEB01.Set; + PlcReadTemp.BU4GEB01_Set = DB2102.BU4GEB01.Set; + PlcReadTemp.BU5GEB01_Set = DB2102.BU5GEB01.Set; + PlcReadTemp.BU6GEB01_Set = DB2102.BU6GEB01.Set; + PlcReadTemp.BU7GEB01_Set = DB2102.BU7GEB01.Set; + PlcReadTemp.BU8GEB01_Set = DB2102.BU8GEB01.Set; + PlcReadTemp.BU2ASF01_Set = DB2102.BU2ASF01.Set; + PlcReadTemp.BU2ASF02_Set = DB2102.BU2ASF02.Set; + PlcReadTemp.BU2BSF01_Set = DB2102.BU2BSF01.Set; + PlcReadTemp.BU2BSF02_Set = DB2102.BU2BSF02.Set; + PlcReadTemp.BU2CSF01_Set = DB2102.BU2CSF01.Set; + PlcReadTemp.BU2CSF02_Set = DB2102.BU2CSF02.Set; + PlcReadTemp.BU2DSF01_Set = DB2102.BU2DSF01.Set; + PlcReadTemp.BU2DSF02_Set = DB2102.BU2DSF02.Set; + PlcReadTemp.BUWeter1_Set = DB2102.BUWeter1.Set; + PlcReadTemp.BUWeter2_Set = DB2102.BUWeter2.Set; + PlcReadTemp.BUWeter3_Set = DB2102.BUWeter3.Set; + PlcReadTemp.BUWeter4_Set = DB2102.BUWeter4.Set; + PlcReadTemp.BUWeter5_Set = DB2102.BUWeter5.Set; + PlcReadTemp.BUWeter6_Set = DB2102.BUWeter6.Set; + PlcReadTemp.BUWeter7_Set = DB2102.BUWeter7.Set; + PlcReadTemp.BUWeter8_Set = DB2102.BUWeter8.Set; + + PlcReadTemp.BU1ASF01_Alarm = DB2102.BU1ASF01.Alarm; + PlcReadTemp.BU1BSF01_Alarm = DB2102.BU1BSF01.Alarm; + PlcReadTemp.BU1CSF01_Alarm = DB2102.BU1CSF01.Alarm; + PlcReadTemp.BU1DSF01_Alarm = DB2102.BU1DSF01.Alarm; + PlcReadTemp.BU1ESF01_Alarm = DB2102.BU1ESF01.Alarm; + PlcReadTemp.BU1FSF01_Alarm = DB2102.BU1FSF01.Alarm; + PlcReadTemp.BU1GSF01_Alarm = DB2102.BU1GSF01.Alarm; + PlcReadTemp.BU1HSF01_Alarm = DB2102.BU1HSF01.Alarm; + PlcReadTemp.BU1ISF01_Alarm = DB2102.BU1ISF01.Alarm; + PlcReadTemp.BU1JSF01_Alarm = DB2102.BU1JSF01.Alarm; + PlcReadTemp.BU1KSF01_Alarm = DB2102.BU1KSF01.Alarm; + PlcReadTemp.BU1LSF01_Alarm = DB2102.BU1LSF01.Alarm; + PlcReadTemp.BU1MSF01_Alarm = DB2102.BU1MSF01.Alarm; + PlcReadTemp.BU1NSF01_Alarm = DB2102.BU1NSF01.Alarm; + PlcReadTemp.BU1OSF01_Alarm = DB2102.BU1OSF01.Alarm; + PlcReadTemp.BU1BLT01_Alarm = DB2102.BU1BLT01.Alarm; + PlcReadTemp.BU1BLT02_Alarm = DB2102.BU1BLT02.Alarm; + PlcReadTemp.BU1BLT03_Alarm = DB2102.BU1BLT03.Alarm; + PlcReadTemp.BU1BLT04_Alarm = DB2102.BU1BLT04.Alarm; + PlcReadTemp.BU1BLT05_Alarm = DB2102.BU1BLT05.Alarm; + PlcReadTemp.BU1BLT06_Alarm = DB2102.BU1BLT06.Alarm; + PlcReadTemp.BU1BLT07_Alarm = DB2102.BU1BLT07.Alarm; + PlcReadTemp.BU2BLT01_Alarm = DB2102.BU2BLT01.Alarm; + PlcReadTemp.BU2BLT02_Alarm = DB2102.BU2BLT02.Alarm; + PlcReadTemp.BU2BLT03_Alarm = DB2102.BU2BLT03.Alarm; + PlcReadTemp.BU2BLT04_Alarm = DB2102.BU2BLT04.Alarm; + PlcReadTemp.BU2BLT05_Alarm = DB2102.BU2BLT05.Alarm; + PlcReadTemp.BU3BLT01_Alarm = DB2102.BU3BLT01.Alarm; + PlcReadTemp.BU3BLT02_Alarm = DB2102.BU3BLT02.Alarm; + PlcReadTemp.BU3BLT03_Alarm = DB2102.BU3BLT03.Alarm; + PlcReadTemp.BU3BLT04_Alarm = DB2102.BU3BLT04.Alarm; + PlcReadTemp.BU3BLT05_Alarm = DB2102.BU3BLT05.Alarm; + PlcReadTemp.BU3BLT06_Alarm = DB2102.BU3BLT06.Alarm; + PlcReadTemp.BU3BLT07_Alarm = DB2102.BU3BLT07.Alarm; + PlcReadTemp.BU4BLT01_Alarm = DB2102.BU4BLT01.Alarm; + PlcReadTemp.BU4BLT02_Alarm = DB2102.BU4BLT02.Alarm; + PlcReadTemp.BU4BLT03_Alarm = DB2102.BU4BLT03.Alarm; + PlcReadTemp.BU4BLT04_Alarm = DB2102.BU4BLT04.Alarm; + PlcReadTemp.BU4BLT05_Alarm = DB2102.BU4BLT05.Alarm; + PlcReadTemp.BU4BLT06_Alarm = DB2102.BU4BLT06.Alarm; + PlcReadTemp.BU4BLT07_Alarm = DB2102.BU4BLT07.Alarm; + PlcReadTemp.BU5BLT01_Alarm = DB2102.BU5BLT01.Alarm; + PlcReadTemp.BU5BLT02_Alarm = DB2102.BU5BLT02.Alarm; + PlcReadTemp.BU5BLT03_Alarm = DB2102.BU5BLT03.Alarm; + PlcReadTemp.BU5BLT04_Alarm = DB2102.BU5BLT04.Alarm; + PlcReadTemp.BU1ADB01_Alarm = DB2102.BU1ADB01.Alarm; + PlcReadTemp.BU1BDB01_Alarm = DB2102.BU1BDB01.Alarm; + PlcReadTemp.BU1CDB01_Alarm = DB2102.BU1CDB01.Alarm; + PlcReadTemp.BU1DDB01_Alarm = DB2102.BU1DDB01.Alarm; + PlcReadTemp.BU1EDB01_Alarm = DB2102.BU1EDB01.Alarm; + PlcReadTemp.BU1FDB01_Alarm = DB2102.BU1FDB01.Alarm; + PlcReadTemp.BU1GDB01_Alarm = DB2102.BU1GDB01.Alarm; + PlcReadTemp.BU1HDB01_Alarm = DB2102.BU1HDB01.Alarm; + PlcReadTemp.BU1IDB01_Alarm = DB2102.BU1IDB01.Alarm; + PlcReadTemp.BU1JDB01_Alarm = DB2102.BU1JDB01.Alarm; + PlcReadTemp.BU1KDB01_Alarm = DB2102.BU1KDB01.Alarm; + PlcReadTemp.BU1LDB01_Alarm = DB2102.BU1LDB01.Alarm; + + PlcReadTemp.BU1GEB02_Alarm = DB2102.BU1GEB02.Alarm; + PlcReadTemp.BU2GEB02_Alarm = DB2102.BU2GEB02.Alarm; + PlcReadTemp.BU3GEB02_Alarm = DB2102.BU3GEB02.Alarm; + PlcReadTemp.BU4GEB02_Alarm = DB2102.BU4GEB02.Alarm; + PlcReadTemp.BU5GEB02_Alarm = DB2102.BU5GEB02.Alarm; + PlcReadTemp.BU6GEB02_Alarm = DB2102.BU6GEB02.Alarm; + PlcReadTemp.BU7GEB02_Alarm = DB2102.BU7GEB02.Alarm; + PlcReadTemp.BU8GEB02_Alarm = DB2102.BU8GEB02.Alarm; + PlcReadTemp.BU1DRB01_Alarm = DB2102.BU1DRB01.Alarm; + PlcReadTemp.BU2DRB01_Alarm = DB2102.BU2DRB01.Alarm; + PlcReadTemp.BU3DRB01_Alarm = DB2102.BU3DRB01.Alarm; + PlcReadTemp.BU4DRB01_Alarm = DB2102.BU4DRB01.Alarm; + PlcReadTemp.BU1GEB01_Alarm = DB2102.BU1GEB01.Alarm; + PlcReadTemp.BU2GEB01_Alarm = DB2102.BU2GEB01.Alarm; + PlcReadTemp.BU3GEB01_Alarm = DB2102.BU3GEB01.Alarm; + PlcReadTemp.BU4GEB01_Alarm = DB2102.BU4GEB01.Alarm; + PlcReadTemp.BU5GEB01_Alarm = DB2102.BU5GEB01.Alarm; + PlcReadTemp.BU6GEB01_Alarm = DB2102.BU6GEB01.Alarm; + PlcReadTemp.BU7GEB01_Alarm = DB2102.BU7GEB01.Alarm; + PlcReadTemp.BU8GEB01_Alarm = DB2102.BU8GEB01.Alarm; + PlcReadTemp.BU2ASF01_Alarm = DB2102.BU2ASF01.Alarm; + PlcReadTemp.BU2ASF02_Alarm = DB2102.BU2ASF02.Alarm; + PlcReadTemp.BU2BSF01_Alarm = DB2102.BU2BSF01.Alarm; + PlcReadTemp.BU2BSF02_Alarm = DB2102.BU2BSF02.Alarm; + PlcReadTemp.BU2CSF01_Alarm = DB2102.BU2CSF01.Alarm; + PlcReadTemp.BU2CSF02_Alarm = DB2102.BU2CSF02.Alarm; + PlcReadTemp.BU2DSF01_Alarm = DB2102.BU2DSF01.Alarm; + PlcReadTemp.BU2DSF02_Alarm = DB2102.BU2DSF02.Alarm; + PlcReadTemp.BUWeter1_Alarm = DB2102.BUWeter1.Alarm; + PlcReadTemp.BUWeter2_Alarm = DB2102.BUWeter2.Alarm; + PlcReadTemp.BUWeter3_Alarm = DB2102.BUWeter3.Alarm; + PlcReadTemp.BUWeter4_Alarm = DB2102.BUWeter4.Alarm; + PlcReadTemp.BUWeter5_Alarm = DB2102.BUWeter5.Alarm; + PlcReadTemp.BUWeter6_Alarm = DB2102.BUWeter6.Alarm; + PlcReadTemp.BUWeter7_Alarm = DB2102.BUWeter7.Alarm; + PlcReadTemp.BUWeter8_Alarm = DB2102.BUWeter8.Alarm; + + + + PlcReadTemp.DV2PCP01_SetL = DB2102.DV2PCP01.SetLeft; + PlcReadTemp.DV2PCP02_SetL = DB2102.DV2PCP02.SetLeft; + PlcReadTemp.DV2PCP03_SetL = DB2102.DV2PCP03.SetLeft; + PlcReadTemp.DV2PCP04_SetL = DB2102.DV2PCP04.SetLeft; + PlcReadTemp.DV2PCP05_SetL = DB2102.DV2PCP05.SetLeft; + PlcReadTemp.DV2PCP06_SetL = DB2102.DV2PCP06.SetLeft; + PlcReadTemp.DV2PCP07_SetL = DB2102.DV2PCP07.SetLeft; + PlcReadTemp.DV2PCP08_SetL = DB2102.DV2PCP08.SetLeft; + PlcReadTemp.DV2PCP09_SetL = DB2102.DV2PCP09.SetLeft; + PlcReadTemp.DV2PCP10_SetL = DB2102.DV2PCP10.SetLeft; + PlcReadTemp.DV2PCP11_SetL = DB2102.DV2PCP11.SetLeft; + PlcReadTemp.DV2PCP12_SetL = DB2102.DV2PCP12.SetLeft; + PlcReadTemp.DV2PCP13_SetL = DB2102.DV2PCP13.SetLeft; + + PlcReadTemp.DV2PCP01_SetR = DB2102.DV2PCP01.SetRight; + PlcReadTemp.DV2PCP02_SetR = DB2102.DV2PCP02.SetRight; + PlcReadTemp.DV2PCP03_SetR = DB2102.DV2PCP03.SetRight; + PlcReadTemp.DV2PCP04_SetR = DB2102.DV2PCP04.SetRight; + PlcReadTemp.DV2PCP05_SetR = DB2102.DV2PCP05.SetRight; + PlcReadTemp.DV2PCP06_SetR = DB2102.DV2PCP06.SetRight; + PlcReadTemp.DV2PCP07_SetR = DB2102.DV2PCP07.SetRight; + PlcReadTemp.DV2PCP08_SetR = DB2102.DV2PCP08.SetRight; + PlcReadTemp.DV2PCP09_SetR = DB2102.DV2PCP09.SetRight; + PlcReadTemp.DV2PCP10_SetR = DB2102.DV2PCP10.SetRight; + PlcReadTemp.DV2PCP11_SetR = DB2102.DV2PCP11.SetRight; + PlcReadTemp.DV2PCP12_SetR = DB2102.DV2PCP12.SetRight; + PlcReadTemp.DV2PCP13_SetR = DB2102.DV2PCP13.SetRight; + + PlcReadTemp.DV2PCP01_AlarmL = DB2102.DV2PCP01.AlarmLeftPosition; + PlcReadTemp.DV2PCP02_AlarmL = DB2102.DV2PCP02.AlarmLeftPosition; + PlcReadTemp.DV2PCP03_AlarmL = DB2102.DV2PCP03.AlarmLeftPosition; + PlcReadTemp.DV2PCP04_AlarmL = DB2102.DV2PCP04.AlarmLeftPosition; + PlcReadTemp.DV2PCP05_AlarmL = DB2102.DV2PCP05.AlarmLeftPosition; + PlcReadTemp.DV2PCP06_AlarmL = DB2102.DV2PCP06.AlarmLeftPosition; + PlcReadTemp.DV2PCP07_AlarmL = DB2102.DV2PCP07.AlarmLeftPosition; + PlcReadTemp.DV2PCP08_AlarmL = DB2102.DV2PCP08.AlarmLeftPosition; + PlcReadTemp.DV2PCP09_AlarmL = DB2102.DV2PCP09.AlarmLeftPosition; + PlcReadTemp.DV2PCP10_AlarmL = DB2102.DV2PCP10.AlarmLeftPosition; + PlcReadTemp.DV2PCP11_AlarmL = DB2102.DV2PCP11.AlarmLeftPosition; + PlcReadTemp.DV2PCP12_AlarmL = DB2102.DV2PCP12.AlarmLeftPosition; + PlcReadTemp.DV2PCP13_AlarmL = DB2102.DV2PCP13.AlarmLeftPosition; + + PlcReadTemp.DV2PCP01_AlarmR = DB2102.DV2PCP01.AlarmRightPosition; + PlcReadTemp.DV2PCP02_AlarmR = DB2102.DV2PCP02.AlarmRightPosition; + PlcReadTemp.DV2PCP03_AlarmR = DB2102.DV2PCP03.AlarmRightPosition; + PlcReadTemp.DV2PCP04_AlarmR = DB2102.DV2PCP04.AlarmRightPosition; + PlcReadTemp.DV2PCP05_AlarmR = DB2102.DV2PCP05.AlarmRightPosition; + PlcReadTemp.DV2PCP06_AlarmR = DB2102.DV2PCP06.AlarmRightPosition; + PlcReadTemp.DV2PCP07_AlarmR = DB2102.DV2PCP07.AlarmRightPosition; + PlcReadTemp.DV2PCP08_AlarmR = DB2102.DV2PCP08.AlarmRightPosition; + PlcReadTemp.DV2PCP09_AlarmR = DB2102.DV2PCP09.AlarmRightPosition; + PlcReadTemp.DV2PCP10_AlarmR = DB2102.DV2PCP10.AlarmRightPosition; + PlcReadTemp.DV2PCP11_AlarmR = DB2102.DV2PCP11.AlarmRightPosition; + PlcReadTemp.DV2PCP12_AlarmR = DB2102.DV2PCP12.AlarmRightPosition; + PlcReadTemp.DV2PCP13_AlarmR = DB2102.DV2PCP13.AlarmRightPosition; + + + SetThreeWayValve(DeviceDetailReportForm.DV2PCP01, PlcReadTemp.DV2PCP01_AlarmR, PlcReadTemp.DV2PCP01_SetR, PlcReadTemp.DV2PCP01_AlarmL, PlcReadTemp.DV2PCP01_SetL); + SetThreeWayValve(DeviceDetailReportForm.DV2PCP02, PlcReadTemp.DV2PCP02_AlarmR, PlcReadTemp.DV2PCP02_SetR, PlcReadTemp.DV2PCP02_AlarmL, PlcReadTemp.DV2PCP02_SetL); + SetThreeWayValve(DeviceDetailReportForm.DV2PCP03, PlcReadTemp.DV2PCP03_AlarmR, PlcReadTemp.DV2PCP03_SetR, PlcReadTemp.DV2PCP03_AlarmL, PlcReadTemp.DV2PCP03_SetL); + SetThreeWayValve(DeviceDetailReportForm.DV2PCP04, PlcReadTemp.DV2PCP04_AlarmR, PlcReadTemp.DV2PCP04_SetR, PlcReadTemp.DV2PCP04_AlarmL, PlcReadTemp.DV2PCP04_SetL); + SetThreeWayValve(DeviceDetailReportForm.DV2PCP05, PlcReadTemp.DV2PCP05_AlarmR, PlcReadTemp.DV2PCP05_SetR, PlcReadTemp.DV2PCP05_AlarmL, PlcReadTemp.DV2PCP05_SetL); + SetThreeWayValve(DeviceDetailReportForm.DV2PCP06, PlcReadTemp.DV2PCP06_AlarmR, PlcReadTemp.DV2PCP06_SetR, PlcReadTemp.DV2PCP06_AlarmL, PlcReadTemp.DV2PCP06_SetL); + SetThreeWayValve(DeviceDetailReportForm.DV2PCP07, PlcReadTemp.DV2PCP07_AlarmR, PlcReadTemp.DV2PCP07_SetR, PlcReadTemp.DV2PCP07_AlarmL, PlcReadTemp.DV2PCP07_SetL); + SetThreeWayValve(DeviceDetailReportForm.DV2PCP08, PlcReadTemp.DV2PCP08_AlarmR, PlcReadTemp.DV2PCP08_SetR, PlcReadTemp.DV2PCP08_AlarmL, PlcReadTemp.DV2PCP08_SetL); + SetThreeWayValve(DeviceDetailReportForm.DV2PCP09, PlcReadTemp.DV2PCP09_AlarmR, PlcReadTemp.DV2PCP09_SetR, PlcReadTemp.DV2PCP09_AlarmL, PlcReadTemp.DV2PCP09_SetL); + SetThreeWayValve(DeviceDetailReportForm.DV2PCP10, PlcReadTemp.DV2PCP10_AlarmR, PlcReadTemp.DV2PCP10_SetR, PlcReadTemp.DV2PCP10_AlarmL, PlcReadTemp.DV2PCP10_SetL); + SetThreeWayValve(DeviceDetailReportForm.DV2PCP11, PlcReadTemp.DV2PCP11_AlarmR, PlcReadTemp.DV2PCP11_SetR, PlcReadTemp.DV2PCP11_AlarmL, PlcReadTemp.DV2PCP11_SetL); + SetThreeWayValve(DeviceDetailReportForm.DV2PCP12, PlcReadTemp.DV2PCP12_AlarmR, PlcReadTemp.DV2PCP12_SetR, PlcReadTemp.DV2PCP12_AlarmL, PlcReadTemp.DV2PCP12_SetL); + SetThreeWayValve(DeviceDetailReportForm.DV2PCP13, PlcReadTemp.DV2PCP13_AlarmR, PlcReadTemp.DV2PCP13_SetR, PlcReadTemp.DV2PCP13_AlarmL, PlcReadTemp.DV2PCP13_SetL); + + SetLjSwith(DeviceDetailReportForm.BU1ASF01, PlcReadTemp.BU1ASF01_Set, PlcReadTemp.BU1ASF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1BSF01, PlcReadTemp.BU1BSF01_Set, PlcReadTemp.BU1BSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1CSF01, PlcReadTemp.BU1CSF01_Set, PlcReadTemp.BU1CSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1DSF01, PlcReadTemp.BU1DSF01_Set, PlcReadTemp.BU1DSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1ESF01, PlcReadTemp.BU1ESF01_Set, PlcReadTemp.BU1ESF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1FSF01, PlcReadTemp.BU1FSF01_Set, PlcReadTemp.BU1FSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1GSF01, PlcReadTemp.BU1GSF01_Set, PlcReadTemp.BU1GSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1HSF01, PlcReadTemp.BU1HSF01_Set, PlcReadTemp.BU1HSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1ISF01, PlcReadTemp.BU1ISF01_Set, PlcReadTemp.BU1ISF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1JSF01, PlcReadTemp.BU1JSF01_Set, PlcReadTemp.BU1JSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1KSF01, PlcReadTemp.BU1KSF01_Set, PlcReadTemp.BU1KSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1LSF01, PlcReadTemp.BU1LSF01_Set, PlcReadTemp.BU1LSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1MSF01, PlcReadTemp.BU1MSF01_Set, PlcReadTemp.BU1MSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1NSF01, PlcReadTemp.BU1NSF01_Set, PlcReadTemp.BU1NSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1OSF01, PlcReadTemp.BU1OSF01_Set, PlcReadTemp.BU1OSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1BLT01, PlcReadTemp.BU1BLT01_Set, PlcReadTemp.BU1BLT01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1BLT02, PlcReadTemp.BU1BLT02_Set, PlcReadTemp.BU1BLT02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1BLT03, PlcReadTemp.BU1BLT03_Set, PlcReadTemp.BU1BLT03_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1BLT04, PlcReadTemp.BU1BLT04_Set, PlcReadTemp.BU1BLT04_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1BLT05, PlcReadTemp.BU1BLT05_Set, PlcReadTemp.BU1BLT05_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1BLT06, PlcReadTemp.BU1BLT06_Set, PlcReadTemp.BU1BLT06_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1BLT07, PlcReadTemp.BU1BLT07_Set, PlcReadTemp.BU1BLT07_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2BLT01, PlcReadTemp.BU2BLT01_Set, PlcReadTemp.BU2BLT01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2BLT02, PlcReadTemp.BU2BLT02_Set, PlcReadTemp.BU2BLT02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2BLT03, PlcReadTemp.BU2BLT03_Set, PlcReadTemp.BU2BLT03_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2BLT04, PlcReadTemp.BU2BLT04_Set, PlcReadTemp.BU2BLT04_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2BLT05, PlcReadTemp.BU2BLT05_Set, PlcReadTemp.BU2BLT05_Alarm); + SetLjSwith(DeviceDetailReportForm.BU3BLT01, PlcReadTemp.BU3BLT01_Set, PlcReadTemp.BU3BLT01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU3BLT02, PlcReadTemp.BU3BLT02_Set, PlcReadTemp.BU3BLT02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU3BLT03, PlcReadTemp.BU3BLT03_Set, PlcReadTemp.BU3BLT03_Alarm); + SetLjSwith(DeviceDetailReportForm.BU3BLT04, PlcReadTemp.BU3BLT04_Set, PlcReadTemp.BU3BLT04_Alarm); + SetLjSwith(DeviceDetailReportForm.BU3BLT05, PlcReadTemp.BU3BLT05_Set, PlcReadTemp.BU3BLT05_Alarm); + SetLjSwith(DeviceDetailReportForm.BU3BLT06, PlcReadTemp.BU3BLT06_Set, PlcReadTemp.BU3BLT06_Alarm); + SetLjSwith(DeviceDetailReportForm.BU3BLT07, PlcReadTemp.BU3BLT07_Set, PlcReadTemp.BU3BLT07_Alarm); + SetLjSwith(DeviceDetailReportForm.BU4BLT01, PlcReadTemp.BU4BLT01_Set, PlcReadTemp.BU4BLT01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU4BLT02, PlcReadTemp.BU4BLT02_Set, PlcReadTemp.BU4BLT02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU4BLT03, PlcReadTemp.BU4BLT03_Set, PlcReadTemp.BU4BLT03_Alarm); + SetLjSwith(DeviceDetailReportForm.BU4BLT04, PlcReadTemp.BU4BLT04_Set, PlcReadTemp.BU4BLT04_Alarm); + SetLjSwith(DeviceDetailReportForm.BU4BLT05, PlcReadTemp.BU4BLT05_Set, PlcReadTemp.BU4BLT05_Alarm); + SetLjSwith(DeviceDetailReportForm.BU4BLT06, PlcReadTemp.BU4BLT06_Set, PlcReadTemp.BU4BLT06_Alarm); + SetLjSwith(DeviceDetailReportForm.BU4BLT07, PlcReadTemp.BU4BLT07_Set, PlcReadTemp.BU4BLT07_Alarm); + SetLjSwith(DeviceDetailReportForm.BU5BLT01, PlcReadTemp.BU5BLT01_Set, PlcReadTemp.BU5BLT01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU5BLT02, PlcReadTemp.BU5BLT02_Set, PlcReadTemp.BU5BLT02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU5BLT03, PlcReadTemp.BU5BLT03_Set, PlcReadTemp.BU5BLT03_Alarm); + SetLjSwith(DeviceDetailReportForm.BU5BLT04, PlcReadTemp.BU5BLT04_Set, PlcReadTemp.BU5BLT04_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1ADB01, PlcReadTemp.BU1ADB01_Set, PlcReadTemp.BU1ADB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1BDB01, PlcReadTemp.BU1BDB01_Set, PlcReadTemp.BU1BDB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1CDB01, PlcReadTemp.BU1CDB01_Set, PlcReadTemp.BU1CDB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1DDB01, PlcReadTemp.BU1DDB01_Set, PlcReadTemp.BU1DDB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1EDB01, PlcReadTemp.BU1EDB01_Set, PlcReadTemp.BU1EDB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1FDB01, PlcReadTemp.BU1FDB01_Set, PlcReadTemp.BU1FDB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1GDB01, PlcReadTemp.BU1GDB01_Set, PlcReadTemp.BU1GDB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1HDB01, PlcReadTemp.BU1HDB01_Set, PlcReadTemp.BU1HDB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1IDB01, PlcReadTemp.BU1IDB01_Set, PlcReadTemp.BU1IDB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1JDB01, PlcReadTemp.BU1JDB01_Set, PlcReadTemp.BU1JDB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1KDB01, PlcReadTemp.BU1KDB01_Set, PlcReadTemp.BU1KDB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1LDB01, PlcReadTemp.BU1LDB01_Set, PlcReadTemp.BU1LDB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1GEB02, PlcReadTemp.BU1GEB02_Set, PlcReadTemp.BU1GEB02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2GEB02, PlcReadTemp.BU2GEB02_Set, PlcReadTemp.BU2GEB02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU3GEB02, PlcReadTemp.BU3GEB02_Set, PlcReadTemp.BU3GEB02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU4GEB02, PlcReadTemp.BU4GEB02_Set, PlcReadTemp.BU4GEB02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU5GEB02, PlcReadTemp.BU5GEB02_Set, PlcReadTemp.BU5GEB02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU6GEB02, PlcReadTemp.BU6GEB02_Set, PlcReadTemp.BU6GEB02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU7GEB02, PlcReadTemp.BU7GEB02_Set, PlcReadTemp.BU7GEB02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU8GEB02, PlcReadTemp.BU8GEB02_Set, PlcReadTemp.BU8GEB02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1DRB01, PlcReadTemp.BU1DRB01_Set, PlcReadTemp.BU1DRB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2DRB01, PlcReadTemp.BU2DRB01_Set, PlcReadTemp.BU2DRB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU3DRB01, PlcReadTemp.BU3DRB01_Set, PlcReadTemp.BU3DRB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU4DRB01, PlcReadTemp.BU4DRB01_Set, PlcReadTemp.BU4DRB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU1GEB01, PlcReadTemp.BU1GEB01_Set, PlcReadTemp.BU1GEB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2GEB01, PlcReadTemp.BU2GEB01_Set, PlcReadTemp.BU2GEB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU3GEB01, PlcReadTemp.BU3GEB01_Set, PlcReadTemp.BU3GEB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU4GEB01, PlcReadTemp.BU4GEB01_Set, PlcReadTemp.BU4GEB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU5GEB01, PlcReadTemp.BU5GEB01_Set, PlcReadTemp.BU5GEB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU6GEB01, PlcReadTemp.BU6GEB01_Set, PlcReadTemp.BU6GEB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU7GEB01, PlcReadTemp.BU7GEB01_Set, PlcReadTemp.BU7GEB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU8GEB01, PlcReadTemp.BU8GEB01_Set, PlcReadTemp.BU8GEB01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2ASF01, PlcReadTemp.BU2ASF01_Set, PlcReadTemp.BU2ASF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2ASF02, PlcReadTemp.BU2ASF02_Set, PlcReadTemp.BU2ASF02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2BSF01, PlcReadTemp.BU2BSF01_Set, PlcReadTemp.BU2BSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2BSF02, PlcReadTemp.BU2BSF02_Set, PlcReadTemp.BU2BSF02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2CSF01, PlcReadTemp.BU2CSF01_Set, PlcReadTemp.BU2CSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2CSF02, PlcReadTemp.BU2CSF02_Set, PlcReadTemp.BU2CSF02_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2DSF01, PlcReadTemp.BU2DSF01_Set, PlcReadTemp.BU2DSF01_Alarm); + SetLjSwith(DeviceDetailReportForm.BU2DSF02, PlcReadTemp.BU2DSF02_Set, PlcReadTemp.BU2DSF02_Alarm); + SetLjSwith(DeviceDetailReportForm.BUWeter1, PlcReadTemp.BUWeter1_Set, PlcReadTemp.BUWeter1_Alarm); + SetLjSwith(DeviceDetailReportForm.BUWeter2, PlcReadTemp.BUWeter2_Set, PlcReadTemp.BUWeter2_Alarm); + SetLjSwith(DeviceDetailReportForm.BUWeter3, PlcReadTemp.BUWeter3_Set, PlcReadTemp.BUWeter3_Alarm); + SetLjSwith(DeviceDetailReportForm.BUWeter4, PlcReadTemp.BUWeter4_Set, PlcReadTemp.BUWeter4_Alarm); + SetLjSwith(DeviceDetailReportForm.BUWeter5, PlcReadTemp.BUWeter5_Set, PlcReadTemp.BUWeter5_Alarm); + SetLjSwith(DeviceDetailReportForm.BUWeter6, PlcReadTemp.BUWeter6_Set, PlcReadTemp.BUWeter6_Alarm); + SetLjSwith(DeviceDetailReportForm.BUWeter7, PlcReadTemp.BUWeter7_Set, PlcReadTemp.BUWeter7_Alarm); + SetLjSwith(DeviceDetailReportForm.BUWeter8, PlcReadTemp.BUWeter8_Set, PlcReadTemp.BUWeter8_Alarm); } /// @@ -1489,39 +542,39 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl /// private void NewThreadDb2103() { - DM1DRY1_ACT_Speed_Set = DB2103.DM1DRY1.ACT_Speed; - DM1DRY2_ACT_Speed_Set = DB2103.DM1DRY2.ACT_Speed; - DM1DRY3_ACT_Speed_Set = DB2103.DM1DRY3.ACT_Speed; - DM1DRY4_ACT_Speed_Set = DB2103.DM1DRY4.ACT_Speed; - - DM1GEM_Set = DB2103.DM1GEM.ACT_Speed; - DM2GEM_Set = DB2103.DM2GEM.ACT_Speed; - DM3GEM_Set = DB2103.DM3GEM.ACT_Speed; - DM4GEM_Set = DB2103.DM4GEM.ACT_Speed; - DM5GEM_Set = DB2103.DM5GEM.ACT_Speed; - DM6GEM_Set = DB2103.DM6GEM.ACT_Speed; - DM7GEM_Set = DB2103.DM7GEM.ACT_Speed; - DM8GEM_Set = DB2103.DM8GEM.ACT_Speed; - DM2ASF01_Set = DB2103.DM2ASF01.ACT_Speed; - DM2BSF01_Set = DB2103.DM2BSF01.ACT_Speed; - DM2CSF01_Set = DB2103.DM2CSF01.ACT_Speed; - DM2DSF01_Set = DB2103.DM2DSF01.ACT_Speed; - - DM1ASF01_Set = DB2103.DM1ASF01.Run; - DM1BSF01_Set = DB2103.DM1BSF01.Run; - DM1CSF01_Set = DB2103.DM1CSF01.Run; - DM1DSF01_Set = DB2103.DM1DSF01.Run; - DM1ESF01_Set = DB2103.DM1ESF01.Run; - DM1FSF01_Set = DB2103.DM1FSF01.Run; - DM1GSF01_Set = DB2103.DM1GSF01.Run; - DM1HSF01_Set = DB2103.DM1HSF01.Run; - DM1ISF01_Set = DB2103.DM1ISF01.Run; - DM1JSF01_Set = DB2103.DM1JSF01.Run; - DM1KSF01_Set = DB2103.DM1KSF01.Run; - DM1LSF01_Set = DB2103.DM1LSF01.Run; - DM1MSF01_Set = DB2103.DM1MSF01.Run; - DM1NSF01_Set = DB2103.DM1NSF01.Run; - DM1OSF01_Set = DB2103.DM1OSF01.Running; + PlcReadTemp.DM1DRY1_ACT_Speed_Set = DB2103.DM1DRY1.ACT_Speed; + PlcReadTemp.DM1DRY2_ACT_Speed_Set = DB2103.DM1DRY2.ACT_Speed; + PlcReadTemp.DM1DRY3_ACT_Speed_Set = DB2103.DM1DRY3.ACT_Speed; + PlcReadTemp.DM1DRY4_ACT_Speed_Set = DB2103.DM1DRY4.ACT_Speed; + + PlcReadTemp.DM1GEM_Set = DB2103.DM1GEM.ACT_Speed; + PlcReadTemp.DM2GEM_Set = DB2103.DM2GEM.ACT_Speed; + PlcReadTemp.DM3GEM_Set = DB2103.DM3GEM.ACT_Speed; + PlcReadTemp.DM4GEM_Set = DB2103.DM4GEM.ACT_Speed; + PlcReadTemp.DM5GEM_Set = DB2103.DM5GEM.ACT_Speed; + PlcReadTemp.DM6GEM_Set = DB2103.DM6GEM.ACT_Speed; + PlcReadTemp.DM7GEM_Set = DB2103.DM7GEM.ACT_Speed; + PlcReadTemp.DM8GEM_Set = DB2103.DM8GEM.ACT_Speed; + PlcReadTemp.DM2ASF01_Set = DB2103.DM2ASF01.ACT_Speed; + PlcReadTemp.DM2BSF01_Set = DB2103.DM2BSF01.ACT_Speed; + PlcReadTemp.DM2CSF01_Set = DB2103.DM2CSF01.ACT_Speed; + PlcReadTemp.DM2DSF01_Set = DB2103.DM2DSF01.ACT_Speed; + + PlcReadTemp.DM1ASF01_Set = DB2103.DM1ASF01.Run; + PlcReadTemp.DM1BSF01_Set = DB2103.DM1BSF01.Run; + PlcReadTemp.DM1CSF01_Set = DB2103.DM1CSF01.Run; + PlcReadTemp.DM1DSF01_Set = DB2103.DM1DSF01.Run; + PlcReadTemp.DM1ESF01_Set = DB2103.DM1ESF01.Run; + PlcReadTemp.DM1FSF01_Set = DB2103.DM1FSF01.Run; + PlcReadTemp.DM1GSF01_Set = DB2103.DM1GSF01.Run; + PlcReadTemp.DM1HSF01_Set = DB2103.DM1HSF01.Run; + PlcReadTemp.DM1ISF01_Set = DB2103.DM1ISF01.Run; + PlcReadTemp.DM1JSF01_Set = DB2103.DM1JSF01.Run; + PlcReadTemp.DM1KSF01_Set = DB2103.DM1KSF01.Run; + PlcReadTemp.DM1LSF01_Set = DB2103.DM1LSF01.Run; + PlcReadTemp.DM1MSF01_Set = DB2103.DM1MSF01.Run; + PlcReadTemp.DM1NSF01_Set = DB2103.DM1NSF01.Run; + PlcReadTemp.DM1OSF01_Set = DB2103.DM1OSF01.Running; if (DB2103.DM2ASF01.Running) { @@ -1535,13 +588,13 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl // DM2ASF01L_Set = false; // DM2ASF01R_Set = true; //} - DM2ASF01L_Set = true; - DM2ASF01R_Set = true; + PlcReadTemp.DM2ASF01L_Set = true; + PlcReadTemp.DM2ASF01R_Set = true; } else { - DM2ASF01L_Set = false; - DM2ASF01R_Set = false; + PlcReadTemp.DM2ASF01L_Set = false; + PlcReadTemp.DM2ASF01R_Set = false; } if (DB2103.DM2BSF01.Running) @@ -1556,13 +609,13 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl // DM2BSF01L_Set = false; // DM2BSF01R_Set = true; //} - DM2BSF01L_Set = true; - DM2BSF01R_Set = true; + PlcReadTemp.DM2BSF01L_Set = true; + PlcReadTemp.DM2BSF01R_Set = true; } else { - DM2BSF01L_Set = false; - DM2BSF01R_Set = false; + PlcReadTemp.DM2BSF01L_Set = false; + PlcReadTemp.DM2BSF01R_Set = false; } if (DB2103.DM2CSF01.Running) @@ -1577,13 +630,13 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl // DM2CSF01L_Set = false; // DM2CSF01R_Set = true; //} - DM2CSF01L_Set = true; - DM2CSF01R_Set = true; + PlcReadTemp.DM2CSF01L_Set = true; + PlcReadTemp.DM2CSF01R_Set = true; } else { - DM2CSF01L_Set = false; - DM2CSF01R_Set = false; + PlcReadTemp.DM2CSF01L_Set = false; + PlcReadTemp.DM2CSF01R_Set = false; } if (DB2103.DM2DSF01.Running) @@ -1598,153 +651,153 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl // DM2DSF01L_Set = false; // DM2DSF01R_Set = true; //} - DM2DSF01L_Set = true; - DM2DSF01R_Set = true; + PlcReadTemp.DM2DSF01L_Set = true; + PlcReadTemp.DM2DSF01R_Set = true; } else { - DM2DSF01L_Set = false; - DM2DSF01R_Set = false; + PlcReadTemp.DM2DSF01L_Set = false; + PlcReadTemp.DM2DSF01R_Set = false; } - DM1ADF01_Set = DB2103.DM1ADF01.Run; - DM1BDF01_Set = DB2103.DM1BDF01.Run; - DM1CDF01_Set = DB2103.DM1CDF01.Run; - DM1DDF01_Set = DB2103.DM1DDF01.Run; - DM1EDF01_Set = DB2103.DM1EDF01.Run; - DM1FDF01_Set = DB2103.DM1FDF01.Run; - DM1GDF01_Set = DB2103.DM1GDF01.Run; - DM1HDF01_Set = DB2103.DM1HDF01.Run; - DM1IDF01_Set = DB2103.DM1IDF01.Run; - DM1JDF01_Set = DB2103.DM1JDF01.Run; - DM1KDF01_Set = DB2103.DM1KDF01.Run; - DM1LDF01_Set = DB2103.DM1LDF01.Run; - DM1ADB01_Set = DB2103.DM1ADB01.Run; - DM1BDB01_Set = DB2103.DM1BDB01.Run; - DM1CDB01_Set = DB2103.DM1CDB01.Run; - DM1DDB01_Set = DB2103.DM1DDB01.Run; - DM1EDB01_Set = DB2103.DM1EDB01.Run; - DM1FDB01_Set = DB2103.DM1FDB01.Run; - DM1GDB01_Set = DB2103.DM1GDB01.Run; - DM1HDB01_Set = DB2103.DM1HDB01.Run; - DM1IDB01_Set = DB2103.DM1IDB01.Run; - DM1JDB01_Set = DB2103.DM1JDB01.Run; - DM1KDB01_Set = DB2103.DM1KDB01.Run; - DM1LDB01_Set = DB2103.DM1LDB01.Run; - DM1DRY1_Running_Set = DB2103.DM1DRY1.Running; - DM1DRY2_Running_Set = DB2103.DM1DRY2.Running; - DM1DRY3_Running_Set = DB2103.DM1DRY3.Running; - DM1DRY4_Running_Set = DB2103.DM1DRY4.Running; - - DMWETER1_Set = DB2103.DMWETER1.Running; - DMWETER2_Set = DB2103.DMWETER2.Running; - DMWETER3_Set = DB2103.DMWETER3.Running; - DMWETER4_Set = DB2103.DMWETER4.Running; - DMWETER5_Set = DB2103.DMWETER5.Running; - DMWETER6_Set = DB2103.DMWETER6.Running; - DMWETER7_Set = DB2103.DMWETER7.Running; - DMWETER8_Set = DB2103.DMWETER8.Running; - - DMWETER1_Alarm = DB2103.DMWETER1.Alarm; - DMWETER2_Alarm = DB2103.DMWETER2.Alarm; - DMWETER3_Alarm = DB2103.DMWETER3.Alarm; - DMWETER4_Alarm = DB2103.DMWETER4.Alarm; - DMWETER5_Alarm = DB2103.DMWETER5.Alarm; - DMWETER6_Alarm = DB2103.DMWETER6.Alarm; - DMWETER7_Alarm = DB2103.DMWETER7.Alarm; - DMWETER8_Alarm = DB2103.DMWETER8.Alarm; - - SetMCLabel(DM1DRY1_ACT_Speed, (float)Math.Round(DM1DRY1_ACT_Speed_Set, 2)); - SetMCLabel(DM1DRY2_ACT_Speed, (float)Math.Round(DM1DRY2_ACT_Speed_Set, 2)); - SetMCLabel(DM1DRY3_ACT_Speed, (float)Math.Round(DM1DRY3_ACT_Speed_Set, 2)); - SetMCLabel(DM1DRY4_ACT_Speed, (float)Math.Round(DM1DRY4_ACT_Speed_Set, 2)); - - - SetMCLabel(DM1GEM, (float)Math.Round(DM1GEM_Set, 2)); - SetMCLabel(DM2GEM, (float)Math.Round(DM2GEM_Set, 2)); - SetMCLabel(DM3GEM, (float)Math.Round(DM3GEM_Set, 2)); - SetMCLabel(DM4GEM, (float)Math.Round(DM4GEM_Set, 2)); - SetMCLabel(DM5GEM, (float)Math.Round(DM5GEM_Set, 2)); - SetMCLabel(DM6GEM, (float)Math.Round(DM6GEM_Set, 2)); - SetMCLabel(DM7GEM, (float)Math.Round(DM7GEM_Set, 2)); - SetMCLabel(DM8GEM, (float)Math.Round(DM8GEM_Set, 2)); - SetMCLabel(DM2ASF01, (float)Math.Round(DM2ASF01_Set, 2)); - SetMCLabel(DM2BSF01, (float)Math.Round(DM2BSF01_Set, 2)); - SetMCLabel(DM2CSF01, (float)Math.Round(DM2CSF01_Set, 2)); - SetMCLabel(DM2DSF01, (float)Math.Round(DM2DSF01_Set, 2)); - - - SetRSCREWBIG(DM1ASF01, DM1ASF01_Set); - SetRSCREWBIG(DM1BSF01, DM1BSF01_Set); - SetLSCREWBIG(DM1CSF01, DM1CSF01_Set); - SetLSCREWBIG(DM1DSF01, DM1DSF01_Set); - SetRSCREWBIG(DM1ESF01, DM1ESF01_Set); - SetLSCREWBIG(DM1FSF01, DM1FSF01_Set); - SetRSCREWBIG(DM1GSF01, DM1GSF01_Set); - SetRSCREWBIG(DM1HSF01, DM1HSF01_Set); - SetLSCREWBIG(DM1ISF01, DM1ISF01_Set); - SetLSCREWBIG(DM1JSF01, DM1JSF01_Set); - SetRSCREWBIG(DM1KSF01, DM1KSF01_Set); - SetRSCREWBIG(DM1LSF01, DM1LSF01_Set); - SetLSCREWBIG(DM1MSF01, DM1MSF01_Set); - SetLSCREWBIG(DM1NSF01, DM1NSF01_Set); - SetRSCREWBIG(DM1OSF01, DM1OSF01_Set); - SetLSCREWBIG(DM2ASF01L, DM2ASF01L_Set); - SetLSCREWBIG(DM2BSF01L, DM2BSF01L_Set); - SetLSCREWBIG(DM2CSF01L, DM2CSF01L_Set); - SetLSCREWBIG(DM2DSF01L, DM2DSF01L_Set); - SetRSCREWBIG(DM2ASF01R, DM2ASF01R_Set); - SetRSCREWBIG(DM2BSF01R, DM2BSF01R_Set); - SetRSCREWBIG(DM2CSF01R, DM2CSF01R_Set); - SetRSCREWBIG(DM2DSF01R, DM2DSF01R_Set); - - - SetFan(DM1ADF01, DM1ADF01_Set); - SetFan(DM1BDF01, DM1BDF01_Set); - SetFan(DM1CDF01, DM1CDF01_Set); - SetFan(DM1DDF01, DM1DDF01_Set); - SetFan(DM1EDF01, DM1EDF01_Set); - SetFan(DM1FDF01, DM1FDF01_Set); - SetFan(DM1GDF01, DM1GDF01_Set); - SetFan(DM1HDF01, DM1HDF01_Set); - SetFan(DM1IDF01, DM1IDF01_Set); - SetFan(DM1JDF01, DM1JDF01_Set); - SetFan(DM1KDF01, DM1KDF01_Set); - SetFan(DM1LDF01, DM1LDF01_Set); - SetFan(DM1ADB01, DM1ADB01_Set); - SetFan(DM1BDB01, DM1BDB01_Set); - SetFan(DM1CDB01, DM1CDB01_Set); - SetFan(DM1DDB01, DM1DDB01_Set); - SetFan(DM1EDB01, DM1EDB01_Set); - SetFan(DM1FDB01, DM1FDB01_Set); - SetFan(DM1GDB01, DM1GDB01_Set); - SetFan(DM1HDB01, DM1HDB01_Set); - SetFan(DM1IDB01, DM1IDB01_Set); - SetFan(DM1JDB01, DM1JDB01_Set); - SetFan(DM1KDB01, DM1KDB01_Set); - SetFan(DM1LDB01, DM1LDB01_Set); - SetFan(DM1DRY1_Running, DM1DRY1_Running_Set); - SetFan(DM1DRY2_Running, DM1DRY2_Running_Set); - SetFan(DM1DRY3_Running, DM1DRY3_Running_Set); - SetFan(DM1DRY4_Running, DM1DRY4_Running_Set); - SetFan(PM3ADF01, PM3ADF01_Set); - - SetSwitchLight(DMWETER1, DMWETER1_Set, DMWETER1_Alarm); - SetSwitchLight(DMWETER11, DMWETER1_Set, DMWETER1_Alarm); - SetSwitchLight(DMWETER2, DMWETER2_Set, DMWETER2_Alarm); - SetSwitchLight(DMWETER22, DMWETER2_Set, DMWETER2_Alarm); - SetSwitchLight(DMWETER3, DMWETER3_Set, DMWETER3_Alarm); - SetSwitchLight(DMWETER33, DMWETER3_Set, DMWETER3_Alarm); - SetSwitchLight(DMWETER4, DMWETER4_Set, DMWETER4_Alarm); - SetSwitchLight(DMWETER44, DMWETER4_Set, DMWETER4_Alarm); - SetSwitchLight(DMWETER5, DMWETER5_Set, DMWETER5_Alarm); - SetSwitchLight(DMWETER55, DMWETER5_Set, DMWETER5_Alarm); - SetSwitchLight(DMWETER6, DMWETER6_Set, DMWETER6_Alarm); - SetSwitchLight(DMWETER66, DMWETER6_Set, DMWETER6_Alarm); - SetSwitchLight(DMWETER7, DMWETER7_Set, DMWETER7_Alarm); - SetSwitchLight(DMWETER77, DMWETER7_Set, DMWETER7_Alarm); - SetSwitchLight(DMWETER8, DMWETER8_Set, DMWETER8_Alarm); - SetSwitchLight(DMWETER88, DMWETER8_Set, DMWETER8_Alarm); + PlcReadTemp.DM1ADF01_Set = DB2103.DM1ADF01.Run; + PlcReadTemp.DM1BDF01_Set = DB2103.DM1BDF01.Run; + PlcReadTemp.DM1CDF01_Set = DB2103.DM1CDF01.Run; + PlcReadTemp.DM1DDF01_Set = DB2103.DM1DDF01.Run; + PlcReadTemp.DM1EDF01_Set = DB2103.DM1EDF01.Run; + PlcReadTemp.DM1FDF01_Set = DB2103.DM1FDF01.Run; + PlcReadTemp.DM1GDF01_Set = DB2103.DM1GDF01.Run; + PlcReadTemp.DM1HDF01_Set = DB2103.DM1HDF01.Run; + PlcReadTemp.DM1IDF01_Set = DB2103.DM1IDF01.Run; + PlcReadTemp.DM1JDF01_Set = DB2103.DM1JDF01.Run; + PlcReadTemp.DM1KDF01_Set = DB2103.DM1KDF01.Run; + PlcReadTemp.DM1LDF01_Set = DB2103.DM1LDF01.Run; + PlcReadTemp.DM1ADB01_Set = DB2103.DM1ADB01.Run; + PlcReadTemp.DM1BDB01_Set = DB2103.DM1BDB01.Run; + PlcReadTemp.DM1CDB01_Set = DB2103.DM1CDB01.Run; + PlcReadTemp.DM1DDB01_Set = DB2103.DM1DDB01.Run; + PlcReadTemp.DM1EDB01_Set = DB2103.DM1EDB01.Run; + PlcReadTemp.DM1FDB01_Set = DB2103.DM1FDB01.Run; + PlcReadTemp.DM1GDB01_Set = DB2103.DM1GDB01.Run; + PlcReadTemp.DM1HDB01_Set = DB2103.DM1HDB01.Run; + PlcReadTemp.DM1IDB01_Set = DB2103.DM1IDB01.Run; + PlcReadTemp.DM1JDB01_Set = DB2103.DM1JDB01.Run; + PlcReadTemp.DM1KDB01_Set = DB2103.DM1KDB01.Run; + PlcReadTemp.DM1LDB01_Set = DB2103.DM1LDB01.Run; + PlcReadTemp.DM1DRY1_Running_Set = DB2103.DM1DRY1.Running; + PlcReadTemp.DM1DRY2_Running_Set = DB2103.DM1DRY2.Running; + PlcReadTemp.DM1DRY3_Running_Set = DB2103.DM1DRY3.Running; + PlcReadTemp.DM1DRY4_Running_Set = DB2103.DM1DRY4.Running; + + PlcReadTemp.DMWETER1_Set = DB2103.DMWETER1.Running; + PlcReadTemp.DMWETER2_Set = DB2103.DMWETER2.Running; + PlcReadTemp.DMWETER3_Set = DB2103.DMWETER3.Running; + PlcReadTemp.DMWETER4_Set = DB2103.DMWETER4.Running; + PlcReadTemp.DMWETER5_Set = DB2103.DMWETER5.Running; + PlcReadTemp.DMWETER6_Set = DB2103.DMWETER6.Running; + PlcReadTemp.DMWETER7_Set = DB2103.DMWETER7.Running; + PlcReadTemp.DMWETER8_Set = DB2103.DMWETER8.Running; + + PlcReadTemp.DMWETER1_Alarm = DB2103.DMWETER1.Alarm; + PlcReadTemp.DMWETER2_Alarm = DB2103.DMWETER2.Alarm; + PlcReadTemp.DMWETER3_Alarm = DB2103.DMWETER3.Alarm; + PlcReadTemp.DMWETER4_Alarm = DB2103.DMWETER4.Alarm; + PlcReadTemp.DMWETER5_Alarm = DB2103.DMWETER5.Alarm; + PlcReadTemp.DMWETER6_Alarm = DB2103.DMWETER6.Alarm; + PlcReadTemp.DMWETER7_Alarm = DB2103.DMWETER7.Alarm; + PlcReadTemp.DMWETER8_Alarm = DB2103.DMWETER8.Alarm; + + SetMCLabel(DeviceDetailReportForm.DM1DRY1_ACT_Speed, (float)Math.Round(PlcReadTemp.DM1DRY1_ACT_Speed_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM1DRY2_ACT_Speed, (float)Math.Round(PlcReadTemp.DM1DRY2_ACT_Speed_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM1DRY3_ACT_Speed, (float)Math.Round(PlcReadTemp.DM1DRY3_ACT_Speed_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM1DRY4_ACT_Speed, (float)Math.Round(PlcReadTemp.DM1DRY4_ACT_Speed_Set, 2)); + + + SetMCLabel(DeviceDetailReportForm.DM1GEM, (float)Math.Round(PlcReadTemp.DM1GEM_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM2GEM, (float)Math.Round(PlcReadTemp.DM2GEM_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM3GEM, (float)Math.Round(PlcReadTemp.DM3GEM_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM4GEM, (float)Math.Round(PlcReadTemp.DM4GEM_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM5GEM, (float)Math.Round(PlcReadTemp.DM5GEM_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM6GEM, (float)Math.Round(PlcReadTemp.DM6GEM_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM7GEM, (float)Math.Round(PlcReadTemp.DM7GEM_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM8GEM, (float)Math.Round(PlcReadTemp.DM8GEM_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM2ASF01, (float)Math.Round(PlcReadTemp.DM2ASF01_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM2BSF01, (float)Math.Round(PlcReadTemp.DM2BSF01_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM2CSF01, (float)Math.Round(PlcReadTemp.DM2CSF01_Set, 2)); + SetMCLabel(DeviceDetailReportForm.DM2DSF01, (float)Math.Round(PlcReadTemp.DM2DSF01_Set, 2)); + + + SetRSCREWBIG(DeviceDetailReportForm.DM1ASF01, PlcReadTemp.DM1ASF01_Set); + SetRSCREWBIG(DeviceDetailReportForm.DM1BSF01, PlcReadTemp.DM1BSF01_Set); + SetLSCREWBIG(DeviceDetailReportForm.DM1CSF01, PlcReadTemp.DM1CSF01_Set); + SetLSCREWBIG(DeviceDetailReportForm.DM1DSF01, PlcReadTemp.DM1DSF01_Set); + SetRSCREWBIG(DeviceDetailReportForm.DM1ESF01, PlcReadTemp.DM1ESF01_Set); + SetLSCREWBIG(DeviceDetailReportForm.DM1FSF01, PlcReadTemp.DM1FSF01_Set); + SetRSCREWBIG(DeviceDetailReportForm.DM1GSF01, PlcReadTemp.DM1GSF01_Set); + SetRSCREWBIG(DeviceDetailReportForm.DM1HSF01, PlcReadTemp.DM1HSF01_Set); + SetLSCREWBIG(DeviceDetailReportForm.DM1ISF01, PlcReadTemp.DM1ISF01_Set); + SetLSCREWBIG(DeviceDetailReportForm.DM1JSF01, PlcReadTemp.DM1JSF01_Set); + SetRSCREWBIG(DeviceDetailReportForm.DM1KSF01, PlcReadTemp.DM1KSF01_Set); + SetRSCREWBIG(DeviceDetailReportForm.DM1LSF01, PlcReadTemp.DM1LSF01_Set); + SetLSCREWBIG(DeviceDetailReportForm.DM1MSF01, PlcReadTemp.DM1MSF01_Set); + SetLSCREWBIG(DeviceDetailReportForm.DM1NSF01, PlcReadTemp.DM1NSF01_Set); + SetRSCREWBIG(DeviceDetailReportForm.DM1OSF01, PlcReadTemp.DM1OSF01_Set); + SetLSCREWBIG(DeviceDetailReportForm.DM2ASF01L, PlcReadTemp.DM2ASF01L_Set); + SetLSCREWBIG(DeviceDetailReportForm.DM2BSF01L, PlcReadTemp.DM2BSF01L_Set); + SetLSCREWBIG(DeviceDetailReportForm.DM2CSF01L, PlcReadTemp.DM2CSF01L_Set); + SetLSCREWBIG(DeviceDetailReportForm.DM2DSF01L, PlcReadTemp.DM2DSF01L_Set); + SetRSCREWBIG(DeviceDetailReportForm.DM2ASF01R, PlcReadTemp.DM2ASF01R_Set); + SetRSCREWBIG(DeviceDetailReportForm.DM2BSF01R, PlcReadTemp.DM2BSF01R_Set); + SetRSCREWBIG(DeviceDetailReportForm.DM2CSF01R, PlcReadTemp.DM2CSF01R_Set); + SetRSCREWBIG(DeviceDetailReportForm.DM2DSF01R, PlcReadTemp.DM2DSF01R_Set); + + + SetFan(DeviceDetailReportForm.DM1ADF01, PlcReadTemp.DM1ADF01_Set); + SetFan(DeviceDetailReportForm.DM1BDF01, PlcReadTemp.DM1BDF01_Set); + SetFan(DeviceDetailReportForm.DM1CDF01, PlcReadTemp.DM1CDF01_Set); + SetFan(DeviceDetailReportForm.DM1DDF01, PlcReadTemp.DM1DDF01_Set); + SetFan(DeviceDetailReportForm.DM1EDF01, PlcReadTemp.DM1EDF01_Set); + SetFan(DeviceDetailReportForm.DM1FDF01, PlcReadTemp.DM1FDF01_Set); + SetFan(DeviceDetailReportForm.DM1GDF01, PlcReadTemp.DM1GDF01_Set); + SetFan(DeviceDetailReportForm.DM1HDF01, PlcReadTemp.DM1HDF01_Set); + SetFan(DeviceDetailReportForm.DM1IDF01, PlcReadTemp.DM1IDF01_Set); + SetFan(DeviceDetailReportForm.DM1JDF01, PlcReadTemp.DM1JDF01_Set); + SetFan(DeviceDetailReportForm.DM1KDF01, PlcReadTemp.DM1KDF01_Set); + SetFan(DeviceDetailReportForm.DM1LDF01, PlcReadTemp.DM1LDF01_Set); + SetFan(DeviceDetailReportForm.DM1ADB01, PlcReadTemp.DM1ADB01_Set); + SetFan(DeviceDetailReportForm.DM1BDB01, PlcReadTemp.DM1BDB01_Set); + SetFan(DeviceDetailReportForm.DM1CDB01, PlcReadTemp.DM1CDB01_Set); + SetFan(DeviceDetailReportForm.DM1DDB01, PlcReadTemp.DM1DDB01_Set); + SetFan(DeviceDetailReportForm.DM1EDB01, PlcReadTemp.DM1EDB01_Set); + SetFan(DeviceDetailReportForm.DM1FDB01, PlcReadTemp.DM1FDB01_Set); + SetFan(DeviceDetailReportForm.DM1GDB01, PlcReadTemp.DM1GDB01_Set); + SetFan(DeviceDetailReportForm.DM1HDB01, PlcReadTemp.DM1HDB01_Set); + SetFan(DeviceDetailReportForm.DM1IDB01, PlcReadTemp.DM1IDB01_Set); + SetFan(DeviceDetailReportForm.DM1JDB01, PlcReadTemp.DM1JDB01_Set); + SetFan(DeviceDetailReportForm.DM1KDB01, PlcReadTemp.DM1KDB01_Set); + SetFan(DeviceDetailReportForm.DM1LDB01, PlcReadTemp.DM1LDB01_Set); + SetFan(DeviceDetailReportForm.DM1DRY1_Running, PlcReadTemp.DM1DRY1_Running_Set); + SetFan(DeviceDetailReportForm.DM1DRY2_Running, PlcReadTemp.DM1DRY2_Running_Set); + SetFan(DeviceDetailReportForm.DM1DRY3_Running, PlcReadTemp.DM1DRY3_Running_Set); + SetFan(DeviceDetailReportForm.DM1DRY4_Running, PlcReadTemp.DM1DRY4_Running_Set); + SetFan(DeviceDetailReportForm.PM3ADF01, PlcReadTemp.PM3ADF01_Set); + + SetSwitchLight(DeviceDetailReportForm.DMWETER1, PlcReadTemp.DMWETER1_Set, PlcReadTemp.DMWETER1_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER11, PlcReadTemp.DMWETER1_Set, PlcReadTemp.DMWETER1_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER2, PlcReadTemp.DMWETER2_Set, PlcReadTemp.DMWETER2_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER22, PlcReadTemp.DMWETER2_Set, PlcReadTemp.DMWETER2_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER3, PlcReadTemp.DMWETER3_Set, PlcReadTemp.DMWETER3_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER33, PlcReadTemp.DMWETER3_Set, PlcReadTemp.DMWETER3_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER4, PlcReadTemp.DMWETER4_Set, PlcReadTemp.DMWETER4_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER44, PlcReadTemp.DMWETER4_Set, PlcReadTemp.DMWETER4_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER5, PlcReadTemp.DMWETER5_Set, PlcReadTemp.DMWETER5_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER55, PlcReadTemp.DMWETER5_Set, PlcReadTemp.DMWETER5_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER6, PlcReadTemp.DMWETER6_Set, PlcReadTemp.DMWETER6_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER66, PlcReadTemp.DMWETER6_Set, PlcReadTemp.DMWETER6_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER7, PlcReadTemp.DMWETER7_Set, PlcReadTemp.DMWETER7_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER77, PlcReadTemp.DMWETER7_Set, PlcReadTemp.DMWETER7_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER8, PlcReadTemp.DMWETER8_Set, PlcReadTemp.DMWETER8_Alarm); + SetSwitchLight(DeviceDetailReportForm.DMWETER88, PlcReadTemp.DMWETER8_Set, PlcReadTemp.DMWETER8_Alarm); } /// @@ -1752,747 +805,1243 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl /// private void NewThreadDb2107() { - - var normalStatusWatchDog = DB2107.NormalStatus.WatchDog; - WatchDog_Set = normalStatusWatchDog >= 1 ? true : false; - MCWatchDog.MCValue = normalStatusWatchDog.ToString(); - - EMStop_Set = DB2107.NormalStatus.EMStop; - - Vessel_1_HighLevel_Set = DB2107.Weight.Vessel_1.HighLevel; - Vessel_2_HighLevel_Set = DB2107.Weight.Vessel_2.HighLevel; - Vessel_3_HighLevel_Set = DB2107.Weight.Vessel_3.HighLevel; - Vessel_4_HighLevel_Set = DB2107.Weight.Vessel_4.HighLevel; - Vessel_5_HighLevel_Set = DB2107.Weight.Vessel_5.HighLevel; - Vessel_1_LowLevel_Set = DB2107.Weight.Vessel_1.Lowlevel; - Vessel_2_LowLevel_Set = DB2107.Weight.Vessel_2.Lowlevel; - Vessel_3_LowLevel_Set = DB2107.Weight.Vessel_3.Lowlevel; - Vessel_4_LowLevel_Set = DB2107.Weight.Vessel_4.Lowlevel; - Vessel_5_LowLevel_Set = DB2107.Weight.Vessel_5.Lowlevel; - highLevel_D1_Set = DB2107.Level.HighLevel_D1; - highLevel_D2_Set = DB2107.Level.HighLevel_D2; - highLevel_D3_Set = DB2107.Level.HighLevel_D3; - highLevel_D4_Set = DB2107.Level.HighLevel_D4; - highLevel_D5_Set = DB2107.Level.HighLevel_D5; - highLevel_D6_Set = DB2107.Level.HighLevel_D6; - highLevel_D7_Set = DB2107.Level.HighLevel_D7; - highLevel_D8_Set = DB2107.Level.HighLevel_D8; - highLevel_D9_Set = DB2107.Level.HighLevel_D9; - highLevel_D10_Set = DB2107.Level.HighLevel_D10; - highLevel_D11_Set = DB2107.Level.HighLevel_D11; - highLevel_D12_Set = DB2107.Level.HighLevel_D12; - lowLevel_D1_Set = DB2107.Level.LowLevel_D1; - lowLevel_D2_Set = DB2107.Level.LowLevel_D2; - lowLevel_D3_Set = DB2107.Level.LowLevel_D3; - lowLevel_D4_Set = DB2107.Level.LowLevel_D4; - lowLevel_D5_Set = DB2107.Level.LowLevel_D5; - lowLevel_D6_Set = DB2107.Level.LowLevel_D6; - lowLevel_D7_Set = DB2107.Level.LowLevel_D7; - lowLevel_D8_Set = DB2107.Level.LowLevel_D8; - lowLevel_D9_Set = DB2107.Level.LowLevel_D9; - lowLevel_D10_Set = DB2107.Level.LowLevel_D10; - lowLevel_D11_Set = DB2107.Level.LowLevel_D11; - lowLevel_D12_Set = DB2107.Level.LowLevel_D12; - Hopper_1_HighLevel_Set = DB2107.Weight.Hopper_1.HighLevel; - Hopper_2_HighLevel_Set = DB2107.Weight.Hopper_2.HighLevel; - Hopper_3_HighLevel_Set = DB2107.Weight.Hopper_3.HighLevel; - Hopper_4_HighLevel_Set = DB2107.Weight.Hopper_4.HighLevel; - Hopper_1_LowLevel_Set = DB2107.Weight.Hopper_1.Lowlevel; - Hopper_2_LowLevel_Set = DB2107.Weight.Hopper_2.Lowlevel; - Hopper_3_LowLevel_Set = DB2107.Weight.Hopper_3.Lowlevel; - Hopper_4_LowLevel_Set = DB2107.Weight.Hopper_4.Lowlevel; - WScale_1_HighLevel_Set = DB2107.Weight.WScale_1.HighLevel; - WScale_2_HighLevel_Set = DB2107.Weight.WScale_2.HighLevel; - WScale_3_HighLevel_Set = DB2107.Weight.WScale_3.HighLevel; - WScale_4_HighLevel_Set = DB2107.Weight.WScale_4.HighLevel; - WScale_1_LowLevel_Set = DB2107.Weight.WScale_1.Lowlevel; - WScale_2_LowLevel_Set = DB2107.Weight.WScale_2.Lowlevel; - WScale_3_LowLevel_Set = DB2107.Weight.WScale_3.Lowlevel; - WScale_4_LowLevel_Set = DB2107.Weight.WScale_4.Lowlevel; - - topPressure_V1_Set = DB2107.Pressure.TopPressure_V1.ActualValue; - topPressure_V2_Set = DB2107.Pressure.TopPressure_V2.ActualValue; - topPressure_V3_Set = DB2107.Pressure.TopPressure_V3.ActualValue; - topPressure_V4_Set = DB2107.Pressure.TopPressure_V4.ActualValue; - topPressure_V5_Set = DB2107.Pressure.TopPressure_V5.ActualValue; - Vessel_1_ActWeight_Set = DB2107.Weight.Vessel_1.ActWeight; - Vessel_2_ActWeight_Set = DB2107.Weight.Vessel_2.ActWeight; - Vessel_3_ActWeight_Set = DB2107.Weight.Vessel_3.ActWeight; - Vessel_4_ActWeight_Set = DB2107.Weight.Vessel_4.ActWeight; - Vessel_5_ActWeight_Set = DB2107.Weight.Vessel_5.ActWeight; - conveyV1_PV_Set = DB2107.PID.Convey_V1.PV; - conveyV2_PV_Set = DB2107.PID.Convey_V2.PV; - conveyV3_PV_Set = DB2107.PID.Convey_V3.PV; - conveyV5_PV_Set = DB2107.PID.Convey_V5.PV; - mainPress_V1_ActualValue_Set = DB2107.Pressure.MainPress_V1.ActualValue; - mainPress_V2_ActualValue_Set = DB2107.Pressure.MainPress_V2.ActualValue; - mainPress_V3_ActualValue_Set = DB2107.Pressure.MainPress_V3.ActualValue; - mainPress_V5_ActualValue_Set = DB2107.Pressure.MainPress_V5.ActualValue; - purgeV1_PV_Set = DB2107.PID.Purge_V1.PV; - purgeV2_PV_Set = DB2107.PID.Purge_V2.PV; - purgeV3_PV_Set = DB2107.PID.Purge_V3.PV; - purgeV5_PV_Set = DB2107.PID.Purge_V5.PV; - WScale_1_ActWeight_Set = DB2107.Weight.WScale_1.ActWeight; - WScale_2_ActWeight_Set = DB2107.Weight.WScale_2.ActWeight; - WScale_3_ActWeight_Set = DB2107.Weight.WScale_3.ActWeight; - WScale_4_ActWeight_Set = DB2107.Weight.WScale_4.ActWeight; - Hopper_1_ActWeight_Set = DB2107.Weight.Hopper_1.ActWeight; - Hopper_2_ActWeight_Set = DB2107.Weight.Hopper_2.ActWeight; - Hopper_3_ActWeight_Set = DB2107.Weight.Hopper_3.ActWeight; - Hopper_4_ActWeight_Set = DB2107.Weight.Hopper_4.ActWeight; - - - AS1BLT01_Set = DB2107.Valve.AS1BLT01; - AS1BLT02_Set = DB2107.Valve.AS1BLT02; - AS1BLT03_Set = DB2107.Valve.AS1BLT03; - AS1BLT04_Set = DB2107.Valve.AS1BLT04; - AS1BLT05_Set = DB2107.Valve.AS1BLT05; - AS2BLT01_Set = DB2107.Valve.AS2BLT01; - AS2BLT02_Set = DB2107.Valve.AS2BLT02; - AS2BLT03_Set = DB2107.Valve.AS2BLT03; - AS2BLT04_Set = DB2107.Valve.AS2BLT04; - AS2BLT05_Set = DB2107.Valve.AS2BLT05; - AS3BLT01_Set = DB2107.Valve.AS3BLT01; - AS3BLT02_Set = DB2107.Valve.AS3BLT02; - AS3BLT03_Set = DB2107.Valve.AS3BLT03; - AS3BLT04_Set = DB2107.Valve.AS3BLT04; - AS3BLT05_Set = DB2107.Valve.AS3BLT05; - AS4BLT01_Set = DB2107.Valve.AS4BLT01; - AS4BLT03_Set = DB2107.Valve.AS4BLT03; - AS5BLT01_Set = DB2107.Valve.AS5BLT01; - AS5BLT02_Set = DB2107.Valve.AS5BLT02; - AS5BLT03_Set = DB2107.Valve.AS5BLT03; - AS5BLT04_Set = DB2107.Valve.AS5BLT04; - AS5BLT05_Set = DB2107.Valve.AS5BLT05; - AS2PCP01_Set = DB2107.Valve.AS2PCP01; - AS2PCP02_Set = DB2107.Valve.AS2PCP02; - AS2PCP03_Set = DB2107.Valve.AS2PCP03; - AS1OIS01_Set = DB2107.Valve.AS1OIS01; - AS1OIS02_Set = DB2107.Valve.AS1OIS02; - AS1OIS03_Set = DB2107.Valve.AS1OIS03; - AS2OIS01_Set = DB2107.Valve.AS2OIS01; - AS2OIS02_Set = DB2107.Valve.AS2OIS02; - AS2OIS03_Set = DB2107.Valve.AS2OIS03; - AS3OIS01_Set = DB2107.Valve.AS3OIS01; - AS3OIS02_Set = DB2107.Valve.AS3OIS02; - AS3OIS03_Set = DB2107.Valve.AS3OIS03; - AS4OIS01_Set = DB2107.Valve.AS4OIS01; - AS4OIS02_Set = DB2107.Valve.AS4OIS02; - AS4OIS03_Set = DB2107.Valve.AS4OIS03; - AS1GET01_Set = DB2107.Valve.AS1GET01; - AS1GET02_Set = DB2107.Valve.AS1GET02; - AS2GET01_Set = DB2107.Valve.AS2GET01; - AS2GET02_Set = DB2107.Valve.AS2GET02; - AS3GET01_Set = DB2107.Valve.AS3GET01; - AS3GET02_Set = DB2107.Valve.AS3GET02; - AS4GET01_Set = DB2107.Valve.AS4GET01; - AS4GET02_Set = DB2107.Valve.AS4GET02; - AS5GET01_Set = DB2107.Valve.AS5GET01; - AS5GET02_Set = DB2107.Valve.AS5GET02; - AS6GET01_Set = DB2107.Valve.AS6GET01; - AS6GET02_Set = DB2107.Valve.AS6GET02; - AS7GET01_Set = DB2107.Valve.AS7GET01; - AS7GET02_Set = DB2107.Valve.AS7GET02; - AS8GET01_Set = DB2107.Valve.AS8GET01; - AS8GET02_Set = DB2107.Valve.AS8GET02; - - - PM1ADF01_Set = DB2107.Valve.PM1ADF01; - PM1BDF01_Set = DB2107.Valve.PM1BDF01; - PM1CDF01_Set = DB2107.Valve.PM1CDF01; - PM1DDF01_Set = DB2107.Valve.PM1DDF01; - PM1EDF01_Set = DB2107.Valve.PM1EDF01; - PM1FDF01_Set = DB2107.Valve.PM1FDF01; - PM1GDF01_Set = DB2107.Valve.PM1GDF01; - PM1HDF01_Set = DB2107.Valve.PM1HDF01; - PM1IDF01_Set = DB2107.Valve.PM1IDF01; - PM1JDF01_Set = DB2107.Valve.PM1JDF01; - PM1KDF01_Set = DB2107.Valve.PM1KDF01; - PM1LDF01_Set = DB2107.Valve.PM1LDF01; - - - SetStateButton(WatchDog, WatchDog_Set); - SetSystemStateShow(EMStop, EMStop_Set); - - - SetSwitchLight(Vessel_1_HighLevel, Vessel_1_HighLevel_Set, false); - SetSwitchLight(Vessel_2_HighLevel, Vessel_2_HighLevel_Set, false); - SetSwitchLight(Vessel_3_HighLevel, Vessel_3_HighLevel_Set, false); - SetSwitchLight(Vessel_4_HighLevel, Vessel_4_HighLevel_Set, false); - SetSwitchLight(Vessel_5_HighLevel, Vessel_5_HighLevel_Set, false); - SetSwitchLight(Vessel_1_LowLevel, Vessel_1_LowLevel_Set, false); - SetSwitchLight(Vessel_2_LowLevel, Vessel_2_LowLevel_Set, false); - SetSwitchLight(Vessel_3_LowLevel, Vessel_3_LowLevel_Set, false); - SetSwitchLight(Vessel_4_LowLevel, Vessel_4_LowLevel_Set, false); - SetSwitchLight(Vessel_5_LowLevel, Vessel_5_LowLevel_Set, false); - SetSwitchLight(highLevel_D1, highLevel_D1_Set, false); - SetSwitchLight(highLevel_D2, highLevel_D2_Set, false); - SetSwitchLight(highLevel_D3, highLevel_D3_Set, false); - SetSwitchLight(highLevel_D4, highLevel_D4_Set, false); - SetSwitchLight(highLevel_D5, highLevel_D5_Set, false); - SetSwitchLight(highLevel_D6, highLevel_D6_Set, false); - SetSwitchLight(highLevel_D7, highLevel_D7_Set, false); - SetSwitchLight(highLevel_D8, highLevel_D8_Set, false); - SetSwitchLight(highLevel_D9, highLevel_D9_Set, false); - SetSwitchLight(highLevel_D10, highLevel_D10_Set, false); - SetSwitchLight(highLevel_D11, highLevel_D11_Set, false); - SetSwitchLight(highLevel_D12, highLevel_D12_Set, false); - SetSwitchLight(lowLevel_D1, lowLevel_D1_Set, false); - SetSwitchLight(lowLevel_D2, lowLevel_D2_Set, false); - SetSwitchLight(lowLevel_D3, lowLevel_D3_Set, false); - SetSwitchLight(lowLevel_D4, lowLevel_D4_Set, false); - SetSwitchLight(lowLevel_D5, lowLevel_D5_Set, false); - SetSwitchLight(lowLevel_D6, lowLevel_D6_Set, false); - SetSwitchLight(lowLevel_D7, lowLevel_D7_Set, false); - SetSwitchLight(lowLevel_D8, lowLevel_D8_Set, false); - SetSwitchLight(lowLevel_D9, lowLevel_D9_Set, false); - SetSwitchLight(lowLevel_D10, lowLevel_D10_Set, false); - SetSwitchLight(lowLevel_D11, lowLevel_D11_Set, false); - SetSwitchLight(lowLevel_D12, lowLevel_D12_Set, false); - SetSwitchLight(Hopper_1_HighLevel, Hopper_1_HighLevel_Set, false); - SetSwitchLight(Hopper_2_HighLevel, Hopper_2_HighLevel_Set, false); - SetSwitchLight(Hopper_3_HighLevel, Hopper_3_HighLevel_Set, false); - SetSwitchLight(Hopper_4_HighLevel, Hopper_4_HighLevel_Set, false); - SetSwitchLight(Hopper_1_LowLevel, Hopper_1_LowLevel_Set, false); - SetSwitchLight(Hopper_2_LowLevel, Hopper_2_LowLevel_Set, false); - SetSwitchLight(Hopper_3_LowLevel, Hopper_3_LowLevel_Set, false); - SetSwitchLight(Hopper_4_LowLevel, Hopper_4_LowLevel_Set, false); - SetSwitchLight(WScale_1_HighLevel, WScale_1_HighLevel_Set, false); - SetSwitchLight(WScale_2_HighLevel, WScale_2_HighLevel_Set, false); - SetSwitchLight(WScale_3_HighLevel, WScale_3_HighLevel_Set, false); - SetSwitchLight(WScale_4_HighLevel, WScale_4_HighLevel_Set, false); - SetSwitchLight(WScale_1_LowLevel, WScale_1_LowLevel_Set, false); - SetSwitchLight(WScale_2_LowLevel, WScale_2_LowLevel_Set, false); - SetSwitchLight(WScale_3_LowLevel, WScale_3_LowLevel_Set, false); - SetSwitchLight(WScale_4_LowLevel, WScale_4_LowLevel_Set, false); - - - SetMCLabel(topPressure_V1, (float)Math.Round(topPressure_V2_Set, 2)); - SetMCLabel(topPressure_V2, (float)Math.Round(topPressure_V2_Set, 2)); - SetMCLabel(topPressure_V3, (float)Math.Round(topPressure_V3_Set, 2)); - SetMCLabel(topPressure_V4, (float)Math.Round(topPressure_V4_Set, 2)); - SetMCLabel(topPressure_V5, (float)Math.Round(topPressure_V5_Set, 2)); - SetMCLabel(Vessel_1_ActWeight, (float)Math.Round(Vessel_1_ActWeight_Set, 2)); - SetMCLabel(Vessel_2_ActWeight, (float)Math.Round(Vessel_2_ActWeight_Set, 2)); - SetMCLabel(Vessel_3_ActWeight, (float)Math.Round(Vessel_3_ActWeight_Set, 2)); - SetMCLabel(Vessel_4_ActWeight, (float)Math.Round(Vessel_4_ActWeight_Set, 2)); - SetMCLabel(Vessel_5_ActWeight, (float)Math.Round(Vessel_5_ActWeight_Set, 2)); - SetMCLabel(conveyV1_PV, (float)Math.Round(conveyV1_PV_Set, 2)); - SetMCLabel(conveyV2_PV, (float)Math.Round(conveyV2_PV_Set, 2)); - SetMCLabel(conveyV3_PV, (float)Math.Round(conveyV3_PV_Set, 2)); - SetMCLabel(conveyV5_PV, (float)Math.Round(conveyV5_PV_Set, 2)); - SetMCLabel(mainPress_V1_ActualValue, (float)Math.Round(mainPress_V1_ActualValue_Set, 2)); - SetMCLabel(mainPress_V2_ActualValue, (float)Math.Round(mainPress_V2_ActualValue_Set, 2)); - SetMCLabel(mainPress_V3_ActualValue, (float)Math.Round(mainPress_V3_ActualValue_Set, 2)); - SetMCLabel(mainPress_V5_ActualValue, (float)Math.Round(mainPress_V5_ActualValue_Set, 2)); - SetMCLabel(purgeV1_PV, (float)Math.Round(purgeV1_PV_Set, 2)); - SetMCLabel(purgeV2_PV, (float)Math.Round(purgeV2_PV_Set, 2)); - SetMCLabel(purgeV3_PV, (float)Math.Round(purgeV3_PV_Set, 2)); - SetMCLabel(purgeV5_PV, (float)Math.Round(purgeV5_PV_Set, 2)); - SetMCLabel(WScale_1_ActWeight, (float)Math.Round(WScale_1_ActWeight_Set, 2)); - SetMCLabel(WScale_2_ActWeight, (float)Math.Round(WScale_2_ActWeight_Set, 2)); - SetMCLabel(WScale_3_ActWeight, (float)Math.Round(WScale_3_ActWeight_Set, 2)); - SetMCLabel(WScale_4_ActWeight, (float)Math.Round(WScale_4_ActWeight_Set, 2)); - SetMCLabel(Hopper_1_ActWeight, (float)Math.Round(Hopper_1_ActWeight_Set, 2)); - SetMCLabel(Hopper_2_ActWeight, (float)Math.Round(Hopper_2_ActWeight_Set, 2)); - SetMCLabel(Hopper_3_ActWeight, (float)Math.Round(Hopper_3_ActWeight_Set, 2)); - SetMCLabel(Hopper_4_ActWeight, (float)Math.Round(Hopper_4_ActWeight_Set, 2)); - - - SetJzf(AS1BLT01, AS1BLT01_Set); - SetJzf(AS1BLT02, AS1BLT02_Set); - SetJzf(AS1BLT03, AS1BLT03_Set); - SetJzf(AS1BLT04, AS1BLT04_Set); - SetJzf(AS1BLT05, AS1BLT05_Set); - SetJzf(AS2BLT01, AS2BLT01_Set); - SetJzf(AS2BLT02, AS2BLT02_Set); - SetJzf(AS2BLT03, AS2BLT03_Set); - SetJzf(AS2BLT04, AS2BLT04_Set); - SetJzf(AS2BLT05, AS2BLT05_Set); - SetJzf(AS3BLT01, AS3BLT01_Set); - SetJzf(AS3BLT02, AS3BLT02_Set); - SetJzf(AS3BLT03, AS3BLT03_Set); - SetJzf(AS3BLT04, AS3BLT04_Set); - SetJzf(AS3BLT05, AS3BLT05_Set); - SetJzf(AS4BLT01, AS4BLT01_Set); - SetJzf(AS4BLT03, AS4BLT03_Set); - SetJzf(AS5BLT01, AS5BLT01_Set); - SetJzf(AS5BLT02, AS5BLT02_Set); - SetJzf(AS5BLT03, AS5BLT03_Set); - SetJzf(AS5BLT04, AS5BLT04_Set); - SetJzf(AS5BLT05, AS5BLT05_Set); - SetJzf(AS2PCP01, AS2PCP01_Set); - SetJzf(AS2PCP02, AS2PCP02_Set); - SetJzf(AS2PCP03, AS2PCP03_Set); - SetJzf(AS1OIS01, AS1OIS01_Set); - SetJzf(AS1OIS02, AS1OIS02_Set); - SetJzf(AS1OIS03, AS1OIS03_Set); - SetJzf(AS2OIS01, AS2OIS01_Set); - SetJzf(AS2OIS02, AS2OIS02_Set); - SetJzf(AS2OIS03, AS2OIS03_Set); - SetJzf(AS3OIS01, AS3OIS01_Set); - SetJzf(AS3OIS02, AS3OIS02_Set); - SetJzf(AS3OIS03, AS3OIS03_Set); - SetJzf(AS4OIS01, AS4OIS01_Set); - SetJzf(AS4OIS02, AS4OIS02_Set); - SetJzf(AS4OIS03, AS4OIS03_Set); - SetJzf(AS1GET01, AS1GET01_Set); - SetJzf(AS1GET02, AS1GET02_Set); - SetJzf(AS2GET01, AS2GET01_Set); - SetJzf(AS2GET02, AS2GET02_Set); - SetJzf(AS3GET01, AS3GET01_Set); - SetJzf(AS3GET02, AS3GET02_Set); - SetJzf(AS4GET01, AS4GET01_Set); - SetJzf(AS4GET02, AS4GET02_Set); - SetJzf(AS5GET01, AS5GET01_Set); - SetJzf(AS5GET02, AS5GET02_Set); - SetJzf(AS6GET01, AS6GET01_Set); - SetJzf(AS6GET02, AS6GET02_Set); - SetJzf(AS7GET01, AS7GET01_Set); - SetJzf(AS7GET02, AS7GET02_Set); - SetJzf(AS8GET01, AS8GET01_Set); - SetJzf(AS8GET02, AS8GET02_Set); - - - SetControlCabinet(PM1ADF01, PM1ADF01_Set); - SetControlCabinet(PM1BDF01, PM1BDF01_Set); - SetControlCabinet(PM1CDF01, PM1CDF01_Set); - SetControlCabinet(PM1DDF01, PM1DDF01_Set); - SetControlCabinet(PM1EDF01, PM1EDF01_Set); - SetControlCabinet(PM1FDF01, PM1FDF01_Set); - SetControlCabinet(PM1GDF01, PM1GDF01_Set); - SetControlCabinet(PM1HDF01, PM1HDF01_Set); - SetControlCabinet(PM1IDF01, PM1IDF01_Set); - SetControlCabinet(PM1JDF01, PM1JDF01_Set); - SetControlCabinet(PM1KDF01, PM1KDF01_Set); - SetControlCabinet(PM1LDF01, PM1LDF01_Set); - } + ParametersWithPCTable.Rows.Clear(); - /// - /// 新建PLC读取线程 - /// - /// - private void NewThread(object obj) - { - try + for (int i = 0; i < 4; i++) { + DataRow dr = ParametersWithPCTable.NewRow(); + dr[0] = "Dryer" + i; + dr[1] = DB2107.Dryer[i].Mode; + dr[2] = DB2107.Dryer[i].Status; + dr[3] = DB2107.Dryer[i].Batch; + dr[4] = DB2107.Dryer[i].Step; + dr[5] = DB2107.Dryer[i].StepCode; + dr[6] = DB2107.Dryer[i].TotalTime; + dr[7] = DB2107.Dryer[i].StepTime; + dr[8] = DB2107.Dryer[i].Speed; + dr[9] = DB2107.Dryer[i].Currnet; + dr[10] = DB2107.Dryer[i].Pressure; + ParametersWithPCTable.Rows.Add(dr); + } + for (int i = 0; i < 8; i++) + { + DataRow dr = ParametersWithPCTable.NewRow(); + dr[0] = "Gelater" + i; + dr[1] = DB2107.Gelater[i].Mode; + dr[2] = DB2107.Gelater[i].Status; + dr[3] = DB2107.Gelater[i].Batch; + dr[4] = DB2107.Gelater[i].Step; + dr[5] = DB2107.Gelater[i].StepCode; + dr[6] = DB2107.Gelater[i].TotalTime; + dr[7] = DB2107.Gelater[i].StepTime; + dr[8] = DB2107.Gelater[i].Speed; + dr[9] = DB2107.Gelater[i].Currnet; + dr[10] = DB2107.Gelater[i].Pressure; + ParametersWithPCTable.Rows.Add(dr); + } + for (int i = 0; i < 8; i++) + { + DataRow dr = ParametersWithPCTable.NewRow(); + dr[0] = "Weter" + i; + dr[1] = DB2107.Weter[i].Mode; + dr[2] = DB2107.Weter[i].Status; + dr[3] = DB2107.Weter[i].Batch; + dr[4] = DB2107.Weter[i].Step; + dr[5] = DB2107.Weter[i].StepCode; + dr[6] = DB2107.Weter[i].TotalTime; + dr[7] = DB2107.Weter[i].StepTime; + dr[8] = DB2107.Weter[i].Speed; + dr[9] = DB2107.Weter[i].Currnet; + dr[10] = DB2107.Weter[i].Pressure; + ParametersWithPCTable.Rows.Add(dr); + } - if (conCurrentCache.Count == 0) - { - //MesnacServiceManager.Instance.LoggingService.Info("开始"); - //Stopwatch stopwatch = new Stopwatch(); - //stopwatch.Start(); - - - conCurrentCache.TryAdd("plc", DateTime.Now); - - // NewThreadDb2102(); - // NewThreadDb2103(); - // NewThreadDb2107(); - - DB2102 = new DB2102Helper(); - DB2103 = new DB2103Helper(); - // DB2107 = new DB2107Helper(); - NewThreadDb2102(); - NewThreadDb2103(); - // DB2103 = new DB2103Helper(); - DB2107 = new DB2107Helper(); - - NewThreadDb2107(); - - conCurrentCache.Clear(); - //stopwatch.Stop(); - //var send = stopwatch.ElapsedMilliseconds; - //MesnacServiceManager.Instance.LoggingService.Info("结束"+ send); + var normalStatusWatchDog = DB2107.NormalStatus.WatchDog; + PlcReadTemp.WatchDog_Set = normalStatusWatchDog >= 1 ? true : false; - - conCurrentCache.Clear(); + MCWatchDog.MCValue = normalStatusWatchDog.ToString(); + PlcReadTemp.EMStop_Set = DB2107.NormalStatus.EMStop; + + PlcReadTemp.Vessel_1_HighLevel_Set = DB2107.Weight.Vessel_1.HighLevel; + PlcReadTemp.Vessel_2_HighLevel_Set = DB2107.Weight.Vessel_2.HighLevel; + PlcReadTemp.Vessel_3_HighLevel_Set = DB2107.Weight.Vessel_3.HighLevel; + PlcReadTemp.Vessel_4_HighLevel_Set = DB2107.Weight.Vessel_4.HighLevel; + PlcReadTemp.Vessel_5_HighLevel_Set = DB2107.Weight.Vessel_5.HighLevel; + PlcReadTemp.Vessel_1_LowLevel_Set = DB2107.Weight.Vessel_1.Lowlevel; + PlcReadTemp.Vessel_2_LowLevel_Set = DB2107.Weight.Vessel_2.Lowlevel; + PlcReadTemp.Vessel_3_LowLevel_Set = DB2107.Weight.Vessel_3.Lowlevel; + PlcReadTemp.Vessel_4_LowLevel_Set = DB2107.Weight.Vessel_4.Lowlevel; + PlcReadTemp.Vessel_5_LowLevel_Set = DB2107.Weight.Vessel_5.Lowlevel; + PlcReadTemp.highLevel_D1_Set = DB2107.Level.HighLevel_D1; + PlcReadTemp.highLevel_D2_Set = DB2107.Level.HighLevel_D2; + PlcReadTemp.highLevel_D3_Set = DB2107.Level.HighLevel_D3; + PlcReadTemp.highLevel_D4_Set = DB2107.Level.HighLevel_D4; + PlcReadTemp.highLevel_D5_Set = DB2107.Level.HighLevel_D5; + PlcReadTemp.highLevel_D6_Set = DB2107.Level.HighLevel_D6; + PlcReadTemp.highLevel_D7_Set = DB2107.Level.HighLevel_D7; + PlcReadTemp.highLevel_D8_Set = DB2107.Level.HighLevel_D8; + PlcReadTemp.highLevel_D9_Set = DB2107.Level.HighLevel_D9; + PlcReadTemp.highLevel_D10_Set = DB2107.Level.HighLevel_D10; + PlcReadTemp.highLevel_D11_Set = DB2107.Level.HighLevel_D11; + PlcReadTemp.highLevel_D12_Set = DB2107.Level.HighLevel_D12; + PlcReadTemp.lowLevel_D1_Set = DB2107.Level.LowLevel_D1; + PlcReadTemp.lowLevel_D2_Set = DB2107.Level.LowLevel_D2; + PlcReadTemp.lowLevel_D3_Set = DB2107.Level.LowLevel_D3; + PlcReadTemp.lowLevel_D4_Set = DB2107.Level.LowLevel_D4; + PlcReadTemp.lowLevel_D5_Set = DB2107.Level.LowLevel_D5; + PlcReadTemp.lowLevel_D6_Set = DB2107.Level.LowLevel_D6; + PlcReadTemp.lowLevel_D7_Set = DB2107.Level.LowLevel_D7; + PlcReadTemp.lowLevel_D8_Set = DB2107.Level.LowLevel_D8; + PlcReadTemp.lowLevel_D9_Set = DB2107.Level.LowLevel_D9; + PlcReadTemp.lowLevel_D10_Set = DB2107.Level.LowLevel_D10; + PlcReadTemp.lowLevel_D11_Set = DB2107.Level.LowLevel_D11; + PlcReadTemp.lowLevel_D12_Set = DB2107.Level.LowLevel_D12; + PlcReadTemp.Hopper_1_HighLevel_Set = DB2107.Weight.Hopper_1.HighLevel; + PlcReadTemp.Hopper_2_HighLevel_Set = DB2107.Weight.Hopper_2.HighLevel; + PlcReadTemp.Hopper_3_HighLevel_Set = DB2107.Weight.Hopper_3.HighLevel; + PlcReadTemp.Hopper_4_HighLevel_Set = DB2107.Weight.Hopper_4.HighLevel; + PlcReadTemp.Hopper_1_LowLevel_Set = DB2107.Weight.Hopper_1.Lowlevel; + PlcReadTemp.Hopper_2_LowLevel_Set = DB2107.Weight.Hopper_2.Lowlevel; + PlcReadTemp.Hopper_3_LowLevel_Set = DB2107.Weight.Hopper_3.Lowlevel; + PlcReadTemp.Hopper_4_LowLevel_Set = DB2107.Weight.Hopper_4.Lowlevel; + PlcReadTemp.WScale_1_HighLevel_Set = DB2107.Weight.WScale_1.HighLevel; + PlcReadTemp.WScale_2_HighLevel_Set = DB2107.Weight.WScale_2.HighLevel; + PlcReadTemp.WScale_3_HighLevel_Set = DB2107.Weight.WScale_3.HighLevel; + PlcReadTemp.WScale_4_HighLevel_Set = DB2107.Weight.WScale_4.HighLevel; + PlcReadTemp.WScale_1_LowLevel_Set = DB2107.Weight.WScale_1.Lowlevel; + PlcReadTemp.WScale_2_LowLevel_Set = DB2107.Weight.WScale_2.Lowlevel; + PlcReadTemp.WScale_3_LowLevel_Set = DB2107.Weight.WScale_3.Lowlevel; + PlcReadTemp.WScale_4_LowLevel_Set = DB2107.Weight.WScale_4.Lowlevel; + + PlcReadTemp.topPressure_V1_Set = DB2107.Pressure.TopPressure_V1.ActualValue; + PlcReadTemp.topPressure_V2_Set = DB2107.Pressure.TopPressure_V2.ActualValue; + PlcReadTemp.topPressure_V3_Set = DB2107.Pressure.TopPressure_V3.ActualValue; + PlcReadTemp.topPressure_V4_Set = DB2107.Pressure.TopPressure_V4.ActualValue; + PlcReadTemp.topPressure_V5_Set = DB2107.Pressure.TopPressure_V5.ActualValue; + PlcReadTemp.Vessel_1_ActWeight_Set = DB2107.Weight.Vessel_1.ActWeight; + PlcReadTemp.Vessel_2_ActWeight_Set = DB2107.Weight.Vessel_2.ActWeight; + PlcReadTemp.Vessel_3_ActWeight_Set = DB2107.Weight.Vessel_3.ActWeight; + PlcReadTemp.Vessel_4_ActWeight_Set = DB2107.Weight.Vessel_4.ActWeight; + PlcReadTemp.Vessel_5_ActWeight_Set = DB2107.Weight.Vessel_5.ActWeight; + PlcReadTemp.conveyV1_PV_Set = DB2107.PID.Convey_V1.PV; + PlcReadTemp.conveyV2_PV_Set = DB2107.PID.Convey_V2.PV; + PlcReadTemp.conveyV3_PV_Set = DB2107.PID.Convey_V3.PV; + PlcReadTemp.conveyV5_PV_Set = DB2107.PID.Convey_V5.PV; + PlcReadTemp.mainPress_V1_ActualValue_Set = DB2107.Pressure.MainPress_V1.ActualValue; + PlcReadTemp.mainPress_V2_ActualValue_Set = DB2107.Pressure.MainPress_V2.ActualValue; + PlcReadTemp.mainPress_V3_ActualValue_Set = DB2107.Pressure.MainPress_V3.ActualValue; + PlcReadTemp.mainPress_V5_ActualValue_Set = DB2107.Pressure.MainPress_V5.ActualValue; + PlcReadTemp.purgeV1_PV_Set = DB2107.PID.Purge_V1.PV; + PlcReadTemp.purgeV2_PV_Set = DB2107.PID.Purge_V2.PV; + PlcReadTemp.purgeV3_PV_Set = DB2107.PID.Purge_V3.PV; + PlcReadTemp.purgeV5_PV_Set = DB2107.PID.Purge_V5.PV; + PlcReadTemp.WScale_1_ActWeight_Set = DB2107.Weight.WScale_1.ActWeight; + PlcReadTemp.WScale_2_ActWeight_Set = DB2107.Weight.WScale_2.ActWeight; + PlcReadTemp.WScale_3_ActWeight_Set = DB2107.Weight.WScale_3.ActWeight; + PlcReadTemp.WScale_4_ActWeight_Set = DB2107.Weight.WScale_4.ActWeight; + PlcReadTemp.Hopper_1_ActWeight_Set = DB2107.Weight.Hopper_1.ActWeight; + PlcReadTemp.Hopper_2_ActWeight_Set = DB2107.Weight.Hopper_2.ActWeight; + PlcReadTemp.Hopper_3_ActWeight_Set = DB2107.Weight.Hopper_3.ActWeight; + PlcReadTemp.Hopper_4_ActWeight_Set = DB2107.Weight.Hopper_4.ActWeight; + + + PlcReadTemp.AS1BLT01_Set = DB2107.Valve.AS1BLT01; + PlcReadTemp.AS1BLT02_Set = DB2107.Valve.AS1BLT02; + PlcReadTemp.AS1BLT03_Set = DB2107.Valve.AS1BLT03; + PlcReadTemp.AS1BLT04_Set = DB2107.Valve.AS1BLT04; + PlcReadTemp.AS1BLT05_Set = DB2107.Valve.AS1BLT05; + PlcReadTemp.AS2BLT01_Set = DB2107.Valve.AS2BLT01; + PlcReadTemp.AS2BLT02_Set = DB2107.Valve.AS2BLT02; + PlcReadTemp.AS2BLT03_Set = DB2107.Valve.AS2BLT03; + PlcReadTemp.AS2BLT04_Set = DB2107.Valve.AS2BLT04; + PlcReadTemp.AS2BLT05_Set = DB2107.Valve.AS2BLT05; + PlcReadTemp.AS3BLT01_Set = DB2107.Valve.AS3BLT01; + PlcReadTemp.AS3BLT02_Set = DB2107.Valve.AS3BLT02; + PlcReadTemp.AS3BLT03_Set = DB2107.Valve.AS3BLT03; + PlcReadTemp.AS3BLT04_Set = DB2107.Valve.AS3BLT04; + PlcReadTemp.AS3BLT05_Set = DB2107.Valve.AS3BLT05; + PlcReadTemp.AS4BLT01_Set = DB2107.Valve.AS4BLT01; + PlcReadTemp.AS4BLT03_Set = DB2107.Valve.AS4BLT03; + PlcReadTemp.AS5BLT01_Set = DB2107.Valve.AS5BLT01; + PlcReadTemp.AS5BLT02_Set = DB2107.Valve.AS5BLT02; + PlcReadTemp.AS5BLT03_Set = DB2107.Valve.AS5BLT03; + PlcReadTemp.AS5BLT04_Set = DB2107.Valve.AS5BLT04; + PlcReadTemp.AS5BLT05_Set = DB2107.Valve.AS5BLT05; + PlcReadTemp.AS2PCP01_Set = DB2107.Valve.AS2PCP01; + PlcReadTemp.AS2PCP02_Set = DB2107.Valve.AS2PCP02; + PlcReadTemp.AS2PCP03_Set = DB2107.Valve.AS2PCP03; + PlcReadTemp.AS1OIS01_Set = DB2107.Valve.AS1OIS01; + PlcReadTemp.AS1OIS02_Set = DB2107.Valve.AS1OIS02; + PlcReadTemp.AS1OIS03_Set = DB2107.Valve.AS1OIS03; + PlcReadTemp.AS2OIS01_Set = DB2107.Valve.AS2OIS01; + PlcReadTemp.AS2OIS02_Set = DB2107.Valve.AS2OIS02; + PlcReadTemp.AS2OIS03_Set = DB2107.Valve.AS2OIS03; + PlcReadTemp.AS3OIS01_Set = DB2107.Valve.AS3OIS01; + PlcReadTemp.AS3OIS02_Set = DB2107.Valve.AS3OIS02; + PlcReadTemp.AS3OIS03_Set = DB2107.Valve.AS3OIS03; + PlcReadTemp.AS4OIS01_Set = DB2107.Valve.AS4OIS01; + PlcReadTemp.AS4OIS02_Set = DB2107.Valve.AS4OIS02; + PlcReadTemp.AS4OIS03_Set = DB2107.Valve.AS4OIS03; + PlcReadTemp.AS1GET01_Set = DB2107.Valve.AS1GET01; + PlcReadTemp.AS1GET02_Set = DB2107.Valve.AS1GET02; + PlcReadTemp.AS2GET01_Set = DB2107.Valve.AS2GET01; + PlcReadTemp.AS2GET02_Set = DB2107.Valve.AS2GET02; + PlcReadTemp.AS3GET01_Set = DB2107.Valve.AS3GET01; + PlcReadTemp.AS3GET02_Set = DB2107.Valve.AS3GET02; + PlcReadTemp.AS4GET01_Set = DB2107.Valve.AS4GET01; + PlcReadTemp.AS4GET02_Set = DB2107.Valve.AS4GET02; + PlcReadTemp.AS5GET01_Set = DB2107.Valve.AS5GET01; + PlcReadTemp.AS5GET02_Set = DB2107.Valve.AS5GET02; + PlcReadTemp.AS6GET01_Set = DB2107.Valve.AS6GET01; + PlcReadTemp.AS6GET02_Set = DB2107.Valve.AS6GET02; + PlcReadTemp.AS7GET01_Set = DB2107.Valve.AS7GET01; + PlcReadTemp.AS7GET02_Set = DB2107.Valve.AS7GET02; + PlcReadTemp.AS8GET01_Set = DB2107.Valve.AS8GET01; + PlcReadTemp.AS8GET02_Set = DB2107.Valve.AS8GET02; + + + PlcReadTemp.PM1ADF01_Set = DB2107.Valve.PM1ADF01; + PlcReadTemp.PM1BDF01_Set = DB2107.Valve.PM1BDF01; + PlcReadTemp.PM1CDF01_Set = DB2107.Valve.PM1CDF01; + PlcReadTemp.PM1DDF01_Set = DB2107.Valve.PM1DDF01; + PlcReadTemp.PM1EDF01_Set = DB2107.Valve.PM1EDF01; + PlcReadTemp.PM1FDF01_Set = DB2107.Valve.PM1FDF01; + PlcReadTemp.PM1GDF01_Set = DB2107.Valve.PM1GDF01; + PlcReadTemp.PM1HDF01_Set = DB2107.Valve.PM1HDF01; + PlcReadTemp.PM1IDF01_Set = DB2107.Valve.PM1IDF01; + PlcReadTemp.PM1JDF01_Set = DB2107.Valve.PM1JDF01; + PlcReadTemp.PM1KDF01_Set = DB2107.Valve.PM1KDF01; + PlcReadTemp.PM1LDF01_Set = DB2107.Valve.PM1LDF01; + + + SetStateButton(DeviceDetailReportForm.WatchDog, PlcReadTemp.WatchDog_Set); + SetSystemStateShow(DeviceDetailReportForm.EMStop, PlcReadTemp.EMStop_Set); + + + SetSwitchLight(DeviceDetailReportForm.Vessel_1_HighLevel, PlcReadTemp.Vessel_1_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Vessel_2_HighLevel, PlcReadTemp.Vessel_2_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Vessel_3_HighLevel, PlcReadTemp.Vessel_3_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Vessel_4_HighLevel, PlcReadTemp.Vessel_4_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Vessel_5_HighLevel, PlcReadTemp.Vessel_5_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Vessel_1_LowLevel, PlcReadTemp.Vessel_1_LowLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Vessel_2_LowLevel, PlcReadTemp.Vessel_2_LowLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Vessel_3_LowLevel, PlcReadTemp.Vessel_3_LowLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Vessel_4_LowLevel, PlcReadTemp.Vessel_4_LowLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Vessel_5_LowLevel, PlcReadTemp.Vessel_5_LowLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.highLevel_D1, PlcReadTemp.highLevel_D1_Set, false); + SetSwitchLight(DeviceDetailReportForm.highLevel_D2, PlcReadTemp.highLevel_D2_Set, false); + SetSwitchLight(DeviceDetailReportForm.highLevel_D3, PlcReadTemp.highLevel_D3_Set, false); + SetSwitchLight(DeviceDetailReportForm.highLevel_D4, PlcReadTemp.highLevel_D4_Set, false); + SetSwitchLight(DeviceDetailReportForm.highLevel_D5, PlcReadTemp.highLevel_D5_Set, false); + SetSwitchLight(DeviceDetailReportForm.highLevel_D6, PlcReadTemp.highLevel_D6_Set, false); + SetSwitchLight(DeviceDetailReportForm.highLevel_D7, PlcReadTemp.highLevel_D7_Set, false); + SetSwitchLight(DeviceDetailReportForm.highLevel_D8, PlcReadTemp.highLevel_D8_Set, false); + SetSwitchLight(DeviceDetailReportForm.highLevel_D9, PlcReadTemp.highLevel_D9_Set, false); + SetSwitchLight(DeviceDetailReportForm.highLevel_D10, PlcReadTemp.highLevel_D10_Set, false); + SetSwitchLight(DeviceDetailReportForm.highLevel_D11, PlcReadTemp.highLevel_D11_Set, false); + SetSwitchLight(DeviceDetailReportForm.highLevel_D12, PlcReadTemp.highLevel_D12_Set, false); + SetSwitchLight(DeviceDetailReportForm.lowLevel_D1, PlcReadTemp.lowLevel_D1_Set, false); + SetSwitchLight(DeviceDetailReportForm.lowLevel_D2, PlcReadTemp.lowLevel_D2_Set, false); + SetSwitchLight(DeviceDetailReportForm.lowLevel_D3, PlcReadTemp.lowLevel_D3_Set, false); + SetSwitchLight(DeviceDetailReportForm.lowLevel_D4, PlcReadTemp.lowLevel_D4_Set, false); + SetSwitchLight(DeviceDetailReportForm.lowLevel_D5, PlcReadTemp.lowLevel_D5_Set, false); + SetSwitchLight(DeviceDetailReportForm.lowLevel_D6, PlcReadTemp.lowLevel_D6_Set, false); + SetSwitchLight(DeviceDetailReportForm.lowLevel_D7, PlcReadTemp.lowLevel_D7_Set, false); + SetSwitchLight(DeviceDetailReportForm.lowLevel_D8, PlcReadTemp.lowLevel_D8_Set, false); + SetSwitchLight(DeviceDetailReportForm.lowLevel_D9, PlcReadTemp.lowLevel_D9_Set, false); + SetSwitchLight(DeviceDetailReportForm.lowLevel_D10, PlcReadTemp.lowLevel_D10_Set, false); + SetSwitchLight(DeviceDetailReportForm.lowLevel_D11, PlcReadTemp.lowLevel_D11_Set, false); + SetSwitchLight(DeviceDetailReportForm.lowLevel_D12, PlcReadTemp.lowLevel_D12_Set, false); + SetSwitchLight(DeviceDetailReportForm.Hopper_1_HighLevel, PlcReadTemp.Hopper_1_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Hopper_2_HighLevel, PlcReadTemp.Hopper_2_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Hopper_3_HighLevel, PlcReadTemp.Hopper_3_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Hopper_4_HighLevel, PlcReadTemp.Hopper_4_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Hopper_1_LowLevel, PlcReadTemp.Hopper_1_LowLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Hopper_2_LowLevel, PlcReadTemp.Hopper_2_LowLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Hopper_3_LowLevel, PlcReadTemp.Hopper_3_LowLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.Hopper_4_LowLevel, PlcReadTemp.Hopper_4_LowLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.WScale_1_HighLevel, PlcReadTemp.WScale_1_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.WScale_2_HighLevel, PlcReadTemp.WScale_2_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.WScale_3_HighLevel, PlcReadTemp.WScale_3_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.WScale_4_HighLevel, PlcReadTemp.WScale_4_HighLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.WScale_1_LowLevel, PlcReadTemp.WScale_1_LowLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.WScale_2_LowLevel, PlcReadTemp.WScale_2_LowLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.WScale_3_LowLevel, PlcReadTemp.WScale_3_LowLevel_Set, false); + SetSwitchLight(DeviceDetailReportForm.WScale_4_LowLevel, PlcReadTemp.WScale_4_LowLevel_Set, false); + + + SetMCLabel(DeviceDetailReportForm.topPressure_V1, (float)Math.Round(PlcReadTemp.topPressure_V2_Set, 2)); + SetMCLabel(DeviceDetailReportForm.topPressure_V2, (float)Math.Round(PlcReadTemp.topPressure_V2_Set, 2)); + SetMCLabel(DeviceDetailReportForm.topPressure_V3, (float)Math.Round(PlcReadTemp.topPressure_V3_Set, 2)); + SetMCLabel(DeviceDetailReportForm.topPressure_V4, (float)Math.Round(PlcReadTemp.topPressure_V4_Set, 2)); + SetMCLabel(DeviceDetailReportForm.topPressure_V5, (float)Math.Round(PlcReadTemp.topPressure_V5_Set, 2)); + SetMCLabel(DeviceDetailReportForm.Vessel_1_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_1_ActWeight_Set, 2)); + SetMCLabel(DeviceDetailReportForm.Vessel_2_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_2_ActWeight_Set, 2)); + SetMCLabel(DeviceDetailReportForm.Vessel_3_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_3_ActWeight_Set, 2)); + SetMCLabel(DeviceDetailReportForm.Vessel_4_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_4_ActWeight_Set, 2)); + SetMCLabel(DeviceDetailReportForm.Vessel_5_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_5_ActWeight_Set, 2)); + SetMCLabel(DeviceDetailReportForm.conveyV1_PV, (float)Math.Round(PlcReadTemp.conveyV1_PV_Set, 2)); + SetMCLabel(DeviceDetailReportForm.conveyV2_PV, (float)Math.Round(PlcReadTemp.conveyV2_PV_Set, 2)); + SetMCLabel(DeviceDetailReportForm.conveyV3_PV, (float)Math.Round(PlcReadTemp.conveyV3_PV_Set, 2)); + SetMCLabel(DeviceDetailReportForm.conveyV5_PV, (float)Math.Round(PlcReadTemp.conveyV5_PV_Set, 2)); + SetMCLabel(DeviceDetailReportForm.mainPress_V1_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V1_ActualValue_Set, 2)); + SetMCLabel(DeviceDetailReportForm.mainPress_V2_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V2_ActualValue_Set, 2)); + SetMCLabel(DeviceDetailReportForm.mainPress_V3_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V3_ActualValue_Set, 2)); + SetMCLabel(DeviceDetailReportForm.mainPress_V5_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V5_ActualValue_Set, 2)); + SetMCLabel(DeviceDetailReportForm.purgeV1_PV, (float)Math.Round(PlcReadTemp.purgeV1_PV_Set, 2)); + SetMCLabel(DeviceDetailReportForm.purgeV2_PV, (float)Math.Round(PlcReadTemp.purgeV2_PV_Set, 2)); + SetMCLabel(DeviceDetailReportForm.purgeV3_PV, (float)Math.Round(PlcReadTemp.purgeV3_PV_Set, 2)); + SetMCLabel(DeviceDetailReportForm.purgeV5_PV, (float)Math.Round(PlcReadTemp.purgeV5_PV_Set, 2)); + SetMCLabel(DeviceDetailReportForm.WScale_1_ActWeight, (float)Math.Round(PlcReadTemp.WScale_1_ActWeight_Set, 2)); + SetMCLabel(DeviceDetailReportForm.WScale_2_ActWeight, (float)Math.Round(PlcReadTemp.WScale_2_ActWeight_Set, 2)); + SetMCLabel(DeviceDetailReportForm.WScale_3_ActWeight, (float)Math.Round(PlcReadTemp.WScale_3_ActWeight_Set, 2)); + SetMCLabel(DeviceDetailReportForm.WScale_4_ActWeight, (float)Math.Round(PlcReadTemp.WScale_4_ActWeight_Set, 2)); + SetMCLabel(DeviceDetailReportForm.Hopper_1_ActWeight, (float)Math.Round(PlcReadTemp.Hopper_1_ActWeight_Set, 2)); + SetMCLabel(DeviceDetailReportForm.Hopper_2_ActWeight, (float)Math.Round(PlcReadTemp.Hopper_2_ActWeight_Set, 2)); + SetMCLabel(DeviceDetailReportForm.Hopper_3_ActWeight, (float)Math.Round(PlcReadTemp.Hopper_3_ActWeight_Set, 2)); + SetMCLabel(DeviceDetailReportForm.Hopper_4_ActWeight, (float)Math.Round(PlcReadTemp.Hopper_4_ActWeight_Set, 2)); + + + SetJzf(DeviceDetailReportForm.AS1BLT01, PlcReadTemp.AS1BLT01_Set); + SetJzf(DeviceDetailReportForm.AS1BLT02, PlcReadTemp.AS1BLT02_Set); + SetJzf(DeviceDetailReportForm.AS1BLT03, PlcReadTemp.AS1BLT03_Set); + SetJzf(DeviceDetailReportForm.AS1BLT04, PlcReadTemp.AS1BLT04_Set); + SetJzf(DeviceDetailReportForm.AS1BLT05, PlcReadTemp.AS1BLT05_Set); + SetJzf(DeviceDetailReportForm.AS2BLT01, PlcReadTemp.AS2BLT01_Set); + SetJzf(DeviceDetailReportForm.AS2BLT02, PlcReadTemp.AS2BLT02_Set); + SetJzf(DeviceDetailReportForm.AS2BLT03, PlcReadTemp.AS2BLT03_Set); + SetJzf(DeviceDetailReportForm.AS2BLT04, PlcReadTemp.AS2BLT04_Set); + SetJzf(DeviceDetailReportForm.AS2BLT05, PlcReadTemp.AS2BLT05_Set); + SetJzf(DeviceDetailReportForm.AS3BLT01, PlcReadTemp.AS3BLT01_Set); + SetJzf(DeviceDetailReportForm.AS3BLT02, PlcReadTemp.AS3BLT02_Set); + SetJzf(DeviceDetailReportForm.AS3BLT03, PlcReadTemp.AS3BLT03_Set); + SetJzf(DeviceDetailReportForm.AS3BLT04, PlcReadTemp.AS3BLT04_Set); + SetJzf(DeviceDetailReportForm.AS3BLT05, PlcReadTemp.AS3BLT05_Set); + SetJzf(DeviceDetailReportForm.AS4BLT01, PlcReadTemp.AS4BLT01_Set); + SetJzf(DeviceDetailReportForm.AS4BLT03, PlcReadTemp.AS4BLT03_Set); + SetJzf(DeviceDetailReportForm.AS5BLT01, PlcReadTemp.AS5BLT01_Set); + SetJzf(DeviceDetailReportForm.AS5BLT02, PlcReadTemp.AS5BLT02_Set); + SetJzf(DeviceDetailReportForm.AS5BLT03, PlcReadTemp.AS5BLT03_Set); + SetJzf(DeviceDetailReportForm.AS5BLT04, PlcReadTemp.AS5BLT04_Set); + SetJzf(DeviceDetailReportForm.AS5BLT05, PlcReadTemp.AS5BLT05_Set); + SetJzf(DeviceDetailReportForm.AS2PCP01, PlcReadTemp.AS2PCP01_Set); + SetJzf(DeviceDetailReportForm.AS2PCP02, PlcReadTemp.AS2PCP02_Set); + SetJzf(DeviceDetailReportForm.AS2PCP03, PlcReadTemp.AS2PCP03_Set); + SetJzf(DeviceDetailReportForm.AS1OIS01, PlcReadTemp.AS1OIS01_Set); + SetJzf(DeviceDetailReportForm.AS1OIS02, PlcReadTemp.AS1OIS02_Set); + SetJzf(DeviceDetailReportForm.AS1OIS03, PlcReadTemp.AS1OIS03_Set); + SetJzf(DeviceDetailReportForm.AS2OIS01, PlcReadTemp.AS2OIS01_Set); + SetJzf(DeviceDetailReportForm.AS2OIS02, PlcReadTemp.AS2OIS02_Set); + SetJzf(DeviceDetailReportForm.AS2OIS03, PlcReadTemp.AS2OIS03_Set); + SetJzf(DeviceDetailReportForm.AS3OIS01, PlcReadTemp.AS3OIS01_Set); + SetJzf(DeviceDetailReportForm.AS3OIS02, PlcReadTemp.AS3OIS02_Set); + SetJzf(DeviceDetailReportForm.AS3OIS03, PlcReadTemp.AS3OIS03_Set); + SetJzf(DeviceDetailReportForm.AS4OIS01, PlcReadTemp.AS4OIS01_Set); + SetJzf(DeviceDetailReportForm.AS4OIS02, PlcReadTemp.AS4OIS02_Set); + SetJzf(DeviceDetailReportForm.AS4OIS03, PlcReadTemp.AS4OIS03_Set); + SetJzf(DeviceDetailReportForm.AS1GET01, PlcReadTemp.AS1GET01_Set); + SetJzf(DeviceDetailReportForm.AS1GET02, PlcReadTemp.AS1GET02_Set); + SetJzf(DeviceDetailReportForm.AS2GET01, PlcReadTemp.AS2GET01_Set); + SetJzf(DeviceDetailReportForm.AS2GET02, PlcReadTemp.AS2GET02_Set); + SetJzf(DeviceDetailReportForm.AS3GET01, PlcReadTemp.AS3GET01_Set); + SetJzf(DeviceDetailReportForm.AS3GET02, PlcReadTemp.AS3GET02_Set); + SetJzf(DeviceDetailReportForm.AS4GET01, PlcReadTemp.AS4GET01_Set); + SetJzf(DeviceDetailReportForm.AS4GET02, PlcReadTemp.AS4GET02_Set); + SetJzf(DeviceDetailReportForm.AS5GET01, PlcReadTemp.AS5GET01_Set); + SetJzf(DeviceDetailReportForm.AS5GET02, PlcReadTemp.AS5GET02_Set); + SetJzf(DeviceDetailReportForm.AS6GET01, PlcReadTemp.AS6GET01_Set); + SetJzf(DeviceDetailReportForm.AS6GET02, PlcReadTemp.AS6GET02_Set); + SetJzf(DeviceDetailReportForm.AS7GET01, PlcReadTemp.AS7GET01_Set); + SetJzf(DeviceDetailReportForm.AS7GET02, PlcReadTemp.AS7GET02_Set); + SetJzf(DeviceDetailReportForm.AS8GET01, PlcReadTemp.AS8GET01_Set); + SetJzf(DeviceDetailReportForm.AS8GET02, PlcReadTemp.AS8GET02_Set); + + + SetControlCabinet(DeviceDetailReportForm.PM1ADF01, PlcReadTemp.PM1ADF01_Set); + SetControlCabinet(DeviceDetailReportForm.PM1BDF01, PlcReadTemp.PM1BDF01_Set); + SetControlCabinet(DeviceDetailReportForm.PM1CDF01, PlcReadTemp.PM1CDF01_Set); + SetControlCabinet(DeviceDetailReportForm.PM1DDF01, PlcReadTemp.PM1DDF01_Set); + SetControlCabinet(DeviceDetailReportForm.PM1EDF01, PlcReadTemp.PM1EDF01_Set); + SetControlCabinet(DeviceDetailReportForm.PM1FDF01, PlcReadTemp.PM1FDF01_Set); + SetControlCabinet(DeviceDetailReportForm.PM1GDF01, PlcReadTemp.PM1GDF01_Set); + SetControlCabinet(DeviceDetailReportForm.PM1HDF01, PlcReadTemp.PM1HDF01_Set); + SetControlCabinet(DeviceDetailReportForm.PM1IDF01, PlcReadTemp.PM1IDF01_Set); + SetControlCabinet(DeviceDetailReportForm.PM1JDF01, PlcReadTemp.PM1JDF01_Set); + SetControlCabinet(DeviceDetailReportForm.PM1KDF01, PlcReadTemp.PM1KDF01_Set); + SetControlCabinet(DeviceDetailReportForm.PM1LDF01, PlcReadTemp.PM1LDF01_Set); + + + foreach (DataRow row in ParametersWithPCTable.Rows) + { + string id = row["Id"].ToString(); + System.Drawing.Color modeColor = System.Drawing.Color.White; + string mode; + if ((bool)row["mode"]) + { + mode = "自动"; + modeColor = System.Drawing.Color.Green; } else { - MesnacServiceManager.Instance.LoggingService.Info("设备细节画面读数线程被过滤"); + mode = "手动"; + modeColor = System.Drawing.Color.Yellow; } - } - catch(Exception ex) - { - conCurrentCache.Clear(); - } + string status; + System.Drawing.Color statusColor = System.Drawing.Color.White; + if ((bool)row["status"]) + { + status = "运行"; + statusColor = System.Drawing.Color.Green; + } + else + { + status = "空闲"; + statusColor = System.Drawing.Color.Yellow; + } + int batch = (int)row["batch"]; + int step = (int)row["step"]; + string stepName = Convert.ToString(row["stepName"]); + int totalTime = (int)row["totalTime"]; + int stepTime = (int)row["stepTime"]; + float speed = (float)Math.Round(Convert.ToSingle(row["speed"]), 2); + float current = (float)Math.Round(Convert.ToSingle(row["currnet"]), 2); + float pressure = (float)Math.Round(Convert.ToSingle(row["pressure"]), 2); + switch (id) + { + case "Dryer0": + this.DeviceDetailReportForm.DAMode.MCValue = mode; + this.DeviceDetailReportForm.DAMode.ForeColor = modeColor; + this.DeviceDetailReportForm.DAStatus.MCValue = status; + this.DeviceDetailReportForm.DAStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.DABatch.MCValue = batch; + this.DeviceDetailReportForm.DAStep.MCValue = step; + this.DeviceDetailReportForm.DAStepCode.MCValue = stepName; + this.DeviceDetailReportForm.DATotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.DAStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.DASpeed.MCValue = speed; + break; + case "Dryer1": + this.DeviceDetailReportForm.DBMode.MCValue = mode; + this.DeviceDetailReportForm.DBMode.ForeColor = modeColor; + this.DeviceDetailReportForm.DBStatus.MCValue = status; + this.DeviceDetailReportForm.DBStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.DBBatch.MCValue = batch; + this.DeviceDetailReportForm.DBStep.MCValue = step; + this.DeviceDetailReportForm.DBStepCode.MCValue = stepName; + this.DeviceDetailReportForm.DBTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.DBStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.DBSpeed.MCValue = speed; + break; + case "Dryer2": + this.DeviceDetailReportForm.DCMode.MCValue = mode; + this.DeviceDetailReportForm.DCMode.ForeColor = modeColor; + this.DeviceDetailReportForm.DCStatus.MCValue = status; + this.DeviceDetailReportForm.DCStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.DCBatch.MCValue = batch; + this.DeviceDetailReportForm.DCStep.MCValue = step; + this.DeviceDetailReportForm.DCStepCode.MCValue = stepName; + this.DeviceDetailReportForm.DCTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.DCStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.DCSpeed.MCValue = speed; + break; + case "Dryer3": + this.DeviceDetailReportForm.DDMode.MCValue = mode; + this.DeviceDetailReportForm.DDMode.ForeColor = modeColor; + this.DeviceDetailReportForm.DDStatus.MCValue = status; + this.DeviceDetailReportForm.DDStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.DDBatch.MCValue = batch; + this.DeviceDetailReportForm.DDStep.MCValue = step; + this.DeviceDetailReportForm.DDStepCode.MCValue = stepName; + this.DeviceDetailReportForm.DDTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.DDStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.DDSpeed.MCValue = speed; + break; + case "Weter0": + this.DeviceDetailReportForm.WAMode.MCValue = mode; + this.DeviceDetailReportForm.WAMode.ForeColor = modeColor; + this.DeviceDetailReportForm.WAStatus.MCValue = status; + this.DeviceDetailReportForm.WAStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.WABatch.MCValue = batch; + this.DeviceDetailReportForm.WAStep.MCValue = step; + this.DeviceDetailReportForm.WAStepCode.MCValue = stepName; + this.DeviceDetailReportForm.WATotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.WAStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.WASpeed.MCValue = speed; + this.DeviceDetailReportForm.WACurrent.MCValue = current; + this.DeviceDetailReportForm.WAPressure.MCValue = pressure; + break; + case "Weter1": + this.DeviceDetailReportForm.WBMode.MCValue = mode; + this.DeviceDetailReportForm.WBMode.ForeColor = modeColor; + this.DeviceDetailReportForm.WBStatus.MCValue = status; + this.DeviceDetailReportForm.WBStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.WBBatch.MCValue = batch; + this.DeviceDetailReportForm.WBStep.MCValue = step; + this.DeviceDetailReportForm.WBStepCode.MCValue = stepName; + this.DeviceDetailReportForm.WBTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.WBStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.WBSpeed.MCValue = speed; + this.DeviceDetailReportForm.WBCurrent.MCValue = current; + this.DeviceDetailReportForm.WBPressure.MCValue = pressure; + break; + case "Weter2": + this.DeviceDetailReportForm.WCMode.MCValue = mode; + this.DeviceDetailReportForm.WCMode.ForeColor = modeColor; + this.DeviceDetailReportForm.WCStatus.MCValue = status; + this.DeviceDetailReportForm.WCStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.WCBatch.MCValue = batch; + this.DeviceDetailReportForm.WCStep.MCValue = step; + this.DeviceDetailReportForm.WCStepCode.MCValue = stepName; + this.DeviceDetailReportForm.WCTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.WCStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.WCSpeed.MCValue = speed; + this.DeviceDetailReportForm.WCCurrent.MCValue = current; + this.DeviceDetailReportForm.WCPressure.MCValue = pressure; + break; + case "Weter3": + this.DeviceDetailReportForm.WDMode.MCValue = mode; + this.DeviceDetailReportForm.WDMode.ForeColor = modeColor; + this.DeviceDetailReportForm.WDStatus.MCValue = status; + this.DeviceDetailReportForm.WDStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.WDBatch.MCValue = batch; + this.DeviceDetailReportForm.WDStep.MCValue = step; + this.DeviceDetailReportForm.WDStepCode.MCValue = stepName; + this.DeviceDetailReportForm.WDTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.WDStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.WDSpeed.MCValue = speed; + this.DeviceDetailReportForm.WDCurrent.MCValue = current; + this.DeviceDetailReportForm.WDPressure.MCValue = pressure; + break; + case "Weter4": + this.DeviceDetailReportForm.WEMode.MCValue = mode; + this.DeviceDetailReportForm.WEMode.ForeColor = modeColor; + this.DeviceDetailReportForm.WEStatus.MCValue = status; + this.DeviceDetailReportForm.WEStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.WEBatch.MCValue = batch; + this.DeviceDetailReportForm.WEStep.MCValue = step; + this.DeviceDetailReportForm.WEStepCode.MCValue = stepName; + this.DeviceDetailReportForm.WETotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.WEStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.WESpeed.MCValue = speed; + this.DeviceDetailReportForm.WECurrent.MCValue = current; + this.DeviceDetailReportForm.WEPressure.MCValue = pressure; + break; + case "Weter5": + this.DeviceDetailReportForm.WFMode.MCValue = mode; + this.DeviceDetailReportForm.WFMode.ForeColor = modeColor; + this.DeviceDetailReportForm.WFStatus.MCValue = status; + this.DeviceDetailReportForm.WFStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.WFBatch.MCValue = batch; + this.DeviceDetailReportForm.WFStep.MCValue = step; + this.DeviceDetailReportForm.WFStepCode.MCValue = stepName; + this.DeviceDetailReportForm.WFTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.WFStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.WFSpeed.MCValue = speed; + this.DeviceDetailReportForm.WFCurrent.MCValue = current; + this.DeviceDetailReportForm.WFPressure.MCValue = pressure; + break; + case "Weter6": + this.DeviceDetailReportForm.WGMode.MCValue = mode; + this.DeviceDetailReportForm.WGMode.ForeColor = modeColor; + this.DeviceDetailReportForm.WGStatus.MCValue = status; + this.DeviceDetailReportForm.WGStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.WGBatch.MCValue = batch; + this.DeviceDetailReportForm.WGStep.MCValue = step; + this.DeviceDetailReportForm.WGStepCode.MCValue = stepName; + this.DeviceDetailReportForm.WGTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.WGStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.WGSpeed.MCValue = speed; + this.DeviceDetailReportForm.WGCurrent.MCValue = current; + this.DeviceDetailReportForm.WGPressure.MCValue = pressure; + break; + case "Weter7": + this.DeviceDetailReportForm.WHMode.MCValue = mode; + this.DeviceDetailReportForm.WHMode.ForeColor = modeColor; + this.DeviceDetailReportForm.WHStatus.MCValue = status; + this.DeviceDetailReportForm.WHStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.WHBatch.MCValue = batch; + this.DeviceDetailReportForm.WHStep.MCValue = step; + this.DeviceDetailReportForm.WHStepCode.MCValue = stepName; + this.DeviceDetailReportForm.WHTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.WHStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.WHSpeed.MCValue = speed; + this.DeviceDetailReportForm.WHCurrent.MCValue = current; + this.DeviceDetailReportForm.WHPressure.MCValue = pressure; + break; + case "Gelater0": + this.DeviceDetailReportForm.GAMode.MCValue = mode; + this.DeviceDetailReportForm.GAMode.ForeColor = modeColor; + this.DeviceDetailReportForm.GAStatus.MCValue = status; + this.DeviceDetailReportForm.GAStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.GABatch.MCValue = batch; + this.DeviceDetailReportForm.GAStep.MCValue = step; + this.DeviceDetailReportForm.GAStepCode.MCValue = stepName; + this.DeviceDetailReportForm.GATotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.GAStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.GASpeed.MCValue = speed; + break; + case "Gelater1": + this.DeviceDetailReportForm.GBMode.MCValue = mode; + this.DeviceDetailReportForm.GBMode.ForeColor = modeColor; + this.DeviceDetailReportForm.GBStatus.MCValue = status; + this.DeviceDetailReportForm.GBStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.GBBatch.MCValue = batch; + this.DeviceDetailReportForm.GBStep.MCValue = step; + this.DeviceDetailReportForm.GBStepCode.MCValue = stepName; + this.DeviceDetailReportForm.GBTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.GBStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.GBSpeed.MCValue = speed; + break; + case "Gelater2": + this.DeviceDetailReportForm.GCMode.MCValue = mode; + this.DeviceDetailReportForm.GCMode.ForeColor = modeColor; + this.DeviceDetailReportForm.GCStatus.MCValue = status; + this.DeviceDetailReportForm.GCStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.GCBatch.MCValue = batch; + this.DeviceDetailReportForm.GCStep.MCValue = step; + this.DeviceDetailReportForm.GCStepCode.MCValue = stepName; + this.DeviceDetailReportForm.GCTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.GCStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.GCSpeed.MCValue = speed; + break; + case "Gelater3": + this.DeviceDetailReportForm.GDMode.MCValue = mode; + this.DeviceDetailReportForm.GDMode.ForeColor = modeColor; + this.DeviceDetailReportForm.GDStatus.MCValue = status; + this.DeviceDetailReportForm.GDStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.GDBatch.MCValue = batch; + this.DeviceDetailReportForm.GDStep.MCValue = step; + this.DeviceDetailReportForm.GDStepCode.MCValue = stepName; + this.DeviceDetailReportForm.GDTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.GDStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.GDSpeed.MCValue = speed; + break; + case "Gelater4": + this.DeviceDetailReportForm.GEMode.MCValue = mode; + this.DeviceDetailReportForm.GEMode.ForeColor = modeColor; + this.DeviceDetailReportForm.GEStatus.MCValue = status; + this.DeviceDetailReportForm.GEStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.GEBatch.MCValue = batch; + this.DeviceDetailReportForm.GEStep.MCValue = step; + this.DeviceDetailReportForm.GEStepCode.MCValue = stepName; + this.DeviceDetailReportForm.GETotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.GEStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.GESpeed.MCValue = speed; + break; + case "Gelater5": + this.DeviceDetailReportForm.GFMode.MCValue = mode; + this.DeviceDetailReportForm.GFMode.ForeColor = modeColor; + this.DeviceDetailReportForm.GFStatus.MCValue = status; + this.DeviceDetailReportForm.GFStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.GFBatch.MCValue = batch; + this.DeviceDetailReportForm.GFStep.MCValue = step; + this.DeviceDetailReportForm.GFStepCode.MCValue = stepName; + this.DeviceDetailReportForm.GFTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.GFStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.GFSpeed.MCValue = speed; + break; + case "Gelater6": + this.DeviceDetailReportForm.GGMode.MCValue = mode; + this.DeviceDetailReportForm.GGMode.ForeColor = modeColor; + this.DeviceDetailReportForm.GGStatus.MCValue = status; + this.DeviceDetailReportForm.GGStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.GGBatch.MCValue = batch; + this.DeviceDetailReportForm.GGStep.MCValue = step; + this.DeviceDetailReportForm.GGStepCode.MCValue = stepName; + this.DeviceDetailReportForm.GGTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.GGStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.GGSpeed.MCValue = speed; + break; + case "Gelater7": + this.DeviceDetailReportForm.GHMode.MCValue = mode; + this.DeviceDetailReportForm.GHMode.ForeColor = modeColor; + this.DeviceDetailReportForm.GHStatus.MCValue = status; + this.DeviceDetailReportForm.GHStatus.ForeColor = statusColor; + this.DeviceDetailReportForm.GHBatch.MCValue = batch; + this.DeviceDetailReportForm.GHStep.MCValue = step; + this.DeviceDetailReportForm.GHStepCode.MCValue = stepName; + this.DeviceDetailReportForm.GHTotalTime.MCValue = totalTime; + this.DeviceDetailReportForm.GHStepTime.MCValue = stepTime; + this.DeviceDetailReportForm.GHSpeed.MCValue = speed; + break; + default: break; + } + } + } + #endregion - } + #region 控件获取 /// /// 控件获取 /// private void SetControl() { - WatchDog = GetStateButton("WatchDog"); - EMStop = GetSystemStateShow("EMStop"); - - Vessel_1_HighLevel = GetSwitchLight("Vessel_1_HighLevel"); - Vessel_2_HighLevel = GetSwitchLight("Vessel_2_HighLevel"); - Vessel_3_HighLevel = GetSwitchLight("Vessel_3_HighLevel"); - Vessel_4_HighLevel = GetSwitchLight("Vessel_4_HighLevel"); - Vessel_5_HighLevel = GetSwitchLight("Vessel_5_HighLevel"); - Vessel_1_LowLevel = GetSwitchLight("Vessel_1_LowLevel"); - Vessel_2_LowLevel = GetSwitchLight("Vessel_2_LowLevel"); - Vessel_3_LowLevel = GetSwitchLight("Vessel_3_LowLevel"); - Vessel_4_LowLevel = GetSwitchLight("Vessel_4_LowLevel"); - Vessel_5_LowLevel = GetSwitchLight("Vessel_5_LowLevel"); - highLevel_D1 = GetSwitchLight("highLevel_D1"); - highLevel_D2 = GetSwitchLight("highLevel_D2"); - highLevel_D3 = GetSwitchLight("highLevel_D3"); - highLevel_D4 = GetSwitchLight("highLevel_D4"); - highLevel_D5 = GetSwitchLight("highLevel_D5"); - highLevel_D6 = GetSwitchLight("highLevel_D6"); - highLevel_D7 = GetSwitchLight("highLevel_D7"); - highLevel_D8 = GetSwitchLight("highLevel_D8"); - highLevel_D9 = GetSwitchLight("highLevel_D9"); - highLevel_D10 = GetSwitchLight("highLevel_D10"); - highLevel_D11 = GetSwitchLight("highLevel_D11"); - highLevel_D12 = GetSwitchLight("highLevel_D12"); - lowLevel_D1 = GetSwitchLight("lowLevel_D1"); - lowLevel_D2 = GetSwitchLight("lowLevel_D2"); - lowLevel_D3 = GetSwitchLight("lowLevel_D3"); - lowLevel_D4 = GetSwitchLight("lowLevel_D4"); - lowLevel_D5 = GetSwitchLight("lowLevel_D5"); - lowLevel_D6 = GetSwitchLight("lowLevel_D6"); - lowLevel_D7 = GetSwitchLight("lowLevel_D7"); - lowLevel_D8 = GetSwitchLight("lowLevel_D8"); - lowLevel_D9 = GetSwitchLight("lowLevel_D9"); - lowLevel_D10 = GetSwitchLight("lowLevel_D10"); - lowLevel_D11 = GetSwitchLight("lowLevel_D11"); - lowLevel_D12 = GetSwitchLight("lowLevel_D12"); - Hopper_1_HighLevel = GetSwitchLight("Hopper_1_HighLevel"); - Hopper_2_HighLevel = GetSwitchLight("Hopper_2_HighLevel"); - Hopper_3_HighLevel = GetSwitchLight("Hopper_3_HighLevel"); - Hopper_4_HighLevel = GetSwitchLight("Hopper_4_HighLevel"); - Hopper_1_LowLevel = GetSwitchLight("Hopper_1_LowLevel"); - Hopper_2_LowLevel = GetSwitchLight("Hopper_2_LowLevel"); - Hopper_3_LowLevel = GetSwitchLight("Hopper_3_LowLevel"); - Hopper_4_LowLevel = GetSwitchLight("Hopper_4_LowLevel"); - WScale_1_HighLevel = GetSwitchLight("WScale_1_HighLevel"); - WScale_2_HighLevel = GetSwitchLight("WScale_2_HighLevel"); - WScale_3_HighLevel = GetSwitchLight("WScale_3_HighLevel"); - WScale_4_HighLevel = GetSwitchLight("WScale_4_HighLevel"); - WScale_1_LowLevel = GetSwitchLight("WScale_1_LowLevel"); - WScale_2_LowLevel = GetSwitchLight("WScale_2_LowLevel"); - WScale_3_LowLevel = GetSwitchLight("WScale_3_LowLevel"); - WScale_4_LowLevel = GetSwitchLight("WScale_4_LowLevel"); - DMWETER1 = GetSwitchLight("DMWETER1"); - DMWETER11 = GetSwitchLight("DMWETER11"); - DMWETER2 = GetSwitchLight("DMWETER2"); - DMWETER22 = GetSwitchLight("DMWETER22"); - DMWETER3 = GetSwitchLight("DMWETER3"); - DMWETER33 = GetSwitchLight("DMWETER33"); - DMWETER4 = GetSwitchLight("DMWETER4"); - DMWETER44 = GetSwitchLight("DMWETER44"); - DMWETER5 = GetSwitchLight("DMWETER5"); - DMWETER55 = GetSwitchLight("DMWETER55"); - DMWETER6 = GetSwitchLight("DMWETER6"); - DMWETER66 = GetSwitchLight("DMWETER66"); - DMWETER7 = GetSwitchLight("DMWETER7"); - DMWETER77 = GetSwitchLight("DMWETER77"); - DMWETER8 = GetSwitchLight("DMWETER8"); - DMWETER88 = GetSwitchLight("DMWETER88"); - - topPressure_V1 = GetMCLabel("topPressure_V1"); - topPressure_V2 = GetMCLabel("topPressure_V2"); - topPressure_V3 = GetMCLabel("topPressure_V3"); - topPressure_V4 = GetMCLabel("topPressure_V4"); - topPressure_V5 = GetMCLabel("topPressure_V5"); - Vessel_1_ActWeight = GetMCLabel("Vessel_1_ActWeight"); - Vessel_2_ActWeight = GetMCLabel("Vessel_2_ActWeight"); - Vessel_3_ActWeight = GetMCLabel("Vessel_3_ActWeight"); - Vessel_4_ActWeight = GetMCLabel("Vessel_4_ActWeight"); - Vessel_5_ActWeight = GetMCLabel("Vessel_5_ActWeight"); - conveyV1_PV = GetMCLabel("conveyV1_PV"); - conveyV2_PV = GetMCLabel("conveyV2_PV"); - conveyV3_PV = GetMCLabel("conveyV3_PV"); - conveyV5_PV = GetMCLabel("conveyV5_PV"); - mainPress_V1_ActualValue = GetMCLabel("mainPress_V1_ActualValue"); - mainPress_V2_ActualValue = GetMCLabel("mainPress_V2_ActualValue"); - mainPress_V3_ActualValue = GetMCLabel("mainPress_V3_ActualValue"); - mainPress_V5_ActualValue = GetMCLabel("mainPress_V5_ActualValue"); - purgeV1_PV = GetMCLabel("purgeV1_PV"); - purgeV2_PV = GetMCLabel("purgeV2_PV"); - purgeV3_PV = GetMCLabel("purgeV3_PV"); - purgeV5_PV = GetMCLabel("purgeV5_PV"); - WScale_1_ActWeight = GetMCLabel("WScale_1_ActWeight"); - WScale_2_ActWeight = GetMCLabel("WScale_2_ActWeight"); - WScale_3_ActWeight = GetMCLabel("WScale_3_ActWeight"); - WScale_4_ActWeight = GetMCLabel("WScale_4_ActWeight"); - DM1DRY1_ACT_Speed = GetMCLabel("DM1DRY1_ACT_Speed"); - DM1DRY2_ACT_Speed = GetMCLabel("DM1DRY2_ACT_Speed"); - DM1DRY3_ACT_Speed = GetMCLabel("DM1DRY3_ACT_Speed"); - DM1DRY4_ACT_Speed = GetMCLabel("DM1DRY4_ACT_Speed"); - Hopper_1_ActWeight = GetMCLabel("Hopper_1_ActWeight"); - Hopper_2_ActWeight = GetMCLabel("Hopper_2_ActWeight"); - Hopper_3_ActWeight = GetMCLabel("Hopper_3_ActWeight"); - Hopper_4_ActWeight = GetMCLabel("Hopper_4_ActWeight"); - DM1GEM = GetMCLabel("DM1GEM"); - DM2GEM = GetMCLabel("DM2GEM"); - DM3GEM = GetMCLabel("DM3GEM"); - DM4GEM = GetMCLabel("DM4GEM"); - DM5GEM = GetMCLabel("DM5GEM"); - DM6GEM = GetMCLabel("DM6GEM"); - DM7GEM = GetMCLabel("DM7GEM"); - DM8GEM = GetMCLabel("DM8GEM"); - DM2ASF01 = GetMCLabel("DM2ASF01"); - DM2BSF01 = GetMCLabel("DM2BSF01"); - DM2CSF01 = GetMCLabel("DM2CSF01"); - DM2DSF01 = GetMCLabel("DM2DSF01"); - - DM1ASF01 = GetRSCREWBIG("DM1ASF01"); - DM1BSF01 = GetRSCREWBIG("DM1BSF01"); - DM1CSF01 = GetLSCREWBIG("DM1CSF01"); - DM1DSF01 = GetLSCREWBIG("DM1DSF01"); - DM1ESF01 = GetRSCREWBIG("DM1ESF01"); - DM1FSF01 = GetLSCREWBIG("DM1FSF01"); - DM1GSF01 = GetRSCREWBIG("DM1GSF01"); - DM1HSF01 = GetRSCREWBIG("DM1HSF01"); - DM1ISF01 = GetLSCREWBIG("DM1ISF01"); - DM1JSF01 = GetLSCREWBIG("DM1JSF01"); - DM1KSF01 = GetRSCREWBIG("DM1KSF01"); - DM1LSF01 = GetRSCREWBIG("DM1LSF01"); - DM1MSF01 = GetLSCREWBIG("DM1MSF01"); - DM1NSF01 = GetLSCREWBIG("DM1NSF01"); - DM1OSF01 = GetRSCREWBIG("DM1OSF01"); - DM2ASF01L = GetLSCREWBIG("DM2ASF01L"); - DM2BSF01L = GetLSCREWBIG("DM2BSF01L"); - DM2CSF01L = GetLSCREWBIG("DM2CSF01L"); - DM2DSF01L = GetLSCREWBIG("DM2DSF01L"); - DM2ASF01R = GetRSCREWBIG("DM2ASF01R"); - DM2BSF01R = GetRSCREWBIG("DM2BSF01R"); - DM2CSF01R = GetRSCREWBIG("DM2CSF01R"); - DM2DSF01R = GetRSCREWBIG("DM2DSF01R"); - - AS1BLT01 = GetJzf("AS1BLT01"); - AS1BLT02 = GetJzf("AS1BLT02"); - AS1BLT03 = GetJzf("AS1BLT03"); - AS1BLT04 = GetJzf("AS1BLT04"); - AS1BLT05 = GetJzf("AS1BLT05"); - AS2BLT01 = GetJzf("AS2BLT01"); - AS2BLT02 = GetJzf("AS2BLT02"); - AS2BLT03 = GetJzf("AS2BLT03"); - AS2BLT04 = GetJzf("AS2BLT04"); - AS2BLT05 = GetJzf("AS2BLT05"); - AS3BLT01 = GetJzf("AS3BLT01"); - AS3BLT02 = GetJzf("AS3BLT02"); - AS3BLT03 = GetJzf("AS3BLT03"); - AS3BLT04 = GetJzf("AS3BLT04"); - AS3BLT05 = GetJzf("AS3BLT05"); - AS4BLT01 = GetJzf("AS4BLT01"); - AS4BLT03 = GetJzf("AS4BLT03"); - AS5BLT01 = GetJzf("AS5BLT01"); - AS5BLT02 = GetJzf("AS5BLT02"); - AS5BLT03 = GetJzf("AS5BLT03"); - AS5BLT04 = GetJzf("AS5BLT04"); - AS5BLT05 = GetJzf("AS5BLT05"); - AS2PCP01 = GetJzf("AS2PCP01"); - AS2PCP02 = GetJzf("AS2PCP02"); - AS2PCP03 = GetJzf("AS2PCP03"); - AS1OIS01 = GetJzf("AS1OIS01"); - AS1OIS02 = GetJzf("AS1OIS02"); - AS1OIS03 = GetJzf("AS1OIS03"); - AS2OIS01 = GetJzf("AS2OIS01"); - AS2OIS02 = GetJzf("AS2OIS02"); - AS2OIS03 = GetJzf("AS2OIS03"); - AS3OIS01 = GetJzf("AS3OIS01"); - AS3OIS02 = GetJzf("AS3OIS02"); - AS3OIS03 = GetJzf("AS3OIS03"); - AS4OIS01 = GetJzf("AS4OIS01"); - AS4OIS02 = GetJzf("AS4OIS02"); - AS4OIS03 = GetJzf("AS4OIS03"); - AS1GET01 = GetJzf("AS1GET01"); - AS1GET02 = GetJzf("AS1GET02"); - AS2GET01 = GetJzf("AS2GET01"); - AS2GET02 = GetJzf("AS2GET02"); - AS3GET01 = GetJzf("AS3GET01"); - AS3GET02 = GetJzf("AS3GET02"); - AS4GET01 = GetJzf("AS4GET01"); - AS4GET02 = GetJzf("AS4GET02"); - AS5GET01 = GetJzf("AS5GET01"); - AS5GET02 = GetJzf("AS5GET02"); - AS6GET01 = GetJzf("AS6GET01"); - AS6GET02 = GetJzf("AS6GET02"); - AS7GET01 = GetJzf("AS7GET01"); - AS7GET02 = GetJzf("AS7GET02"); - AS8GET01 = GetJzf("AS8GET01"); - AS8GET02 = GetJzf("AS8GET02"); - - DM1ADF01 = GetFan("DM1ADF01"); - DM1BDF01 = GetFan("DM1BDF01"); - DM1CDF01 = GetFan("DM1CDF01"); - DM1DDF01 = GetFan("DM1DDF01"); - DM1EDF01 = GetFan("DM1EDF01"); - DM1FDF01 = GetFan("DM1FDF01"); - DM1GDF01 = GetFan("DM1GDF01"); - DM1HDF01 = GetFan("DM1HDF01"); - DM1IDF01 = GetFan("DM1IDF01"); - DM1JDF01 = GetFan("DM1JDF01"); - DM1KDF01 = GetFan("DM1KDF01"); - DM1LDF01 = GetFan("DM1LDF01"); - DM1ADB01 = GetFan("DM1ADB01"); - DM1BDB01 = GetFan("DM1BDB01"); - DM1CDB01 = GetFan("DM1CDB01"); - DM1DDB01 = GetFan("DM1DDB01"); - DM1EDB01 = GetFan("DM1EDB01"); - DM1FDB01 = GetFan("DM1FDB01"); - DM1GDB01 = GetFan("DM1GDB01"); - DM1HDB01 = GetFan("DM1HDB01"); - DM1IDB01 = GetFan("DM1IDB01"); - DM1JDB01 = GetFan("DM1JDB01"); - DM1KDB01 = GetFan("DM1KDB01"); - DM1LDB01 = GetFan("DM1LDB01"); - DM1DRY1_Running = GetFan("DM1DRY1_Running"); - DM1DRY2_Running = GetFan("DM1DRY2_Running"); - DM1DRY3_Running = GetFan("DM1DRY3_Running"); - DM1DRY4_Running = GetFan("DM1DRY4_Running"); - PM3ADF01 = GetFan("PM3ADF01"); - - PM1ADF01 = GetControlCabinet("PM1ADF01"); - PM1BDF01 = GetControlCabinet("PM1BDF01"); - PM1CDF01 = GetControlCabinet("PM1CDF01"); - PM1DDF01 = GetControlCabinet("PM1DDF01"); - PM1EDF01 = GetControlCabinet("PM1EDF01"); - PM1FDF01 = GetControlCabinet("PM1FDF01"); - PM1GDF01 = GetControlCabinet("PM1GDF01"); - PM1HDF01 = GetControlCabinet("PM1HDF01"); - PM1IDF01 = GetControlCabinet("PM1IDF01"); - PM1JDF01 = GetControlCabinet("PM1JDF01"); - PM1KDF01 = GetControlCabinet("PM1KDF01"); - PM1LDF01 = GetControlCabinet("PM1LDF01"); - - BU1ASF01 = GetLjSwith("BU1ASF01"); - BU1BSF01 = GetLjSwith("BU1BSF01"); - BU1CSF01 = GetLjSwith("BU1CSF01"); - BU1DSF01 = GetLjSwith("BU1DSF01"); - BU1ESF01 = GetLjSwith("BU1ESF01"); - BU1FSF01 = GetLjSwith("BU1FSF01"); - BU1GSF01 = GetLjSwith("BU1GSF01"); - BU1HSF01 = GetLjSwith("BU1HSF01"); - BU1ISF01 = GetLjSwith("BU1ISF01"); - BU1JSF01 = GetLjSwith("BU1JSF01"); - BU1KSF01 = GetLjSwith("BU1KSF01"); - BU1LSF01 = GetLjSwith("BU1LSF01"); - BU1MSF01 = GetLjSwith("BU1MSF01"); - BU1NSF01 = GetLjSwith("BU1NSF01"); - BU1OSF01 = GetLjSwith("BU1OSF01"); - BU1BLT01 = GetLjSwith("BU1BLT01"); - BU1BLT02 = GetLjSwith("BU1BLT02"); - BU1BLT03 = GetLjSwith("BU1BLT03"); - BU1BLT04 = GetLjSwith("BU1BLT04"); - BU1BLT05 = GetLjSwith("BU1BLT05"); - BU1BLT06 = GetLjSwith("BU1BLT06"); - BU1BLT07 = GetLjSwith("BU1BLT07"); - BU2BLT01 = GetLjSwith("BU2BLT01"); - BU2BLT02 = GetLjSwith("BU2BLT02"); - BU2BLT03 = GetLjSwith("BU2BLT03"); - BU2BLT04 = GetLjSwith("BU2BLT04"); - BU2BLT05 = GetLjSwith("BU2BLT05"); - BU3BLT01 = GetLjSwith("BU3BLT01"); - BU3BLT02 = GetLjSwith("BU3BLT02"); - BU3BLT03 = GetLjSwith("BU3BLT03"); - BU3BLT04 = GetLjSwith("BU3BLT04"); - BU3BLT05 = GetLjSwith("BU3BLT05"); - BU3BLT06 = GetLjSwith("BU3BLT06"); - BU3BLT07 = GetLjSwith("BU3BLT07"); - BU4BLT01 = GetLjSwith("BU4BLT01"); - BU4BLT02 = GetLjSwith("BU4BLT02"); - BU4BLT03 = GetLjSwith("BU4BLT03"); - BU4BLT04 = GetLjSwith("BU4BLT04"); - BU4BLT05 = GetLjSwith("BU4BLT05"); - BU4BLT06 = GetLjSwith("BU4BLT06"); - BU4BLT07 = GetLjSwith("BU4BLT07"); - BU5BLT01 = GetLjSwith("BU5BLT01"); - BU5BLT02 = GetLjSwith("BU5BLT02"); - BU5BLT03 = GetLjSwith("BU5BLT03"); - BU5BLT04 = GetLjSwith("BU5BLT04"); - BU1ADB01 = GetLjSwith("BU1ADB01"); - BU1BDB01 = GetLjSwith("BU1BDB01"); - BU1CDB01 = GetLjSwith("BU1CDB01"); - BU1DDB01 = GetLjSwith("BU1DDB01"); - BU1EDB01 = GetLjSwith("BU1EDB01"); - BU1FDB01 = GetLjSwith("BU1FDB01"); - BU1GDB01 = GetLjSwith("BU1GDB01"); - BU1HDB01 = GetLjSwith("BU1HDB01"); - BU1IDB01 = GetLjSwith("BU1IDB01"); - BU1JDB01 = GetLjSwith("BU1JDB01"); - BU1KDB01 = GetLjSwith("BU1KDB01"); - BU1LDB01 = GetLjSwith("BU1LDB01"); - BU1GEB02 = GetLjSwith("BU1GEB02"); - BU2GEB02 = GetLjSwith("BU2GEB02"); - BU3GEB02 = GetLjSwith("BU3GEB02"); - BU4GEB02 = GetLjSwith("BU4GEB02"); - BU5GEB02 = GetLjSwith("BU5GEB02"); - BU6GEB02 = GetLjSwith("BU6GEB02"); - BU7GEB02 = GetLjSwith("BU7GEB02"); - BU8GEB02 = GetLjSwith("BU8GEB02"); - BU1DRB01 = GetLjSwith("BU1DRB01"); - BU2DRB01 = GetLjSwith("BU2DRB01"); - BU3DRB01 = GetLjSwith("BU3DRB01"); - BU4DRB01 = GetLjSwith("BU4DRB01"); - BU1GEB01 = GetLjSwith("BU1GEB01"); - BU2GEB01 = GetLjSwith("BU2GEB01"); - BU3GEB01 = GetLjSwith("BU3GEB01"); - BU4GEB01 = GetLjSwith("BU4GEB01"); - BU5GEB01 = GetLjSwith("BU5GEB01"); - BU6GEB01 = GetLjSwith("BU6GEB01"); - BU7GEB01 = GetLjSwith("BU7GEB01"); - BU8GEB01 = GetLjSwith("BU8GEB01"); - BU2ASF01 = GetLjSwith("BU2ASF01"); - BU2ASF02 = GetLjSwith("BU2ASF02"); - BU2BSF01 = GetLjSwith("BU2BSF01"); - BU2BSF02 = GetLjSwith("BU2BSF02"); - BU2CSF01 = GetLjSwith("BU2CSF01"); - BU2CSF02 = GetLjSwith("BU2CSF02"); - BU2DSF01 = GetLjSwith("BU2DSF01"); - BU2DSF02 = GetLjSwith("BU2DSF02"); - BUWeter1 = GetLjSwith("BUWeter1"); - BUWeter2 = GetLjSwith("BUWeter2"); - BUWeter3 = GetLjSwith("BUWeter3"); - BUWeter4 = GetLjSwith("BUWeter4"); - BUWeter5 = GetLjSwith("BUWeter5"); - BUWeter6 = GetLjSwith("BUWeter6"); - BUWeter7 = GetLjSwith("BUWeter7"); - BUWeter8 = GetLjSwith("BUWeter8"); - - DV2PCP01 = GetThreeWayValve("DV2PCP01"); - DV2PCP02 = GetThreeWayValve("DV2PCP02"); - DV2PCP03 = GetThreeWayValve("DV2PCP03"); - DV2PCP04 = GetThreeWayValve("DV2PCP04"); - DV2PCP05 = GetThreeWayValve("DV2PCP05"); - DV2PCP06 = GetThreeWayValve("DV2PCP06"); - DV2PCP07 = GetThreeWayValve("DV2PCP07"); - DV2PCP08 = GetThreeWayValve("DV2PCP08"); - DV2PCP09 = GetThreeWayValve("DV2PCP09"); - DV2PCP10 = GetThreeWayValve("DV2PCP10"); - DV2PCP11 = GetThreeWayValve("DV2PCP11"); - DV2PCP12 = GetThreeWayValve("DV2PCP12"); - DV2PCP13 = GetThreeWayValve("DV2PCP13"); - } + #region 报表实体类对应前端控件 - /// - /// Plc读数线程池,定时器退出删除 - /// - private void GetPlcValue(object sender, EventArgs e) - { - int x = GetAllDbMCControlsByOption(DbOptionTypes.QueryAndModify).Count; - if (GetAllDbMCControlsByOption(DbOptionTypes.QueryAndModify).Count == 0) - { - timer.Stop(); - timer.Dispose(); - } + DeviceDetailReportForm.DAMode = StringToLable("DAMode"); + DeviceDetailReportForm.DAStatus = StringToLable("DAStatus"); + DeviceDetailReportForm.DABatch = StringToLable("DABatch"); + DeviceDetailReportForm.DAStep = StringToLable("DAStep"); + DeviceDetailReportForm.DAStepCode = StringToLable("DAStepCode"); + DeviceDetailReportForm.DATotalTime = StringToLable("DATotalTime"); + DeviceDetailReportForm.DAStepTime = StringToLable("DAStepTime"); + DeviceDetailReportForm.DASpeed = StringToLable("DASpeed"); + + DeviceDetailReportForm.DBMode = StringToLable("DBMode"); + DeviceDetailReportForm.DBStatus = StringToLable("DBStatus"); + DeviceDetailReportForm.DBBatch = StringToLable("DBBatch"); + DeviceDetailReportForm.DBStep = StringToLable("DBStep"); + DeviceDetailReportForm.DBStepCode = StringToLable("DBStepCode"); + DeviceDetailReportForm.DBTotalTime = StringToLable("DBTotalTime"); + DeviceDetailReportForm.DBStepTime = StringToLable("DBStepTime"); + DeviceDetailReportForm.DBSpeed = StringToLable("DBSpeed"); + + DeviceDetailReportForm.DCMode = StringToLable("DCMode"); + DeviceDetailReportForm.DCStatus = StringToLable("DCStatus"); + DeviceDetailReportForm.DCBatch = StringToLable("DCBatch"); + DeviceDetailReportForm.DCStep = StringToLable("DCStep"); + DeviceDetailReportForm.DCStepCode = StringToLable("DCStepCode"); + DeviceDetailReportForm.DCTotalTime = StringToLable("DCTotalTime"); + DeviceDetailReportForm.DCStepTime = StringToLable("DCStepTime"); + DeviceDetailReportForm.DCSpeed = StringToLable("DCSpeed"); + + DeviceDetailReportForm.DDMode = StringToLable("DDMode"); + DeviceDetailReportForm.DDStatus = StringToLable("DDStatus"); + DeviceDetailReportForm.DDBatch = StringToLable("DDBatch"); + DeviceDetailReportForm.DDStep = StringToLable("DDStep"); + DeviceDetailReportForm.DDStepCode = StringToLable("DDStepCode"); + DeviceDetailReportForm.DDTotalTime = StringToLable("DDTotalTime"); + DeviceDetailReportForm.DDStepTime = StringToLable("DDStepTime"); + DeviceDetailReportForm.DDSpeed = StringToLable("DDSpeed"); + + + + DeviceDetailReportForm.WAMode = StringToLable("WAMode"); + DeviceDetailReportForm.WAStatus = StringToLable("WAStatus"); + DeviceDetailReportForm.WABatch = StringToLable("WABatch"); + DeviceDetailReportForm.WAStep = StringToLable("WAStep"); + DeviceDetailReportForm.WAStepCode = StringToLable("WAStepCode"); + DeviceDetailReportForm.WATotalTime = StringToLable("WATotalTime"); + DeviceDetailReportForm.WAStepTime = StringToLable("WAStepTime"); + DeviceDetailReportForm.WASpeed = StringToLable("WASpeed"); + DeviceDetailReportForm.WACurrent = StringToLable("WACurrent"); + DeviceDetailReportForm.WAPressure = StringToLable("WAPressure"); + + DeviceDetailReportForm.WBMode = StringToLable("WBMode"); + DeviceDetailReportForm.WBStatus = StringToLable("WBStatus"); + DeviceDetailReportForm.WBBatch = StringToLable("WBBatch"); + DeviceDetailReportForm.WBStep = StringToLable("WBStep"); + DeviceDetailReportForm.WBStepCode = StringToLable("WBStepCode"); + DeviceDetailReportForm.WBTotalTime = StringToLable("WBTotalTime"); + DeviceDetailReportForm.WBStepTime = StringToLable("WBStepTime"); + DeviceDetailReportForm.WBSpeed = StringToLable("WBSpeed"); + DeviceDetailReportForm.WBCurrent = StringToLable("WBCurrent"); + DeviceDetailReportForm.WBPressure = StringToLable("WBPressure"); + + DeviceDetailReportForm.WCMode = StringToLable("WCMode"); + DeviceDetailReportForm.WCStatus = StringToLable("WCStatus"); + DeviceDetailReportForm.WCBatch = StringToLable("WCBatch"); + DeviceDetailReportForm.WCStep = StringToLable("WCStep"); + DeviceDetailReportForm.WCStepCode = StringToLable("WCStepCode"); + DeviceDetailReportForm.WCTotalTime = StringToLable("WCTotalTime"); + DeviceDetailReportForm.WCStepTime = StringToLable("WCStepTime"); + DeviceDetailReportForm.WCSpeed = StringToLable("WCSpeed"); + DeviceDetailReportForm.WCCurrent = StringToLable("WCCurrent"); + DeviceDetailReportForm.WCPressure = StringToLable("WCPressure"); + + DeviceDetailReportForm.WDMode = StringToLable("WDMode"); + DeviceDetailReportForm.WDStatus = StringToLable("WDStatus"); + DeviceDetailReportForm.WDBatch = StringToLable("WDBatch"); + DeviceDetailReportForm.WDStep = StringToLable("WDStep"); + DeviceDetailReportForm.WDStepCode = StringToLable("WDStepCode"); + DeviceDetailReportForm.WDTotalTime = StringToLable("WDTotalTime"); + DeviceDetailReportForm.WDStepTime = StringToLable("WDStepTime"); + DeviceDetailReportForm.WDSpeed = StringToLable("WDSpeed"); + DeviceDetailReportForm.WDCurrent = StringToLable("WDCurrent"); + DeviceDetailReportForm.WDPressure = StringToLable("WDPressure"); + + DeviceDetailReportForm.WEMode = StringToLable("WEMode"); + DeviceDetailReportForm.WEStatus = StringToLable("WEStatus"); + DeviceDetailReportForm.WEBatch = StringToLable("WEBatch"); + DeviceDetailReportForm.WEStep = StringToLable("WEStep"); + DeviceDetailReportForm.WEStepCode = StringToLable("WEStepCode"); + DeviceDetailReportForm.WETotalTime = StringToLable("WETotalTime"); + DeviceDetailReportForm.WEStepTime = StringToLable("WEStepTime"); + DeviceDetailReportForm.WESpeed = StringToLable("WESpeed"); + DeviceDetailReportForm.WECurrent = StringToLable("WECurrent"); + DeviceDetailReportForm.WEPressure = StringToLable("WEPressure"); + + DeviceDetailReportForm.WFMode = StringToLable("WFMode"); + DeviceDetailReportForm.WFStatus = StringToLable("WFStatus"); + DeviceDetailReportForm.WFBatch = StringToLable("WFBatch"); + DeviceDetailReportForm.WFStep = StringToLable("WFStep"); + DeviceDetailReportForm.WFStepCode = StringToLable("WFStepCode"); + DeviceDetailReportForm.WFTotalTime = StringToLable("WFTotalTime"); + DeviceDetailReportForm.WFStepTime = StringToLable("WFStepTime"); + DeviceDetailReportForm.WFSpeed = StringToLable("WFSpeed"); + DeviceDetailReportForm.WFCurrent = StringToLable("WFCurrent"); + DeviceDetailReportForm.WFPressure = StringToLable("WFPressure"); + + DeviceDetailReportForm.WGMode = StringToLable("WGMode"); + DeviceDetailReportForm.WGStatus = StringToLable("WGStatus"); + DeviceDetailReportForm.WGBatch = StringToLable("WGBatch"); + DeviceDetailReportForm.WGStep = StringToLable("WGStep"); + DeviceDetailReportForm.WGStepCode = StringToLable("WGStepCode"); + DeviceDetailReportForm.WGTotalTime = StringToLable("WGTotalTime"); + DeviceDetailReportForm.WGStepTime = StringToLable("WGStepTime"); + DeviceDetailReportForm.WGSpeed = StringToLable("WGSpeed"); + DeviceDetailReportForm.WGCurrent = StringToLable("WGCurrent"); + DeviceDetailReportForm.WGPressure = StringToLable("WGPressure"); + + DeviceDetailReportForm.WHMode = StringToLable("WHMode"); + DeviceDetailReportForm.WHStatus = StringToLable("WHStatus"); + DeviceDetailReportForm.WHBatch = StringToLable("WHBatch"); + DeviceDetailReportForm.WHStep = StringToLable("WHStep"); + DeviceDetailReportForm.WHStepCode = StringToLable("WHStepCode"); + DeviceDetailReportForm.WHTotalTime = StringToLable("WHTotalTime"); + DeviceDetailReportForm.WHStepTime = StringToLable("WHStepTime"); + DeviceDetailReportForm.WHSpeed = StringToLable("WHSpeed"); + DeviceDetailReportForm.WHCurrent = StringToLable("WHCurrent"); + DeviceDetailReportForm.WHPressure = StringToLable("WHPressure"); + + + + DeviceDetailReportForm.GAMode = StringToLable("GAMode"); + DeviceDetailReportForm.GAStatus = StringToLable("GAStatus"); + DeviceDetailReportForm.GABatch = StringToLable("GABatch"); + DeviceDetailReportForm.GAStep = StringToLable("GAStep"); + DeviceDetailReportForm.GAStepCode = StringToLable("GAStepCode"); + DeviceDetailReportForm.GATotalTime = StringToLable("GATotalTime"); + DeviceDetailReportForm.GAStepTime = StringToLable("GAStepTime"); + DeviceDetailReportForm.GASpeed = StringToLable("GASpeed"); + + DeviceDetailReportForm.GBMode = StringToLable("GBMode"); + DeviceDetailReportForm.GBStatus = StringToLable("GBStatus"); + DeviceDetailReportForm.GBBatch = StringToLable("GBBatch"); + DeviceDetailReportForm.GBStep = StringToLable("GBStep"); + DeviceDetailReportForm.GBStepCode = StringToLable("GBStepCode"); + DeviceDetailReportForm.GBTotalTime = StringToLable("GBTotalTime"); + DeviceDetailReportForm.GBStepTime = StringToLable("GBStepTime"); + DeviceDetailReportForm.GBSpeed = StringToLable("GBSpeed"); + + DeviceDetailReportForm.GCMode = StringToLable("GCMode"); + DeviceDetailReportForm.GCStatus = StringToLable("GCStatus"); + DeviceDetailReportForm.GCBatch = StringToLable("GCBatch"); + DeviceDetailReportForm.GCStep = StringToLable("GCStep"); + DeviceDetailReportForm.GCStepCode = StringToLable("GCStepCode"); + DeviceDetailReportForm.GCTotalTime = StringToLable("GCTotalTime"); + DeviceDetailReportForm.GCStepTime = StringToLable("GCStepTime"); + DeviceDetailReportForm.GCSpeed = StringToLable("GCSpeed"); + + DeviceDetailReportForm.GDMode = StringToLable("GDMode"); + DeviceDetailReportForm.GDStatus = StringToLable("GDStatus"); + DeviceDetailReportForm.GDBatch = StringToLable("GDBatch"); + DeviceDetailReportForm.GDStep = StringToLable("GDStep"); + DeviceDetailReportForm.GDStepCode = StringToLable("GDStepCode"); + DeviceDetailReportForm.GDTotalTime = StringToLable("GDTotalTime"); + DeviceDetailReportForm.GDStepTime = StringToLable("GDStepTime"); + DeviceDetailReportForm.GDSpeed = StringToLable("GDSpeed"); + + DeviceDetailReportForm.GEMode = StringToLable("GEMode"); + DeviceDetailReportForm.GEStatus = StringToLable("GEStatus"); + DeviceDetailReportForm.GEBatch = StringToLable("GEBatch"); + DeviceDetailReportForm.GEStep = StringToLable("GEStep"); + DeviceDetailReportForm.GEStepCode = StringToLable("GEStepCode"); + DeviceDetailReportForm.GETotalTime = StringToLable("GETotalTime"); + DeviceDetailReportForm.GEStepTime = StringToLable("GEStepTime"); + DeviceDetailReportForm.GESpeed = StringToLable("GESpeed"); + + DeviceDetailReportForm.GFMode = StringToLable("GFMode"); + DeviceDetailReportForm.GFStatus = StringToLable("GFStatus"); + DeviceDetailReportForm.GFBatch = StringToLable("GFBatch"); + DeviceDetailReportForm.GFStep = StringToLable("GFStep"); + DeviceDetailReportForm.GFStepCode = StringToLable("GFStepCode"); + DeviceDetailReportForm.GFTotalTime = StringToLable("GFTotalTime"); + DeviceDetailReportForm.GFStepTime = StringToLable("GFStepTime"); + DeviceDetailReportForm.GFSpeed = StringToLable("GFSpeed"); + + DeviceDetailReportForm.GGMode = StringToLable("GGMode"); + DeviceDetailReportForm.GGStatus = StringToLable("GGStatus"); + DeviceDetailReportForm.GGBatch = StringToLable("GGBatch"); + DeviceDetailReportForm.GGStep = StringToLable("GGStep"); + DeviceDetailReportForm.GGStepCode = StringToLable("GGStepCode"); + DeviceDetailReportForm.GGTotalTime = StringToLable("GGTotalTime"); + DeviceDetailReportForm.GGStepTime = StringToLable("GGStepTime"); + DeviceDetailReportForm.GGSpeed = StringToLable("GGSpeed"); + + DeviceDetailReportForm.GHMode = StringToLable("GHMode"); + DeviceDetailReportForm.GHStatus = StringToLable("GHStatus"); + DeviceDetailReportForm.GHBatch = StringToLable("GHBatch"); + DeviceDetailReportForm.GHStep = StringToLable("GHStep"); + DeviceDetailReportForm.GHStepCode = StringToLable("GHStepCode"); + DeviceDetailReportForm.GHTotalTime = StringToLable("GHTotalTime"); + DeviceDetailReportForm.GHStepTime = StringToLable("GHStepTime"); + DeviceDetailReportForm.GHSpeed = StringToLable("GHSpeed"); + #endregion - - ThreadPool.QueueUserWorkItem(new WaitCallback(NewThread)); + #region 图像变量对应前端控件 + + DeviceDetailReportForm.WatchDog = GetStateButton("WatchDog"); + DeviceDetailReportForm.EMStop = GetSystemStateShow("EMStop"); + + DeviceDetailReportForm.Vessel_1_HighLevel = GetSwitchLight("Vessel_1_HighLevel"); + DeviceDetailReportForm.Vessel_2_HighLevel = GetSwitchLight("Vessel_2_HighLevel"); + DeviceDetailReportForm.Vessel_3_HighLevel = GetSwitchLight("Vessel_3_HighLevel"); + DeviceDetailReportForm.Vessel_4_HighLevel = GetSwitchLight("Vessel_4_HighLevel"); + DeviceDetailReportForm.Vessel_5_HighLevel = GetSwitchLight("Vessel_5_HighLevel"); + DeviceDetailReportForm.Vessel_1_LowLevel = GetSwitchLight("Vessel_1_LowLevel"); + DeviceDetailReportForm.Vessel_2_LowLevel = GetSwitchLight("Vessel_2_LowLevel"); + DeviceDetailReportForm.Vessel_3_LowLevel = GetSwitchLight("Vessel_3_LowLevel"); + DeviceDetailReportForm.Vessel_4_LowLevel = GetSwitchLight("Vessel_4_LowLevel"); + DeviceDetailReportForm.Vessel_5_LowLevel = GetSwitchLight("Vessel_5_LowLevel"); + DeviceDetailReportForm.highLevel_D1 = GetSwitchLight("highLevel_D1"); + DeviceDetailReportForm.highLevel_D2 = GetSwitchLight("highLevel_D2"); + DeviceDetailReportForm.highLevel_D3 = GetSwitchLight("highLevel_D3"); + DeviceDetailReportForm.highLevel_D4 = GetSwitchLight("highLevel_D4"); + DeviceDetailReportForm.highLevel_D5 = GetSwitchLight("highLevel_D5"); + DeviceDetailReportForm.highLevel_D6 = GetSwitchLight("highLevel_D6"); + DeviceDetailReportForm.highLevel_D7 = GetSwitchLight("highLevel_D7"); + DeviceDetailReportForm.highLevel_D8 = GetSwitchLight("highLevel_D8"); + DeviceDetailReportForm.highLevel_D9 = GetSwitchLight("highLevel_D9"); + DeviceDetailReportForm.highLevel_D10 = GetSwitchLight("highLevel_D10"); + DeviceDetailReportForm.highLevel_D11 = GetSwitchLight("highLevel_D11"); + DeviceDetailReportForm.highLevel_D12 = GetSwitchLight("highLevel_D12"); + DeviceDetailReportForm.lowLevel_D1 = GetSwitchLight("lowLevel_D1"); + DeviceDetailReportForm.lowLevel_D2 = GetSwitchLight("lowLevel_D2"); + DeviceDetailReportForm.lowLevel_D3 = GetSwitchLight("lowLevel_D3"); + DeviceDetailReportForm.lowLevel_D4 = GetSwitchLight("lowLevel_D4"); + DeviceDetailReportForm.lowLevel_D5 = GetSwitchLight("lowLevel_D5"); + DeviceDetailReportForm.lowLevel_D6 = GetSwitchLight("lowLevel_D6"); + DeviceDetailReportForm.lowLevel_D7 = GetSwitchLight("lowLevel_D7"); + DeviceDetailReportForm.lowLevel_D8 = GetSwitchLight("lowLevel_D8"); + DeviceDetailReportForm.lowLevel_D9 = GetSwitchLight("lowLevel_D9"); + DeviceDetailReportForm.lowLevel_D10 = GetSwitchLight("lowLevel_D10"); + DeviceDetailReportForm.lowLevel_D11 = GetSwitchLight("lowLevel_D11"); + DeviceDetailReportForm.lowLevel_D12 = GetSwitchLight("lowLevel_D12"); + DeviceDetailReportForm.Hopper_1_HighLevel = GetSwitchLight("Hopper_1_HighLevel"); + DeviceDetailReportForm.Hopper_2_HighLevel = GetSwitchLight("Hopper_2_HighLevel"); + DeviceDetailReportForm.Hopper_3_HighLevel = GetSwitchLight("Hopper_3_HighLevel"); + DeviceDetailReportForm.Hopper_4_HighLevel = GetSwitchLight("Hopper_4_HighLevel"); + DeviceDetailReportForm.Hopper_1_LowLevel = GetSwitchLight("Hopper_1_LowLevel"); + DeviceDetailReportForm.Hopper_2_LowLevel = GetSwitchLight("Hopper_2_LowLevel"); + DeviceDetailReportForm.Hopper_3_LowLevel = GetSwitchLight("Hopper_3_LowLevel"); + DeviceDetailReportForm.Hopper_4_LowLevel = GetSwitchLight("Hopper_4_LowLevel"); + DeviceDetailReportForm.WScale_1_HighLevel = GetSwitchLight("WScale_1_HighLevel"); + DeviceDetailReportForm.WScale_2_HighLevel = GetSwitchLight("WScale_2_HighLevel"); + DeviceDetailReportForm.WScale_3_HighLevel = GetSwitchLight("WScale_3_HighLevel"); + DeviceDetailReportForm.WScale_4_HighLevel = GetSwitchLight("WScale_4_HighLevel"); + DeviceDetailReportForm.WScale_1_LowLevel = GetSwitchLight("WScale_1_LowLevel"); + DeviceDetailReportForm.WScale_2_LowLevel = GetSwitchLight("WScale_2_LowLevel"); + DeviceDetailReportForm.WScale_3_LowLevel = GetSwitchLight("WScale_3_LowLevel"); + DeviceDetailReportForm.WScale_4_LowLevel = GetSwitchLight("WScale_4_LowLevel"); + DeviceDetailReportForm.DMWETER1 = GetSwitchLight("DMWETER1"); + DeviceDetailReportForm.DMWETER11 = GetSwitchLight("DMWETER11"); + DeviceDetailReportForm.DMWETER2 = GetSwitchLight("DMWETER2"); + DeviceDetailReportForm.DMWETER22 = GetSwitchLight("DMWETER22"); + DeviceDetailReportForm.DMWETER3 = GetSwitchLight("DMWETER3"); + DeviceDetailReportForm.DMWETER33 = GetSwitchLight("DMWETER33"); + DeviceDetailReportForm.DMWETER4 = GetSwitchLight("DMWETER4"); + DeviceDetailReportForm.DMWETER44 = GetSwitchLight("DMWETER44"); + DeviceDetailReportForm.DMWETER5 = GetSwitchLight("DMWETER5"); + DeviceDetailReportForm.DMWETER55 = GetSwitchLight("DMWETER55"); + DeviceDetailReportForm.DMWETER6 = GetSwitchLight("DMWETER6"); + DeviceDetailReportForm.DMWETER66 = GetSwitchLight("DMWETER66"); + DeviceDetailReportForm.DMWETER7 = GetSwitchLight("DMWETER7"); + DeviceDetailReportForm.DMWETER77 = GetSwitchLight("DMWETER77"); + DeviceDetailReportForm.DMWETER8 = GetSwitchLight("DMWETER8"); + DeviceDetailReportForm.DMWETER88 = GetSwitchLight("DMWETER88"); + + DeviceDetailReportForm.topPressure_V1 = GetMCLabel("topPressure_V1"); + DeviceDetailReportForm.topPressure_V2 = GetMCLabel("topPressure_V2"); + DeviceDetailReportForm.topPressure_V3 = GetMCLabel("topPressure_V3"); + DeviceDetailReportForm.topPressure_V4 = GetMCLabel("topPressure_V4"); + DeviceDetailReportForm.topPressure_V5 = GetMCLabel("topPressure_V5"); + DeviceDetailReportForm.Vessel_1_ActWeight = GetMCLabel("Vessel_1_ActWeight"); + DeviceDetailReportForm.Vessel_2_ActWeight = GetMCLabel("Vessel_2_ActWeight"); + DeviceDetailReportForm.Vessel_3_ActWeight = GetMCLabel("Vessel_3_ActWeight"); + DeviceDetailReportForm.Vessel_4_ActWeight = GetMCLabel("Vessel_4_ActWeight"); + DeviceDetailReportForm.Vessel_5_ActWeight = GetMCLabel("Vessel_5_ActWeight"); + DeviceDetailReportForm.conveyV1_PV = GetMCLabel("conveyV1_PV"); + DeviceDetailReportForm.conveyV2_PV = GetMCLabel("conveyV2_PV"); + DeviceDetailReportForm.conveyV3_PV = GetMCLabel("conveyV3_PV"); + DeviceDetailReportForm.conveyV5_PV = GetMCLabel("conveyV5_PV"); + DeviceDetailReportForm.mainPress_V1_ActualValue = GetMCLabel("mainPress_V1_ActualValue"); + DeviceDetailReportForm.mainPress_V2_ActualValue = GetMCLabel("mainPress_V2_ActualValue"); + DeviceDetailReportForm.mainPress_V3_ActualValue = GetMCLabel("mainPress_V3_ActualValue"); + DeviceDetailReportForm.mainPress_V5_ActualValue = GetMCLabel("mainPress_V5_ActualValue"); + DeviceDetailReportForm.purgeV1_PV = GetMCLabel("purgeV1_PV"); + DeviceDetailReportForm.purgeV2_PV = GetMCLabel("purgeV2_PV"); + DeviceDetailReportForm.purgeV3_PV = GetMCLabel("purgeV3_PV"); + DeviceDetailReportForm.purgeV5_PV = GetMCLabel("purgeV5_PV"); + DeviceDetailReportForm.WScale_1_ActWeight = GetMCLabel("WScale_1_ActWeight"); + DeviceDetailReportForm.WScale_2_ActWeight = GetMCLabel("WScale_2_ActWeight"); + DeviceDetailReportForm.WScale_3_ActWeight = GetMCLabel("WScale_3_ActWeight"); + DeviceDetailReportForm.WScale_4_ActWeight = GetMCLabel("WScale_4_ActWeight"); + DeviceDetailReportForm.DM1DRY1_ACT_Speed = GetMCLabel("DM1DRY1_ACT_Speed"); + DeviceDetailReportForm.DM1DRY2_ACT_Speed = GetMCLabel("DM1DRY2_ACT_Speed"); + DeviceDetailReportForm.DM1DRY3_ACT_Speed = GetMCLabel("DM1DRY3_ACT_Speed"); + DeviceDetailReportForm.DM1DRY4_ACT_Speed = GetMCLabel("DM1DRY4_ACT_Speed"); + DeviceDetailReportForm.Hopper_1_ActWeight = GetMCLabel("Hopper_1_ActWeight"); + DeviceDetailReportForm.Hopper_2_ActWeight = GetMCLabel("Hopper_2_ActWeight"); + DeviceDetailReportForm.Hopper_3_ActWeight = GetMCLabel("Hopper_3_ActWeight"); + DeviceDetailReportForm.Hopper_4_ActWeight = GetMCLabel("Hopper_4_ActWeight"); + DeviceDetailReportForm.DM1GEM = GetMCLabel("DM1GEM"); + DeviceDetailReportForm.DM2GEM = GetMCLabel("DM2GEM"); + DeviceDetailReportForm.DM3GEM = GetMCLabel("DM3GEM"); + DeviceDetailReportForm.DM4GEM = GetMCLabel("DM4GEM"); + DeviceDetailReportForm.DM5GEM = GetMCLabel("DM5GEM"); + DeviceDetailReportForm.DM6GEM = GetMCLabel("DM6GEM"); + DeviceDetailReportForm.DM7GEM = GetMCLabel("DM7GEM"); + DeviceDetailReportForm.DM8GEM = GetMCLabel("DM8GEM"); + DeviceDetailReportForm.DM2ASF01 = GetMCLabel("DM2ASF01"); + DeviceDetailReportForm.DM2BSF01 = GetMCLabel("DM2BSF01"); + DeviceDetailReportForm.DM2CSF01 = GetMCLabel("DM2CSF01"); + DeviceDetailReportForm.DM2DSF01 = GetMCLabel("DM2DSF01"); + + DeviceDetailReportForm.DM1ASF01 = GetRSCREWBIG("DM1ASF01"); + DeviceDetailReportForm.DM1BSF01 = GetRSCREWBIG("DM1BSF01"); + DeviceDetailReportForm.DM1CSF01 = GetLSCREWBIG("DM1CSF01"); + DeviceDetailReportForm.DM1DSF01 = GetLSCREWBIG("DM1DSF01"); + DeviceDetailReportForm.DM1ESF01 = GetRSCREWBIG("DM1ESF01"); + DeviceDetailReportForm.DM1FSF01 = GetLSCREWBIG("DM1FSF01"); + DeviceDetailReportForm.DM1GSF01 = GetRSCREWBIG("DM1GSF01"); + DeviceDetailReportForm.DM1HSF01 = GetRSCREWBIG("DM1HSF01"); + DeviceDetailReportForm.DM1ISF01 = GetLSCREWBIG("DM1ISF01"); + DeviceDetailReportForm.DM1JSF01 = GetLSCREWBIG("DM1JSF01"); + DeviceDetailReportForm.DM1KSF01 = GetRSCREWBIG("DM1KSF01"); + DeviceDetailReportForm.DM1LSF01 = GetRSCREWBIG("DM1LSF01"); + DeviceDetailReportForm.DM1MSF01 = GetLSCREWBIG("DM1MSF01"); + DeviceDetailReportForm.DM1NSF01 = GetLSCREWBIG("DM1NSF01"); + DeviceDetailReportForm.DM1OSF01 = GetRSCREWBIG("DM1OSF01"); + DeviceDetailReportForm.DM2ASF01L = GetLSCREWBIG("DM2ASF01L"); + DeviceDetailReportForm.DM2BSF01L = GetLSCREWBIG("DM2BSF01L"); + DeviceDetailReportForm.DM2CSF01L = GetLSCREWBIG("DM2CSF01L"); + DeviceDetailReportForm.DM2DSF01L = GetLSCREWBIG("DM2DSF01L"); + DeviceDetailReportForm.DM2ASF01R = GetRSCREWBIG("DM2ASF01R"); + DeviceDetailReportForm.DM2BSF01R = GetRSCREWBIG("DM2BSF01R"); + DeviceDetailReportForm.DM2CSF01R = GetRSCREWBIG("DM2CSF01R"); + DeviceDetailReportForm.DM2DSF01R = GetRSCREWBIG("DM2DSF01R"); + + DeviceDetailReportForm.AS1BLT01 = GetJzf("AS1BLT01"); + DeviceDetailReportForm.AS1BLT02 = GetJzf("AS1BLT02"); + DeviceDetailReportForm.AS1BLT03 = GetJzf("AS1BLT03"); + DeviceDetailReportForm.AS1BLT04 = GetJzf("AS1BLT04"); + DeviceDetailReportForm.AS1BLT05 = GetJzf("AS1BLT05"); + DeviceDetailReportForm.AS2BLT01 = GetJzf("AS2BLT01"); + DeviceDetailReportForm.AS2BLT02 = GetJzf("AS2BLT02"); + DeviceDetailReportForm.AS2BLT03 = GetJzf("AS2BLT03"); + DeviceDetailReportForm.AS2BLT04 = GetJzf("AS2BLT04"); + DeviceDetailReportForm.AS2BLT05 = GetJzf("AS2BLT05"); + DeviceDetailReportForm.AS3BLT01 = GetJzf("AS3BLT01"); + DeviceDetailReportForm.AS3BLT02 = GetJzf("AS3BLT02"); + DeviceDetailReportForm.AS3BLT03 = GetJzf("AS3BLT03"); + DeviceDetailReportForm.AS3BLT04 = GetJzf("AS3BLT04"); + DeviceDetailReportForm.AS3BLT05 = GetJzf("AS3BLT05"); + DeviceDetailReportForm.AS4BLT01 = GetJzf("AS4BLT01"); + DeviceDetailReportForm.AS4BLT03 = GetJzf("AS4BLT03"); + DeviceDetailReportForm.AS5BLT01 = GetJzf("AS5BLT01"); + DeviceDetailReportForm.AS5BLT02 = GetJzf("AS5BLT02"); + DeviceDetailReportForm.AS5BLT03 = GetJzf("AS5BLT03"); + DeviceDetailReportForm.AS5BLT04 = GetJzf("AS5BLT04"); + DeviceDetailReportForm.AS5BLT05 = GetJzf("AS5BLT05"); + DeviceDetailReportForm.AS2PCP01 = GetJzf("AS2PCP01"); + DeviceDetailReportForm.AS2PCP02 = GetJzf("AS2PCP02"); + DeviceDetailReportForm.AS2PCP03 = GetJzf("AS2PCP03"); + DeviceDetailReportForm.AS1OIS01 = GetJzf("AS1OIS01"); + DeviceDetailReportForm.AS1OIS02 = GetJzf("AS1OIS02"); + DeviceDetailReportForm.AS1OIS03 = GetJzf("AS1OIS03"); + DeviceDetailReportForm.AS2OIS01 = GetJzf("AS2OIS01"); + DeviceDetailReportForm.AS2OIS02 = GetJzf("AS2OIS02"); + DeviceDetailReportForm.AS2OIS03 = GetJzf("AS2OIS03"); + DeviceDetailReportForm.AS3OIS01 = GetJzf("AS3OIS01"); + DeviceDetailReportForm.AS3OIS02 = GetJzf("AS3OIS02"); + DeviceDetailReportForm.AS3OIS03 = GetJzf("AS3OIS03"); + DeviceDetailReportForm.AS4OIS01 = GetJzf("AS4OIS01"); + DeviceDetailReportForm.AS4OIS02 = GetJzf("AS4OIS02"); + DeviceDetailReportForm.AS4OIS03 = GetJzf("AS4OIS03"); + DeviceDetailReportForm.AS1GET01 = GetJzf("AS1GET01"); + DeviceDetailReportForm.AS1GET02 = GetJzf("AS1GET02"); + DeviceDetailReportForm.AS2GET01 = GetJzf("AS2GET01"); + DeviceDetailReportForm.AS2GET02 = GetJzf("AS2GET02"); + DeviceDetailReportForm.AS3GET01 = GetJzf("AS3GET01"); + DeviceDetailReportForm.AS3GET02 = GetJzf("AS3GET02"); + DeviceDetailReportForm.AS4GET01 = GetJzf("AS4GET01"); + DeviceDetailReportForm.AS4GET02 = GetJzf("AS4GET02"); + DeviceDetailReportForm.AS5GET01 = GetJzf("AS5GET01"); + DeviceDetailReportForm.AS5GET02 = GetJzf("AS5GET02"); + DeviceDetailReportForm.AS6GET01 = GetJzf("AS6GET01"); + DeviceDetailReportForm.AS6GET02 = GetJzf("AS6GET02"); + DeviceDetailReportForm.AS7GET01 = GetJzf("AS7GET01"); + DeviceDetailReportForm.AS7GET02 = GetJzf("AS7GET02"); + DeviceDetailReportForm.AS8GET01 = GetJzf("AS8GET01"); + DeviceDetailReportForm.AS8GET02 = GetJzf("AS8GET02"); + + DeviceDetailReportForm.DM1ADF01 = GetFan("DM1ADF01"); + DeviceDetailReportForm.DM1BDF01 = GetFan("DM1BDF01"); + DeviceDetailReportForm.DM1CDF01 = GetFan("DM1CDF01"); + DeviceDetailReportForm.DM1DDF01 = GetFan("DM1DDF01"); + DeviceDetailReportForm.DM1EDF01 = GetFan("DM1EDF01"); + DeviceDetailReportForm.DM1FDF01 = GetFan("DM1FDF01"); + DeviceDetailReportForm.DM1GDF01 = GetFan("DM1GDF01"); + DeviceDetailReportForm.DM1HDF01 = GetFan("DM1HDF01"); + DeviceDetailReportForm.DM1IDF01 = GetFan("DM1IDF01"); + DeviceDetailReportForm.DM1JDF01 = GetFan("DM1JDF01"); + DeviceDetailReportForm.DM1KDF01 = GetFan("DM1KDF01"); + DeviceDetailReportForm.DM1LDF01 = GetFan("DM1LDF01"); + DeviceDetailReportForm.DM1ADB01 = GetFan("DM1ADB01"); + DeviceDetailReportForm.DM1BDB01 = GetFan("DM1BDB01"); + DeviceDetailReportForm.DM1CDB01 = GetFan("DM1CDB01"); + DeviceDetailReportForm.DM1DDB01 = GetFan("DM1DDB01"); + DeviceDetailReportForm.DM1EDB01 = GetFan("DM1EDB01"); + DeviceDetailReportForm.DM1FDB01 = GetFan("DM1FDB01"); + DeviceDetailReportForm.DM1GDB01 = GetFan("DM1GDB01"); + DeviceDetailReportForm.DM1HDB01 = GetFan("DM1HDB01"); + DeviceDetailReportForm.DM1IDB01 = GetFan("DM1IDB01"); + DeviceDetailReportForm.DM1JDB01 = GetFan("DM1JDB01"); + DeviceDetailReportForm.DM1KDB01 = GetFan("DM1KDB01"); + DeviceDetailReportForm.DM1LDB01 = GetFan("DM1LDB01"); + DeviceDetailReportForm.DM1DRY1_Running = GetFan("DM1DRY1_Running"); + DeviceDetailReportForm.DM1DRY2_Running = GetFan("DM1DRY2_Running"); + DeviceDetailReportForm.DM1DRY3_Running = GetFan("DM1DRY3_Running"); + DeviceDetailReportForm.DM1DRY4_Running = GetFan("DM1DRY4_Running"); + DeviceDetailReportForm.PM3ADF01 = GetFan("PM3ADF01"); + + DeviceDetailReportForm.PM1ADF01 = GetControlCabinet("PM1ADF01"); + DeviceDetailReportForm.PM1BDF01 = GetControlCabinet("PM1BDF01"); + DeviceDetailReportForm.PM1CDF01 = GetControlCabinet("PM1CDF01"); + DeviceDetailReportForm.PM1DDF01 = GetControlCabinet("PM1DDF01"); + DeviceDetailReportForm.PM1EDF01 = GetControlCabinet("PM1EDF01"); + DeviceDetailReportForm.PM1FDF01 = GetControlCabinet("PM1FDF01"); + DeviceDetailReportForm.PM1GDF01 = GetControlCabinet("PM1GDF01"); + DeviceDetailReportForm.PM1HDF01 = GetControlCabinet("PM1HDF01"); + DeviceDetailReportForm.PM1IDF01 = GetControlCabinet("PM1IDF01"); + DeviceDetailReportForm.PM1JDF01 = GetControlCabinet("PM1JDF01"); + DeviceDetailReportForm.PM1KDF01 = GetControlCabinet("PM1KDF01"); + DeviceDetailReportForm.PM1LDF01 = GetControlCabinet("PM1LDF01"); + + DeviceDetailReportForm.BU1ASF01 = GetLjSwith("BU1ASF01"); + DeviceDetailReportForm.BU1BSF01 = GetLjSwith("BU1BSF01"); + DeviceDetailReportForm.BU1CSF01 = GetLjSwith("BU1CSF01"); + DeviceDetailReportForm.BU1DSF01 = GetLjSwith("BU1DSF01"); + DeviceDetailReportForm.BU1ESF01 = GetLjSwith("BU1ESF01"); + DeviceDetailReportForm.BU1FSF01 = GetLjSwith("BU1FSF01"); + DeviceDetailReportForm.BU1GSF01 = GetLjSwith("BU1GSF01"); + DeviceDetailReportForm.BU1HSF01 = GetLjSwith("BU1HSF01"); + DeviceDetailReportForm.BU1ISF01 = GetLjSwith("BU1ISF01"); + DeviceDetailReportForm.BU1JSF01 = GetLjSwith("BU1JSF01"); + DeviceDetailReportForm.BU1KSF01 = GetLjSwith("BU1KSF01"); + DeviceDetailReportForm.BU1LSF01 = GetLjSwith("BU1LSF01"); + DeviceDetailReportForm.BU1MSF01 = GetLjSwith("BU1MSF01"); + DeviceDetailReportForm.BU1NSF01 = GetLjSwith("BU1NSF01"); + DeviceDetailReportForm.BU1OSF01 = GetLjSwith("BU1OSF01"); + DeviceDetailReportForm.BU1BLT01 = GetLjSwith("BU1BLT01"); + DeviceDetailReportForm.BU1BLT02 = GetLjSwith("BU1BLT02"); + DeviceDetailReportForm.BU1BLT03 = GetLjSwith("BU1BLT03"); + DeviceDetailReportForm.BU1BLT04 = GetLjSwith("BU1BLT04"); + DeviceDetailReportForm.BU1BLT05 = GetLjSwith("BU1BLT05"); + DeviceDetailReportForm.BU1BLT06 = GetLjSwith("BU1BLT06"); + DeviceDetailReportForm.BU1BLT07 = GetLjSwith("BU1BLT07"); + DeviceDetailReportForm.BU2BLT01 = GetLjSwith("BU2BLT01"); + DeviceDetailReportForm.BU2BLT02 = GetLjSwith("BU2BLT02"); + DeviceDetailReportForm.BU2BLT03 = GetLjSwith("BU2BLT03"); + DeviceDetailReportForm.BU2BLT04 = GetLjSwith("BU2BLT04"); + DeviceDetailReportForm.BU2BLT05 = GetLjSwith("BU2BLT05"); + DeviceDetailReportForm.BU3BLT01 = GetLjSwith("BU3BLT01"); + DeviceDetailReportForm.BU3BLT02 = GetLjSwith("BU3BLT02"); + DeviceDetailReportForm.BU3BLT03 = GetLjSwith("BU3BLT03"); + DeviceDetailReportForm.BU3BLT04 = GetLjSwith("BU3BLT04"); + DeviceDetailReportForm.BU3BLT05 = GetLjSwith("BU3BLT05"); + DeviceDetailReportForm.BU3BLT06 = GetLjSwith("BU3BLT06"); + DeviceDetailReportForm.BU3BLT07 = GetLjSwith("BU3BLT07"); + DeviceDetailReportForm.BU4BLT01 = GetLjSwith("BU4BLT01"); + DeviceDetailReportForm.BU4BLT02 = GetLjSwith("BU4BLT02"); + DeviceDetailReportForm.BU4BLT03 = GetLjSwith("BU4BLT03"); + DeviceDetailReportForm.BU4BLT04 = GetLjSwith("BU4BLT04"); + DeviceDetailReportForm.BU4BLT05 = GetLjSwith("BU4BLT05"); + DeviceDetailReportForm.BU4BLT06 = GetLjSwith("BU4BLT06"); + DeviceDetailReportForm.BU4BLT07 = GetLjSwith("BU4BLT07"); + DeviceDetailReportForm.BU5BLT01 = GetLjSwith("BU5BLT01"); + DeviceDetailReportForm.BU5BLT02 = GetLjSwith("BU5BLT02"); + DeviceDetailReportForm.BU5BLT03 = GetLjSwith("BU5BLT03"); + DeviceDetailReportForm.BU5BLT04 = GetLjSwith("BU5BLT04"); + DeviceDetailReportForm.BU1ADB01 = GetLjSwith("BU1ADB01"); + DeviceDetailReportForm.BU1BDB01 = GetLjSwith("BU1BDB01"); + DeviceDetailReportForm.BU1CDB01 = GetLjSwith("BU1CDB01"); + DeviceDetailReportForm.BU1DDB01 = GetLjSwith("BU1DDB01"); + DeviceDetailReportForm.BU1EDB01 = GetLjSwith("BU1EDB01"); + DeviceDetailReportForm.BU1FDB01 = GetLjSwith("BU1FDB01"); + DeviceDetailReportForm.BU1GDB01 = GetLjSwith("BU1GDB01"); + DeviceDetailReportForm.BU1HDB01 = GetLjSwith("BU1HDB01"); + DeviceDetailReportForm.BU1IDB01 = GetLjSwith("BU1IDB01"); + DeviceDetailReportForm.BU1JDB01 = GetLjSwith("BU1JDB01"); + DeviceDetailReportForm.BU1KDB01 = GetLjSwith("BU1KDB01"); + DeviceDetailReportForm.BU1LDB01 = GetLjSwith("BU1LDB01"); + DeviceDetailReportForm.BU1GEB02 = GetLjSwith("BU1GEB02"); + DeviceDetailReportForm.BU2GEB02 = GetLjSwith("BU2GEB02"); + DeviceDetailReportForm.BU3GEB02 = GetLjSwith("BU3GEB02"); + DeviceDetailReportForm.BU4GEB02 = GetLjSwith("BU4GEB02"); + DeviceDetailReportForm.BU5GEB02 = GetLjSwith("BU5GEB02"); + DeviceDetailReportForm.BU6GEB02 = GetLjSwith("BU6GEB02"); + DeviceDetailReportForm.BU7GEB02 = GetLjSwith("BU7GEB02"); + DeviceDetailReportForm.BU8GEB02 = GetLjSwith("BU8GEB02"); + DeviceDetailReportForm.BU1DRB01 = GetLjSwith("BU1DRB01"); + DeviceDetailReportForm.BU2DRB01 = GetLjSwith("BU2DRB01"); + DeviceDetailReportForm.BU3DRB01 = GetLjSwith("BU3DRB01"); + DeviceDetailReportForm.BU4DRB01 = GetLjSwith("BU4DRB01"); + DeviceDetailReportForm.BU1GEB01 = GetLjSwith("BU1GEB01"); + DeviceDetailReportForm.BU2GEB01 = GetLjSwith("BU2GEB01"); + DeviceDetailReportForm.BU3GEB01 = GetLjSwith("BU3GEB01"); + DeviceDetailReportForm.BU4GEB01 = GetLjSwith("BU4GEB01"); + DeviceDetailReportForm.BU5GEB01 = GetLjSwith("BU5GEB01"); + DeviceDetailReportForm.BU6GEB01 = GetLjSwith("BU6GEB01"); + DeviceDetailReportForm.BU7GEB01 = GetLjSwith("BU7GEB01"); + DeviceDetailReportForm.BU8GEB01 = GetLjSwith("BU8GEB01"); + DeviceDetailReportForm.BU2ASF01 = GetLjSwith("BU2ASF01"); + DeviceDetailReportForm.BU2ASF02 = GetLjSwith("BU2ASF02"); + DeviceDetailReportForm.BU2BSF01 = GetLjSwith("BU2BSF01"); + DeviceDetailReportForm.BU2BSF02 = GetLjSwith("BU2BSF02"); + DeviceDetailReportForm.BU2CSF01 = GetLjSwith("BU2CSF01"); + DeviceDetailReportForm.BU2CSF02 = GetLjSwith("BU2CSF02"); + DeviceDetailReportForm.BU2DSF01 = GetLjSwith("BU2DSF01"); + DeviceDetailReportForm.BU2DSF02 = GetLjSwith("BU2DSF02"); + DeviceDetailReportForm.BUWeter1 = GetLjSwith("BUWeter1"); + DeviceDetailReportForm.BUWeter2 = GetLjSwith("BUWeter2"); + DeviceDetailReportForm.BUWeter3 = GetLjSwith("BUWeter3"); + DeviceDetailReportForm.BUWeter4 = GetLjSwith("BUWeter4"); + DeviceDetailReportForm.BUWeter5 = GetLjSwith("BUWeter5"); + DeviceDetailReportForm.BUWeter6 = GetLjSwith("BUWeter6"); + DeviceDetailReportForm.BUWeter7 = GetLjSwith("BUWeter7"); + DeviceDetailReportForm.BUWeter8 = GetLjSwith("BUWeter8"); + + DeviceDetailReportForm.DV2PCP01 = GetThreeWayValve("DV2PCP01"); + DeviceDetailReportForm.DV2PCP02 = GetThreeWayValve("DV2PCP02"); + DeviceDetailReportForm.DV2PCP03 = GetThreeWayValve("DV2PCP03"); + DeviceDetailReportForm.DV2PCP04 = GetThreeWayValve("DV2PCP04"); + DeviceDetailReportForm.DV2PCP05 = GetThreeWayValve("DV2PCP05"); + DeviceDetailReportForm.DV2PCP06 = GetThreeWayValve("DV2PCP06"); + DeviceDetailReportForm.DV2PCP07 = GetThreeWayValve("DV2PCP07"); + DeviceDetailReportForm.DV2PCP08 = GetThreeWayValve("DV2PCP08"); + DeviceDetailReportForm.DV2PCP09 = GetThreeWayValve("DV2PCP09"); + DeviceDetailReportForm.DV2PCP10 = GetThreeWayValve("DV2PCP10"); + DeviceDetailReportForm.DV2PCP11 = GetThreeWayValve("DV2PCP11"); + DeviceDetailReportForm.DV2PCP12 = GetThreeWayValve("DV2PCP12"); + DeviceDetailReportForm.DV2PCP13 = GetThreeWayValve("DV2PCP13"); + + #endregion + + } + public MCLabel StringToLable(string lableName) + { + return McControllist.Where(t => t.BaseControl.MCKey != null && t.BaseControl.MCKey == lableName).FirstOrDefault().BaseControl as MCLabel; } + #endregion #region 图像控件交互 @@ -2745,10 +2294,10 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl #endregion - #region 报表数据处理 控件交互 + #region 报警信号处理 /// - /// 从Plc读取数据在lable上显示 + /// 报警刷新 /// /// /// @@ -2767,7 +2316,8 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl t2.Alarm_Block, t2.Alarm_Word, t2.Alarm_Bit, - t1.Alarm_OccurTime + t1.Alarm_OccurTime, + t1.Alarm_Status FROM LR_Alarmlog t1 LEFT JOIN Pmt_Alarm t2 ON t1.Alarm_ID = t2.Alarm_ID @@ -2783,318 +2333,9 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl //DBLog("成功!"); } - System.Data.DataTable parametersWithPCTable = DBHelp.GetTable("select Id, mode, status, batch, step, stepName, totalTime, stepTime, temperature, speed, currnet, pressure from ParametersWithPC"); - - foreach (DataRow row in parametersWithPCTable.Rows) - { - string id = row["Id"].ToString(); - System.Drawing.Color modeColor = System.Drawing.Color.White; - string mode; - if ((bool)row["mode"]) - { - mode = "自动"; - modeColor = System.Drawing.Color.Green; - } - else - { - mode = "手动"; - modeColor = System.Drawing.Color.Yellow; - } - string status; - System.Drawing.Color statusColor = System.Drawing.Color.White; - if ((bool)row["status"]) - { - status = "运行"; - statusColor = System.Drawing.Color.Green; - } - else - { - status = "空闲"; - statusColor = System.Drawing.Color.Yellow; - } - int batch = (int)row["batch"]; - int step = (int)row["step"]; - string stepName = Convert.ToString(row["stepName"]); - int totalTime = (int)row["totalTime"]; - int stepTime = (int)row["stepTime"]; - float speed = (float)Math.Round(Convert.ToSingle(row["speed"]), 2); - float current = (float)Math.Round(Convert.ToSingle(row["currnet"]), 2); - float pressure = (float)Math.Round(Convert.ToSingle(row["pressure"]), 2); - - #region 控件赋值 - switch (id) - { - case "Dryer0": - this.DeviceDetailForm.DAMode.MCValue = mode; - this.DeviceDetailForm.DAMode.ForeColor = modeColor; - this.DeviceDetailForm.DAStatus.MCValue = status; - this.DeviceDetailForm.DAStatus.ForeColor = statusColor; - this.DeviceDetailForm.DABatch.MCValue = batch; - this.DeviceDetailForm.DAStep.MCValue = step; - this.DeviceDetailForm.DAStepCode.MCValue = stepName; - this.DeviceDetailForm.DATotalTime.MCValue = totalTime; - this.DeviceDetailForm.DAStepTime.MCValue = stepTime; - this.DeviceDetailForm.DASpeed.MCValue = speed; - break; - case "Dryer1": - this.DeviceDetailForm.DBMode.MCValue = mode; - this.DeviceDetailForm.DBMode.ForeColor = modeColor; - this.DeviceDetailForm.DBStatus.MCValue = status; - this.DeviceDetailForm.DBStatus.ForeColor = statusColor; - this.DeviceDetailForm.DBBatch.MCValue = batch; - this.DeviceDetailForm.DBStep.MCValue = step; - this.DeviceDetailForm.DBStepCode.MCValue = stepName; - this.DeviceDetailForm.DBTotalTime.MCValue = totalTime; - this.DeviceDetailForm.DBStepTime.MCValue = stepTime; - this.DeviceDetailForm.DBSpeed.MCValue = speed; - break; - case "Dryer2": - this.DeviceDetailForm.DCMode.MCValue = mode; - this.DeviceDetailForm.DCMode.ForeColor = modeColor; - this.DeviceDetailForm.DCStatus.MCValue = status; - this.DeviceDetailForm.DCStatus.ForeColor = statusColor; - this.DeviceDetailForm.DCBatch.MCValue = batch; - this.DeviceDetailForm.DCStep.MCValue = step; - this.DeviceDetailForm.DCStepCode.MCValue = stepName; - this.DeviceDetailForm.DCTotalTime.MCValue = totalTime; - this.DeviceDetailForm.DCStepTime.MCValue = stepTime; - this.DeviceDetailForm.DCSpeed.MCValue = speed; - break; - case "Dryer3": - this.DeviceDetailForm.DDMode.MCValue = mode; - this.DeviceDetailForm.DDMode.ForeColor = modeColor; - this.DeviceDetailForm.DDStatus.MCValue = status; - this.DeviceDetailForm.DDStatus.ForeColor = statusColor; - this.DeviceDetailForm.DDBatch.MCValue = batch; - this.DeviceDetailForm.DDStep.MCValue = step; - this.DeviceDetailForm.DDStepCode.MCValue = stepName; - this.DeviceDetailForm.DDTotalTime.MCValue = totalTime; - this.DeviceDetailForm.DDStepTime.MCValue = stepTime; - this.DeviceDetailForm.DDSpeed.MCValue = speed; - break; - case "Weter0": - this.DeviceDetailForm.WAMode.MCValue = mode; - this.DeviceDetailForm.WAMode.ForeColor = modeColor; - this.DeviceDetailForm.WAStatus.MCValue = status; - this.DeviceDetailForm.WAStatus.ForeColor = statusColor; - this.DeviceDetailForm.WABatch.MCValue = batch; - this.DeviceDetailForm.WAStep.MCValue = step; - this.DeviceDetailForm.WAStepCode.MCValue = stepName; - this.DeviceDetailForm.WATotalTime.MCValue = totalTime; - this.DeviceDetailForm.WAStepTime.MCValue = stepTime; - this.DeviceDetailForm.WASpeed.MCValue = speed; - this.DeviceDetailForm.WACurrent.MCValue = current; - this.DeviceDetailForm.WAPressure.MCValue = pressure; - break; - case "Weter1": - this.DeviceDetailForm.WBMode.MCValue = mode; - this.DeviceDetailForm.WBMode.ForeColor = modeColor; - this.DeviceDetailForm.WBStatus.MCValue = status; - this.DeviceDetailForm.WBStatus.ForeColor = statusColor; - this.DeviceDetailForm.WBBatch.MCValue = batch; - this.DeviceDetailForm.WBStep.MCValue = step; - this.DeviceDetailForm.WBStepCode.MCValue = stepName; - this.DeviceDetailForm.WBTotalTime.MCValue = totalTime; - this.DeviceDetailForm.WBStepTime.MCValue = stepTime; - this.DeviceDetailForm.WBSpeed.MCValue = speed; - this.DeviceDetailForm.WBCurrent.MCValue = current; - this.DeviceDetailForm.WBPressure.MCValue = pressure; - break; - case "Weter2": - this.DeviceDetailForm.WCMode.MCValue = mode; - this.DeviceDetailForm.WCMode.ForeColor = modeColor; - this.DeviceDetailForm.WCStatus.MCValue = status; - this.DeviceDetailForm.WCStatus.ForeColor = statusColor; - this.DeviceDetailForm.WCBatch.MCValue = batch; - this.DeviceDetailForm.WCStep.MCValue = step; - this.DeviceDetailForm.WCStepCode.MCValue = stepName; - this.DeviceDetailForm.WCTotalTime.MCValue = totalTime; - this.DeviceDetailForm.WCStepTime.MCValue = stepTime; - this.DeviceDetailForm.WCSpeed.MCValue = speed; - this.DeviceDetailForm.WCCurrent.MCValue = current; - this.DeviceDetailForm.WCPressure.MCValue = pressure; - break; - case "Weter3": - this.DeviceDetailForm.WDMode.MCValue = mode; - this.DeviceDetailForm.WDMode.ForeColor = modeColor; - this.DeviceDetailForm.WDStatus.MCValue = status; - this.DeviceDetailForm.WDStatus.ForeColor = statusColor; - this.DeviceDetailForm.WDBatch.MCValue = batch; - this.DeviceDetailForm.WDStep.MCValue = step; - this.DeviceDetailForm.WDStepCode.MCValue = stepName; - this.DeviceDetailForm.WDTotalTime.MCValue = totalTime; - this.DeviceDetailForm.WDStepTime.MCValue = stepTime; - this.DeviceDetailForm.WDSpeed.MCValue = speed; - this.DeviceDetailForm.WDCurrent.MCValue = current; - this.DeviceDetailForm.WDPressure.MCValue = pressure; - break; - case "Weter4": - this.DeviceDetailForm.WEMode.MCValue = mode; - this.DeviceDetailForm.WEMode.ForeColor = modeColor; - this.DeviceDetailForm.WEStatus.MCValue = status; - this.DeviceDetailForm.WEStatus.ForeColor = statusColor; - this.DeviceDetailForm.WEBatch.MCValue = batch; - this.DeviceDetailForm.WEStep.MCValue = step; - this.DeviceDetailForm.WEStepCode.MCValue = stepName; - this.DeviceDetailForm.WETotalTime.MCValue = totalTime; - this.DeviceDetailForm.WEStepTime.MCValue = stepTime; - this.DeviceDetailForm.WESpeed.MCValue = speed; - this.DeviceDetailForm.WECurrent.MCValue = current; - this.DeviceDetailForm.WEPressure.MCValue = pressure; - break; - case "Weter5": - this.DeviceDetailForm.WFMode.MCValue = mode; - this.DeviceDetailForm.WFMode.ForeColor = modeColor; - this.DeviceDetailForm.WFStatus.MCValue = status; - this.DeviceDetailForm.WFStatus.ForeColor = statusColor; - this.DeviceDetailForm.WFBatch.MCValue = batch; - this.DeviceDetailForm.WFStep.MCValue = step; - this.DeviceDetailForm.WFStepCode.MCValue = stepName; - this.DeviceDetailForm.WFTotalTime.MCValue = totalTime; - this.DeviceDetailForm.WFStepTime.MCValue = stepTime; - this.DeviceDetailForm.WFSpeed.MCValue = speed; - this.DeviceDetailForm.WFCurrent.MCValue = current; - this.DeviceDetailForm.WFPressure.MCValue = pressure; - break; - case "Weter6": - this.DeviceDetailForm.WGMode.MCValue = mode; - this.DeviceDetailForm.WGMode.ForeColor = modeColor; - this.DeviceDetailForm.WGStatus.MCValue = status; - this.DeviceDetailForm.WGStatus.ForeColor = statusColor; - this.DeviceDetailForm.WGBatch.MCValue = batch; - this.DeviceDetailForm.WGStep.MCValue = step; - this.DeviceDetailForm.WGStepCode.MCValue = stepName; - this.DeviceDetailForm.WGTotalTime.MCValue = totalTime; - this.DeviceDetailForm.WGStepTime.MCValue = stepTime; - this.DeviceDetailForm.WGSpeed.MCValue = speed; - this.DeviceDetailForm.WGCurrent.MCValue = current; - this.DeviceDetailForm.WGPressure.MCValue = pressure; - break; - case "Weter7": - this.DeviceDetailForm.WHMode.MCValue = mode; - this.DeviceDetailForm.WHMode.ForeColor = modeColor; - this.DeviceDetailForm.WHStatus.MCValue = status; - this.DeviceDetailForm.WHStatus.ForeColor = statusColor; - this.DeviceDetailForm.WHBatch.MCValue = batch; - this.DeviceDetailForm.WHStep.MCValue = step; - this.DeviceDetailForm.WHStepCode.MCValue = stepName; - this.DeviceDetailForm.WHTotalTime.MCValue = totalTime; - this.DeviceDetailForm.WHStepTime.MCValue = stepTime; - this.DeviceDetailForm.WHSpeed.MCValue = speed; - this.DeviceDetailForm.WHCurrent.MCValue = current; - this.DeviceDetailForm.WHPressure.MCValue = pressure; - break; - case "Gelater0": - this.DeviceDetailForm.GAMode.MCValue = mode; - this.DeviceDetailForm.GAMode.ForeColor = modeColor; - this.DeviceDetailForm.GAStatus.MCValue = status; - this.DeviceDetailForm.GAStatus.ForeColor = statusColor; - this.DeviceDetailForm.GABatch.MCValue = batch; - this.DeviceDetailForm.GAStep.MCValue = step; - this.DeviceDetailForm.GAStepCode.MCValue = stepName; - this.DeviceDetailForm.GATotalTime.MCValue = totalTime; - this.DeviceDetailForm.GAStepTime.MCValue = stepTime; - this.DeviceDetailForm.GASpeed.MCValue = speed; - break; - case "Gelater1": - this.DeviceDetailForm.GBMode.MCValue = mode; - this.DeviceDetailForm.GBMode.ForeColor = modeColor; - this.DeviceDetailForm.GBStatus.MCValue = status; - this.DeviceDetailForm.GBStatus.ForeColor = statusColor; - this.DeviceDetailForm.GBBatch.MCValue = batch; - this.DeviceDetailForm.GBStep.MCValue = step; - this.DeviceDetailForm.GBStepCode.MCValue = stepName; - this.DeviceDetailForm.GBTotalTime.MCValue = totalTime; - this.DeviceDetailForm.GBStepTime.MCValue = stepTime; - this.DeviceDetailForm.GBSpeed.MCValue = speed; - break; - case "Gelater2": - this.DeviceDetailForm.GCMode.MCValue = mode; - this.DeviceDetailForm.GCMode.ForeColor = modeColor; - this.DeviceDetailForm.GCStatus.MCValue = status; - this.DeviceDetailForm.GCStatus.ForeColor = statusColor; - this.DeviceDetailForm.GCBatch.MCValue = batch; - this.DeviceDetailForm.GCStep.MCValue = step; - this.DeviceDetailForm.GCStepCode.MCValue = stepName; - this.DeviceDetailForm.GCTotalTime.MCValue = totalTime; - this.DeviceDetailForm.GCStepTime.MCValue = stepTime; - this.DeviceDetailForm.GCSpeed.MCValue = speed; - break; - case "Gelater3": - this.DeviceDetailForm.GDMode.MCValue = mode; - this.DeviceDetailForm.GDMode.ForeColor = modeColor; - this.DeviceDetailForm.GDStatus.MCValue = status; - this.DeviceDetailForm.GDStatus.ForeColor = statusColor; - this.DeviceDetailForm.GDBatch.MCValue = batch; - this.DeviceDetailForm.GDStep.MCValue = step; - this.DeviceDetailForm.GDStepCode.MCValue = stepName; - this.DeviceDetailForm.GDTotalTime.MCValue = totalTime; - this.DeviceDetailForm.GDStepTime.MCValue = stepTime; - this.DeviceDetailForm.GDSpeed.MCValue = speed; - break; - case "Gelater4": - this.DeviceDetailForm.GEMode.MCValue = mode; - this.DeviceDetailForm.GEMode.ForeColor = modeColor; - this.DeviceDetailForm.GEStatus.MCValue = status; - this.DeviceDetailForm.GEStatus.ForeColor = statusColor; - this.DeviceDetailForm.GEBatch.MCValue = batch; - this.DeviceDetailForm.GEStep.MCValue = step; - this.DeviceDetailForm.GEStepCode.MCValue = stepName; - this.DeviceDetailForm.GETotalTime.MCValue = totalTime; - this.DeviceDetailForm.GEStepTime.MCValue = stepTime; - this.DeviceDetailForm.GESpeed.MCValue = speed; - break; - case "Gelater5": - this.DeviceDetailForm.GFMode.MCValue = mode; - this.DeviceDetailForm.GFMode.ForeColor = modeColor; - this.DeviceDetailForm.GFStatus.MCValue = status; - this.DeviceDetailForm.GFStatus.ForeColor = statusColor; - this.DeviceDetailForm.GFBatch.MCValue = batch; - this.DeviceDetailForm.GFStep.MCValue = step; - this.DeviceDetailForm.GFStepCode.MCValue = stepName; - this.DeviceDetailForm.GFTotalTime.MCValue = totalTime; - this.DeviceDetailForm.GFStepTime.MCValue = stepTime; - this.DeviceDetailForm.GFSpeed.MCValue = speed; - break; - case "Gelater6": - this.DeviceDetailForm.GGMode.MCValue = mode; - this.DeviceDetailForm.GGMode.ForeColor = modeColor; - this.DeviceDetailForm.GGStatus.MCValue = status; - this.DeviceDetailForm.GGStatus.ForeColor = statusColor; - this.DeviceDetailForm.GGBatch.MCValue = batch; - this.DeviceDetailForm.GGStep.MCValue = step; - this.DeviceDetailForm.GGStepCode.MCValue = stepName; - this.DeviceDetailForm.GGTotalTime.MCValue = totalTime; - this.DeviceDetailForm.GGStepTime.MCValue = stepTime; - this.DeviceDetailForm.GGSpeed.MCValue = speed; - break; - case "Gelater7": - this.DeviceDetailForm.GHMode.MCValue = mode; - this.DeviceDetailForm.GHMode.ForeColor = modeColor; - this.DeviceDetailForm.GHStatus.MCValue = status; - this.DeviceDetailForm.GHStatus.ForeColor = statusColor; - this.DeviceDetailForm.GHBatch.MCValue = batch; - this.DeviceDetailForm.GHStep.MCValue = step; - this.DeviceDetailForm.GHStepCode.MCValue = stepName; - this.DeviceDetailForm.GHTotalTime.MCValue = totalTime; - this.DeviceDetailForm.GHStepTime.MCValue = stepTime; - this.DeviceDetailForm.GHSpeed.MCValue = speed; - break; - default: break; - } - #endregion - } - - - } - - public MCLabel StringToLable(string lableName) - { - return McControllist.Where(t => t.BaseControl.MCKey != null && t.BaseControl.MCKey == lableName).FirstOrDefault().BaseControl as MCLabel; } #endregion - } } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj index 95b5a4d..283c10e 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj @@ -512,6 +512,7 @@ Loading.cs + @@ -574,7 +575,7 @@ Resources.resx - + diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DeviceDetail2Report/DeviceDetail2ReportAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DeviceDetail2Report/DeviceDetail2ReportAction.cs index ec37a1c..99716b9 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DeviceDetail2Report/DeviceDetail2ReportAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DeviceDetail2Report/DeviceDetail2ReportAction.cs @@ -6,12 +6,12 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; -using Mesnac.Action.ChemicalWeighing.Report.DeviceDetail2Report.Entity; using Mesnac.Codd.Session; using Mesnac.Action.ChemicalWeighing.LjMaterial; using System.Data; using Mesnac.Action.ChemicalWeighing; using Mesnac.Controls.Default; +using Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity; namespace Mesnac.Action.ChemicalWeighing.Report.DeviceDetail2Report { @@ -19,7 +19,8 @@ namespace Mesnac.Action.ChemicalWeighing.Report.DeviceDetail2Report { List McControllist; - DeviceDetail2Entity DeviceDetailForm = new DeviceDetail2Entity(); + + DeviceDetailEntity DeviceDetailForm = new DeviceDetailEntity(); private DbMCControl AlarmForm = null; //物料列表控件 Timer timer1; diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DeviceDetail2Report/Entity/DeviceDetail2Entity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DeviceDetail2Report/Entity/DeviceDetail2Entity.cs deleted file mode 100644 index 028e91d..0000000 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DeviceDetail2Report/Entity/DeviceDetail2Entity.cs +++ /dev/null @@ -1,216 +0,0 @@ -using Mesnac.Controls.Base; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Mesnac.Controls.Default; - - -namespace Mesnac.Action.ChemicalWeighing.Report.DeviceDetail2Report.Entity -{ - public class DeviceDetail2Entity - { - public MCLabel DAMode { get; set; } - public MCLabel DAStatus { get; set; } - public MCLabel DABatch { get; set; } - public MCLabel DAStep { get; set; } - public MCLabel DAStepCode { get; set; } - public MCLabel DATotalTime { get; set; } - public MCLabel DAStepTime { get; set; } - public MCLabel DATemperature { get; set; } - public MCLabel DASpeed { get; set; } - public MCLabel DBMode { get; set; } - public MCLabel DBStatus { get; set; } - public MCLabel DBBatch { get; set; } - public MCLabel DBStep { get; set; } - public MCLabel DBStepCode { get; set; } - public MCLabel DBTotalTime { get; set; } - public MCLabel DBStepTime { get; set; } - public MCLabel DBTemperature { get; set; } - public MCLabel DBSpeed { get; set; } - public MCLabel DCMode { get; set; } - public MCLabel DCStatus { get; set; } - public MCLabel DCBatch { get; set; } - public MCLabel DCStep { get; set; } - public MCLabel DCStepCode { get; set; } - public MCLabel DCTotalTime { get; set; } - public MCLabel DCStepTime { get; set; } - public MCLabel DCTemperature { get; set; } - public MCLabel DCSpeed { get; set; } - public MCLabel DDMode { get; set; } - public MCLabel DDStatus { get; set; } - public MCLabel DDBatch { get; set; } - public MCLabel DDStep { get; set; } - public MCLabel DDStepCode { get; set; } - public MCLabel DDTotalTime { get; set; } - public MCLabel DDStepTime { get; set; } - public MCLabel DDTemperature { get; set; } - public MCLabel DDSpeed { get; set; } - - public MCLabel WAMode { get; set; } - public MCLabel WAStatus { get; set; } - public MCLabel WABatch { get; set; } - public MCLabel WAStep { get; set; } - public MCLabel WAStepCode { get; set; } - public MCLabel WATotalTime { get; set; } - public MCLabel WAStepTime { get; set; } - public MCLabel WATemperature { get; set; } - public MCLabel WASpeed { get; set; } - public MCLabel WBMode { get; set; } - public MCLabel WBStatus { get; set; } - public MCLabel WBBatch { get; set; } - public MCLabel WBStep { get; set; } - public MCLabel WBStepCode { get; set; } - public MCLabel WBTotalTime { get; set; } - public MCLabel WBStepTime { get; set; } - public MCLabel WBTemperature { get; set; } - public MCLabel WBSpeed { get; set; } - public MCLabel WCMode { get; set; } - public MCLabel WCStatus { get; set; } - public MCLabel WCBatch { get; set; } - public MCLabel WCStep { get; set; } - public MCLabel WCStepCode { get; set; } - public MCLabel WCTotalTime { get; set; } - public MCLabel WCStepTime { get; set; } - public MCLabel WCTemperature { get; set; } - public MCLabel WCSpeed { get; set; } - public MCLabel WDMode { get; set; } - public MCLabel WDStatus { get; set; } - public MCLabel WDBatch { get; set; } - public MCLabel WDStep { get; set; } - public MCLabel WDStepCode { get; set; } - public MCLabel WDTotalTime { get; set; } - public MCLabel WDStepTime { get; set; } - public MCLabel WDTemperature { get; set; } - public MCLabel WDSpeed { get; set; } - public MCLabel WEMode { get; set; } - public MCLabel WEStatus { get; set; } - public MCLabel WEBatch { get; set; } - public MCLabel WEStep { get; set; } - public MCLabel WEStepCode { get; set; } - public MCLabel WETotalTime { get; set; } - public MCLabel WEStepTime { get; set; } - public MCLabel WETemperature { get; set; } - public MCLabel WESpeed { get; set; } - public MCLabel WFMode { get; set; } - public MCLabel WFStatus { get; set; } - public MCLabel WFBatch { get; set; } - public MCLabel WFStep { get; set; } - public MCLabel WFStepCode { get; set; } - public MCLabel WFTotalTime { get; set; } - public MCLabel WFStepTime { get; set; } - public MCLabel WFTemperature { get; set; } - public MCLabel WFSpeed { get; set; } - public MCLabel WGMode { get; set; } - public MCLabel WGStatus { get; set; } - public MCLabel WGBatch { get; set; } - public MCLabel WGStep { get; set; } - public MCLabel WGStepCode { get; set; } - public MCLabel WGTotalTime { get; set; } - public MCLabel WGStepTime { get; set; } - public MCLabel WGTemperature { get; set; } - public MCLabel WGSpeed { get; set; } - public MCLabel WHMode { get; set; } - public MCLabel WHStatus { get; set; } - public MCLabel WHBatch { get; set; } - public MCLabel WHStep { get; set; } - public MCLabel WHStepCode { get; set; } - public MCLabel WHTotalTime { get; set; } - public MCLabel WHStepTime { get; set; } - public MCLabel WHTemperature { get; set; } - public MCLabel WHSpeed { get; set; } - - public MCLabel WACurrent { get; set; } - public MCLabel WAPressure { get; set; } - public MCLabel WBCurrent { get; set; } - public MCLabel WBPressure { get; set; } - public MCLabel WCCurrent { get; set; } - public MCLabel WCPressure { get; set; } - public MCLabel WDCurrent { get; set; } - public MCLabel WDPressure { get; set; } - public MCLabel WECurrent { get; set; } - public MCLabel WEPressure { get; set; } - public MCLabel WFCurrent { get; set; } - public MCLabel WFPressure { get; set; } - public MCLabel WGCurrent { get; set; } - public MCLabel WGPressure { get; set; } - public MCLabel WHCurrent { get; set; } - public MCLabel WHPressure { get; set; } - - - - public MCLabel GAMode { get; set; } - public MCLabel GAStatus { get; set; } - public MCLabel GABatch { get; set; } - public MCLabel GAStep { get; set; } - public MCLabel GAStepCode { get; set; } - public MCLabel GATotalTime { get; set; } - public MCLabel GAStepTime { get; set; } - public MCLabel GATemperature { get; set; } - public MCLabel GASpeed { get; set; } - public MCLabel GBMode { get; set; } - public MCLabel GBStatus { get; set; } - public MCLabel GBBatch { get; set; } - public MCLabel GBStep { get; set; } - public MCLabel GBStepCode { get; set; } - public MCLabel GBTotalTime { get; set; } - public MCLabel GBStepTime { get; set; } - public MCLabel GBTemperature { get; set; } - public MCLabel GBSpeed { get; set; } - public MCLabel GCMode { get; set; } - public MCLabel GCStatus { get; set; } - public MCLabel GCBatch { get; set; } - public MCLabel GCStep { get; set; } - public MCLabel GCStepCode { get; set; } - public MCLabel GCTotalTime { get; set; } - public MCLabel GCStepTime { get; set; } - public MCLabel GCTemperature { get; set; } - public MCLabel GCSpeed { get; set; } - public MCLabel GDMode { get; set; } - public MCLabel GDStatus { get; set; } - public MCLabel GDBatch { get; set; } - public MCLabel GDStep { get; set; } - public MCLabel GDStepCode { get; set; } - public MCLabel GDTotalTime { get; set; } - public MCLabel GDStepTime { get; set; } - public MCLabel GDTemperature { get; set; } - public MCLabel GDSpeed { get; set; } - public MCLabel GEMode { get; set; } - public MCLabel GEStatus { get; set; } - public MCLabel GEBatch { get; set; } - public MCLabel GEStep { get; set; } - public MCLabel GEStepCode { get; set; } - public MCLabel GETotalTime { get; set; } - public MCLabel GEStepTime { get; set; } - public MCLabel GETemperature { get; set; } - public MCLabel GESpeed { get; set; } - public MCLabel GFMode { get; set; } - public MCLabel GFStatus { get; set; } - public MCLabel GFBatch { get; set; } - public MCLabel GFStep { get; set; } - public MCLabel GFStepCode { get; set; } - public MCLabel GFTotalTime { get; set; } - public MCLabel GFStepTime { get; set; } - public MCLabel GFTemperature { get; set; } - public MCLabel GFSpeed { get; set; } - public MCLabel GGMode { get; set; } - public MCLabel GGStatus { get; set; } - public MCLabel GGBatch { get; set; } - public MCLabel GGStep { get; set; } - public MCLabel GGStepCode { get; set; } - public MCLabel GGTotalTime { get; set; } - public MCLabel GGStepTime { get; set; } - public MCLabel GGTemperature { get; set; } - public MCLabel GGSpeed { get; set; } - public MCLabel GHMode { get; set; } - public MCLabel GHStatus { get; set; } - public MCLabel GHBatch { get; set; } - public MCLabel GHStep { get; set; } - public MCLabel GHStepCode { get; set; } - public MCLabel GHTotalTime { get; set; } - public MCLabel GHStepTime { get; set; } - public MCLabel GHTemperature { get; set; } - public MCLabel GHSpeed { get; set; } - } -} diff --git a/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml b/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml index 79621a7..f77358b 100644 --- a/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml +++ b/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml @@ -156,8 +156,7 @@ 19, 19 - - + Red DarkGray @@ -196,46 +195,6 @@ MCWatchDog 11, 12 - - - - Control - Control - - - False - - - - None - True - True - 8 - DarkGray - 1803, 505 - MCLabel150 - 11, 12 - - - - - Control - Control - - - False - - - - None - True - True - 7 - DarkGray - 1725, 505 - MCLabel151 - 11, 12 - @@ -533,7 +492,7 @@ False - AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJoBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EYXRhR3JpZFZpZXdDb2x1bW5zLCBNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGxdXQMAAAAGX2l0ZW1zBV9zaXplCF92ZXJzaW9uBAAAKk1lc25hYy5Db250cm9scy5CYXNlLkRhdGFHcmlkVmlld0NvbHVtbnNbXQIAAAAICAkDAAAAAgAAAA0AAAAHAwAAAAABAAAABAAAAAQoTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGF0YUdyaWRWaWV3Q29sdW1ucwIAAAAJBAAAAAkFAAAADQIFBAAAAChNZXNuYWMuQ29udHJvbHMuQmFzZS5EYXRhR3JpZFZpZXdDb2x1bW5zAgAAAApfZmlsZWREYXRhDF9kaXNwbGF5TmFtZQEBAgAAAAYGAAAAEEFsYXJtX090aGVyX0luZm8GBwAAAAzmiqXoraborr7lpIcBBQAAAAQAAAAGCAAAAA9BbGFybV9PY2N1clRpbWUGCQAAAAzmiqXorabml7bpl7QL + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJoBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EYXRhR3JpZFZpZXdDb2x1bW5zLCBNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGxdXQMAAAAGX2l0ZW1zBV9zaXplCF92ZXJzaW9uBAAAKk1lc25hYy5Db250cm9scy5CYXNlLkRhdGFHcmlkVmlld0NvbHVtbnNbXQIAAAAICAkDAAAAAgAAABwAAAAHAwAAAAABAAAABAAAAAQoTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGF0YUdyaWRWaWV3Q29sdW1ucwIAAAAJBAAAAAkFAAAADQIFBAAAAChNZXNuYWMuQ29udHJvbHMuQmFzZS5EYXRhR3JpZFZpZXdDb2x1bW5zAgAAAApfZmlsZWREYXRhDF9kaXNwbGF5TmFtZQEBAgAAAAYGAAAAEEFsYXJtX090aGVyX0luZm8GBwAAAAzmiqXoraborr7lpIcBBQAAAAQAAAAGCAAAAA9BbGFybV9PY2N1clRpbWUGCQAAAAzmiqXorabml7bpl7QL AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -1353,7 +1312,7 @@ None True True - D + 4 Transparent ButtonHighlight 56, 267 @@ -1374,7 +1333,7 @@ None True True - C + 3 Transparent ButtonHighlight 56, 207 @@ -1515,7 +1474,7 @@ None True True - A + 1 Transparent ButtonHighlight 56, 87 @@ -1536,7 +1495,7 @@ None True True - B + 2 Transparent ButtonHighlight 56, 147 @@ -3080,7 +3039,7 @@ None True True - H + 8 Transparent ButtonHighlight 56, 297 @@ -3101,7 +3060,7 @@ None True True - G + 7 Transparent ButtonHighlight 56, 267 @@ -3122,7 +3081,7 @@ None True True - E + 5 Transparent ButtonHighlight 56, 207 @@ -3143,7 +3102,7 @@ None True True - F + 6 Transparent ButtonHighlight 56, 237 @@ -3164,7 +3123,7 @@ None True True - D + 4 Transparent ButtonHighlight 56, 177 @@ -3185,7 +3144,7 @@ None True True - C + 3 Transparent ButtonHighlight 56, 147 @@ -3326,7 +3285,7 @@ None True True - A + 1 Transparent ButtonHighlight 56, 87 @@ -3347,7 +3306,7 @@ None True True - B + 2 Transparent ButtonHighlight 56, 117 @@ -3403,6 +3362,48 @@ 611, 334 + + + + Red + DarkGray + + + False + + + + None + True + True + 8 + Transparent + ButtonHighlight + 54, 297 + MCLabel141 + 11, 12 + + + + + Red + DarkGray + + + False + + + + None + True + True + 7 + Transparent + ButtonHighlight + 54, 267 + MCLabel140 + 11, 12 + @@ -3425,6 +3426,27 @@ MCLabel935 11, 12 + + + + Red + DarkGray + + + False + + + + None + True + True + 5 + Transparent + ButtonHighlight + 54, 207 + MCLabel139 + 11, 12 + @@ -3447,6 +3469,27 @@ MCLabel936 11, 12 + + + + Red + DarkGray + + + False + + + + None + True + True + 6 + Transparent + ButtonHighlight + 54, 237 + MCLabel138 + 11, 12 + @@ -3469,6 +3512,27 @@ MCLabel937 11, 12 + + + + Red + DarkGray + + + False + + + + None + True + True + 4 + Transparent + ButtonHighlight + 54, 177 + MCLabel137 + 11, 12 + @@ -3491,6 +3555,27 @@ MCLabel938 11, 12 + + + + Red + DarkGray + + + False + + + + None + True + True + 3 + Transparent + ButtonHighlight + 54, 147 + MCLabel136 + 11, 12 + @@ -3513,6 +3598,27 @@ MCLabel939 11, 12 + + + + Red + DarkGray + + + False + + + + None + True + True + 1 + Transparent + ButtonHighlight + 54, 87 + MCLabel135 + 11, 12 + @@ -3535,6 +3641,27 @@ MCLabel940 11, 12 + + + + Red + DarkGray + + + False + + + + None + True + True + 2 + Transparent + ButtonHighlight + 54, 117 + MCLabel134 + 11, 12 + @@ -5273,132 +5400,6 @@ MCLabel232 53, 12 - - - - Red - DarkGray - - - False - - - - None - True - True - H - Transparent - ButtonHighlight - 56, 297 - MCLabel158 - 11, 12 - - - - - Red - DarkGray - - - False - - - - None - True - True - G - Transparent - ButtonHighlight - 56, 267 - MCLabel159 - 11, 12 - - - - - Red - DarkGray - - - False - - - - None - True - True - E - Transparent - ButtonHighlight - 56, 207 - MCLabel160 - 11, 12 - - - - - Red - DarkGray - - - False - - - - None - True - True - F - Transparent - ButtonHighlight - 56, 237 - MCLabel161 - 11, 12 - - - - - Red - DarkGray - - - False - - - - None - True - True - D - Transparent - ButtonHighlight - 56, 177 - MCLabel190 - 11, 12 - - - - - Red - DarkGray - - - False - - - - None - True - True - C - Transparent - ButtonHighlight - 56, 147 - MCLabel191 - 11, 12 - 79, 48 Line5 @@ -5519,48 +5520,6 @@ Line6 577, 1 - - - - Red - DarkGray - - - False - - - - None - True - True - A - Transparent - ButtonHighlight - 56, 87 - MCLabel226 - 11, 12 - - - - - Red - DarkGray - - - False - - - - None - True - True - B - Transparent - ButtonHighlight - 56, 117 - MCLabel227 - 11, 12 -