FasHighOperate.cs 754 B

1234567891011121314151617181920212223242526
  1. using System.Threading;
  2. using SHJX.Service.ServerClient;
  3. using SHJX.Service.Model.Control;
  4. using SHJX.Service.Control.PortOperate.Interface;
  5. namespace SHJX.Service.Control.PortOperate
  6. {
  7. public class FasHighOperate : PortOperateImp
  8. {
  9. public FasHighOperate(OptClient optClient) : base(optClient)
  10. {
  11. OpName = "FAS";
  12. }
  13. public override bool LiquidOperation(string pipeName, long quantity)
  14. {
  15. PortArgs switchArg = new()
  16. {
  17. TypeName = OpName,
  18. WriteWay = WriteWay.Antiposition
  19. };
  20. _client.Factory(OpName).Write(switchArg);
  21. Thread.Sleep(1000);
  22. return MotorWrite(quantity); //吸液
  23. }
  24. }
  25. }