颜色数据取

dep
杨威 6 months ago
parent ad2149e3d9
commit 311936e286

@ -392,6 +392,9 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity
public Jzf AS2PCP01 { get; set; } public Jzf AS2PCP01 { get; set; }
public Jzf AS2PCP02 { get; set; } public Jzf AS2PCP02 { get; set; }
public Jzf AS2PCP03 { get; set; } public Jzf AS2PCP03 { get; set; }
public Jzf AS2PCP04 { get; set; }
public Jzf AS1OIS01 { get; set; } public Jzf AS1OIS01 { get; set; }
public Jzf AS1OIS02 { get; set; } public Jzf AS1OIS02 { get; set; }
public Jzf AS1OIS03 { get; set; } public Jzf AS1OIS03 { get; set; }

@ -599,17 +599,17 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
simple.LanternBackground = Color.Gray; simple.LanternBackground = Color.Gray;
if (main.enable) if (main.enable)
{ {
simple.LanternBackground = Color.Green; simple.LanternBackground = Color.Lime;
} }
if (main.pause) if (main.pause)
{ {
simple.LanternBackground = Color.Yellow; simple.LanternBackground = Color.Gold;
} }
if (main.ready) if (main.ready)
{ {
simple.LanternBackground = Color.Blue; simple.LanternBackground = Color.DodgerBlue;
} }
} }
@ -2061,6 +2061,9 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
ControlsHelper.SetJzf(JzfE.AS2PCP01, PlcReadTemp.AS2PCP01_Set); ControlsHelper.SetJzf(JzfE.AS2PCP01, PlcReadTemp.AS2PCP01_Set);
ControlsHelper.SetJzf(JzfE.AS2PCP02, PlcReadTemp.AS2PCP02_Set); ControlsHelper.SetJzf(JzfE.AS2PCP02, PlcReadTemp.AS2PCP02_Set);
ControlsHelper.SetJzf(JzfE.AS2PCP03, PlcReadTemp.AS2PCP03_Set); ControlsHelper.SetJzf(JzfE.AS2PCP03, PlcReadTemp.AS2PCP03_Set);
ControlsHelper.SetJzf(JzfE.AS2PCP04, PlcConnect.Instance.ReadBool("DB2107.2053.0").Content);
ControlsHelper.SetJzf(JzfE.AS1OIS01, PlcReadTemp.AS1OIS01_Set); ControlsHelper.SetJzf(JzfE.AS1OIS01, PlcReadTemp.AS1OIS01_Set);
ControlsHelper.SetJzf(JzfE.AS1OIS02, PlcReadTemp.AS1OIS02_Set); ControlsHelper.SetJzf(JzfE.AS1OIS02, PlcReadTemp.AS1OIS02_Set);
ControlsHelper.SetJzf(JzfE.AS1OIS03, PlcReadTemp.AS1OIS03_Set); ControlsHelper.SetJzf(JzfE.AS1OIS03, PlcReadTemp.AS1OIS03_Set);

Loading…
Cancel
Save