Quellcode durchsuchen

新增点位

reconfiguration
ZhaoGang vor 2 Monaten
Ursprung
Commit
25b4ddccf4
4 geänderte Dateien mit 392 neuen und 1026 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


Laden…
Abbrechen
Speichern