| 12345678910111213141516171819202122232425262728293031323334 |
-
- using System;
- using SHJX.Service.Common.ReadXML;
- using SHJX.Service.Model.Control;
- using SHJX.Service.ServerClient.Interface;
- using SHJX.Service.ServerClient.TempController;
- using SHJX.Service.Common.Logging;
- using Microsoft.Extensions.Logging;
- namespace SHJX.Service.ServerClient.RS485Control
- {
- public class LiquidStirPort : SerialPortImp, PortControlImp
- {
- private static readonly ILogger logger = LogFactory.BuildLogger(typeof(MotorYPort));
- public LiquidStirPort(ReadConfigUtil config) : base( config)
- {
- }
- public object Read(PortArgs args)
- {
- throw new NotImplementedException();
- }
- public bool Write(PortArgs args)
- {
- var way = args.WriteWay switch
- {
- WriteWay.Start => "L",
- WriteWay.Stop => "H",
- _ => throw new ArgumentNullException()
- };
- return MotorStorage(args.NodeId, 2, way);
- }
- }
- }
|