Browse Source

add VPWMain Operation

chenkui 1 day ago
parent
commit
7a1047b4fd
1 changed files with 18 additions and 0 deletions
  1. 18 0
      PunkHPX8_RT/Devices/VpwMain/VpwMainDevice.cs

+ 18 - 0
PunkHPX8_RT/Devices/VpwMain/VpwMainDevice.cs

@@ -165,6 +165,24 @@ namespace PunkHPX8_RT.Devices.VpwMain
             OP.Subscribe($"{Module}.VacuumPumpDisable", (cmd, para) => { return VacuumPumpDisable(); });
             OP.Subscribe($"{Module}.VacuumPumpSpeedEnable", (cmd, para) => { return VacuumSpeedEnable(); });
             OP.Subscribe($"{Module}.VacuumPumpSpeedDisable", (cmd, para) => { return VacuumSpeedDisable(); });
+            OP.Subscribe($"{Module}.VacuumPumpSpeed", (cmd, para) =>{
+                short speed = short.Parse(para[0].ToString());
+                return WriteVacuumSpeed(speed); });
+            OP.Subscribe($"{Module}.DegasPumpEnable", (cmd, para) => { return DegasPumpEnable(); });
+            OP.Subscribe($"{Module}.DegasPumpDisable", (cmd, para) => { return DegasPumpDisable(); });
+            OP.Subscribe($"{Module}.DegasAdjustOn", (cmd, para) => { return DegasAdjustOn(); });
+            OP.Subscribe($"{Module}.DegasAdjustOff", (cmd, para) => { return DegasAdjustOff(); });
+            OP.Subscribe($"{Module}.DiwDegasValveOn", (cmd, para) => { return DiwDegasValveOn(); });
+            OP.Subscribe($"{Module}.DiwDegasValveOff", (cmd, para) => { return DiwDegasValveOff(); });
+            OP.Subscribe($"{Module}.BoosterPumpEnable", (cmd, para) => { return BoosterPumpEnable(); });
+            OP.Subscribe($"{Module}.BoosterPumpDisable", (cmd, para) => { return BoosterPumpDisable(); });
+            OP.Subscribe($"{Module}.BoosterPumpSpeed", (cmd, para) => {
+                short speed = short.Parse(para[0].ToString());
+                return BoosterPumpSpeed(speed);
+            });
+
+            OP.Subscribe($"{Module}.ChamberUp", (cmd, para) => { return ChamberUp(); });
+            OP.Subscribe($"{Module}.ChamberDown", (cmd, para) => { return ChamberDown(); });
         }
         #endregion