FasLowOperate.cs 874 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Threading;
  3. using SHJX.Service.Model.Control;
  4. using SHJX.Service.ServerClient;
  5. using SHJX.Service.Control.PortOperate.Interface;
  6. namespace SHJX.Service.Control.PortOperate
  7. {
  8. public class FasLowOperate : PortOperateImp
  9. {
  10. /// <summary>
  11. /// 硫酸亚铁铵
  12. /// </summary>
  13. /// <param name="client"></param>
  14. public FasLowOperate(OptClient client) : base(client)
  15. {
  16. OpName = "FAS";
  17. }
  18. public override bool LiquidOperation(string pipeName, long quantity)
  19. {
  20. PortArgs switchArg = new()
  21. {
  22. TypeName = OpName,
  23. WriteWay = WriteWay.Normotopia
  24. };
  25. _client.Factory(OpName).Write(switchArg);
  26. Thread.Sleep(1000);
  27. return MotorWrite(quantity); //吸液
  28. }
  29. }
  30. }