| 1234567891011121314151617181920212223242526272829303132 |
- using System;
- using System.Threading;
- using SHJX.Service.Model.Control;
- using SHJX.Service.ServerClient;
- using SHJX.Service.Control.PortOperate.Interface;
- namespace SHJX.Service.Control.PortOperate
- {
- public class FasLowOperate : PortOperateImp
- {
- /// <summary>
- /// 硫酸亚铁铵
- /// </summary>
- /// <param name="client"></param>
- public FasLowOperate(OptClient client) : base(client)
- {
- OpName = "FAS";
- }
- public override bool LiquidOperation(string pipeName, long quantity)
- {
- PortArgs switchArg = new()
- {
- TypeName = OpName,
- WriteWay = WriteWay.Normotopia
- };
- _client.Factory(OpName).Write(switchArg);
- Thread.Sleep(1000);
- return MotorWrite(quantity); //吸液
- }
- }
- }
|