Ejemplo n.º 1
0
        private ModbusTcpHandler doosanHandle;  // ModbusTCP 핸들
        #endregion

        #region Constructor
        public InterfaceDoosan(CommInfo commInfo)
        {
            base.division  = "IO";
            base.commInfo  = commInfo;
            base.isConnect = false;
            base.SEND_DATA = new Dictionary <object, object>();
            //base.sendData = new Dictionary<string, object>();
            //base.receiveData = new Dictionary<string, object>();

            doosanHandle = new ModbusTcpHandler();
        }
Ejemplo n.º 2
0
        private ModbusTcpHandler sollaeHandle;  // ModbusTCP 핸들
        #endregion

        #region Constructor
        public InterfaceSollae(CommInfo commInfo)
        {
            try
            {
                TcpInfo tcpInfo = new TcpInfo(commInfo.machineIp, commInfo.machinePort);

                base.division  = "IO";
                base.commInfo  = commInfo;
                base.isConnect = false;
                //base.sendData = new Dictionary<string, object>();
                //base.receiveData = new Dictionary<string, object>();

                sollaeHandle = new ModbusTcpHandler(tcpInfo);
            }
            catch (Exception ex)
            {
                LogHandler.WriteLog(base.division, string.Format("{0} :: Constructor Exception :: Message = {1}", this.ToString(), ex.Message));
            }
        }