public string ReadCoil(string address) { HslCommunication.OperateResult <bool> rst; rst = TCP.ReadCoil(address); if (rst.IsSuccess) { return(rst.Content?"ON":"OFF"); } MsgChannl.SendMsg(rst.Message); return("Exception"); }