| 12345678910111213141516171819202122232425262728 | using System;using Houdar.PLC.Driver.Simenss.Protocol.Common;using Houdar.PLC.Driver.Simenss.Protocol.DateTime;namespace Houdar.PLC.Driver.Simenss.ProtocolHandle{    public class GetDateTimeHandle : IPacketHandle    {        public GetDateTimeRequest Request { get; set; }        public GetDateTimeResponse Response { get; set; }        public ResultCode ResultCode { get; set; }        public void Handle(IIsoSender sender)        {            Response = sender.IsoSend<GetDateTimeRequest, GetDateTimeResponse>(Request);            if (Response == null) return;            ResultCode = Response.Params.Err;        }        public GetDateTimeHandle()        {            ResultCode = ResultCode.Unknown;            Request = new GetDateTimeRequest();        }            }}
 |