| 12345678910111213141516171819202122232425262728 | using System;using Houdar.PLC.Driver.Simenss.Protocol.Common;using Houdar.PLC.Driver.Simenss.Protocol.Control;using Houdar.PLC.Driver.Simenss.Protocol.DateTime;namespace Houdar.PLC.Driver.Simenss.ProtocolHandle{    public class PlcColdStartHandle:IPacketHandle    {        public PlcColdStartRequest Request { get; set; }        public ControlResponse Response { get; set; }        public ResultCode ResultCode { get; set; }        public PlcColdStartHandle()        {            ResultCode = ResultCode.Unknown;            Request = new PlcColdStartRequest();        }        public void Handle(IIsoSender sender)        {            Response = sender.IsoSend<PlcColdStartRequest, ControlResponse>(Request);            if(Response==null) return;            ResultCode = Response.Header.Error;        }    }}
 |