Sfoglia il codice sorgente

新增点位

reconfiguration
ZhaoGang 2 mesi fa
parent
commit
25b4ddccf4
4 ha cambiato i file con 392 aggiunte e 1026 eliminazioni
  1. +5
    -4
      BPASmartClient.Academy/App.config
  2. +8
    -0
      BPASmartClient.Academy/Model/DeviceCtrl.cs
  3. +12
    -0
      BPASmartClient.Academy/Model/Simens_PLC.cs
  4. +367
    -1022
      BPASmartClient.Academy/View/DeviceMotion_2View.xaml

+ 5
- 4
BPASmartClient.Academy/App.config Vedi File

@@ -8,10 +8,11 @@
<FlexBatchSystem>
<Alarm>
<add key="DB1.DBX2004.0" value="急停"/>
<add key="DB1.DBX2004.1" value="M101电机异常"/>
<add key="DB1.DBX2004.2" value="M102电机异常"/>
<add key="DB1.DBX2004.3" value="M103电机异常"/>
<add key="DB1.DBX2004.4" value="通讯异常"/>
<add key="DB1.DBX2004.1" value="配料罐搅拌异常"/>
<add key="DB1.DBX2004.2" value="反应釜搅拌异常"/>
<add key="DB1.DBX2004.3" value="真空泵异常"/>
<add key="DB1.DBX2004.4" value="一体机柜急停按下"/>
<add key="DB1.DBX2004.5" value="空压机异常"/>
</Alarm>
</FlexBatchSystem>
</configuration>

+ 8
- 0
BPASmartClient.Academy/Model/DeviceCtrl.cs Vedi File

@@ -71,5 +71,13 @@ namespace BPASmartClient.Academy.Model
private float _pressureWeek;
public float OpenValue { get { return _openValue; } set { _openValue = value; OnPropertyChanged(); } }
private float _openValue;

public bool Compressor { get { return _compressor; } set { _compressor = value; OnPropertyChanged(); } }
private bool _compressor = false;

public bool ByPassMaterial { get { return _byPassMaterial; } set { _byPassMaterial = value; OnPropertyChanged(); } }
private bool _byPassMaterial = false;
public bool ByPassReact { get { return _byPassReact; } set { _byPassReact = value; OnPropertyChanged(); } }
private bool _byPassReact = false;
}
}

+ 12
- 0
BPASmartClient.Academy/Model/Simens_PLC.cs Vedi File

@@ -218,6 +218,18 @@ namespace BPASmartClient.Academy.Model
{
deviceCtrl.VX115 = o.Content;
});
siemens.Read<bool>("DB1.DBX2002.3").OnSuccess(o =>
{
deviceCtrl.Compressor = o.Content;
});
siemens.Read<bool>("DB1.DBX2002.4").OnSuccess(o =>
{
deviceCtrl.ByPassMaterial = o.Content;
});
siemens.Read<bool>("DB1.DBX2002.5").OnSuccess(o =>
{
deviceCtrl.ByPassReact = o.Content;
});
siemens.Read<int>("DB1.DBD2022").OnSuccess(o =>
{
deviceCtrl.TempWok = o.Content;


+ 367
- 1022
BPASmartClient.Academy/View/DeviceMotion_2View.xaml
File diff soppresso perché troppo grande
Vedi File


Caricamento…
Annulla
Salva