Esempio n. 1
0
 /// <summary>
 /// 尝试建立连接
 /// </summary>
 /// <returns></returns>
 public bool Open()
 {
     try
     {
         var connect = m_plc.ConnectServer();
         IsConnected = connect.IsSuccess;
         return(IsConnected);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }