public VDTC(Protocol protocol , string devicename,string ip, int port, int deviceid) : base(protocol,devicename,ip,port,deviceid) { //this.protocol = protocol; // new System.Threading.Thread(checkModeAndPlannoTask).Start() ; OneMinDataStore = new VD_OneMinDataStore(this); this.OnTCReport += new OnTCReportHandler(VDTC_OnTCReport); this.OnConnectStatusChanged += new ConnectStatusChangeHandler(VDTC_OnConnectStatusChanged); }
//現點速率終止時間 public VDTC(Protocol protocol, string devicename, string ip, int port, int deviceid, byte[] hw_status, byte opmode, byte opstatus, byte comm_state) : base(protocol, devicename, ip, port, deviceid, hw_status,opmode,opstatus,comm_state) { this.m_hw_cycle = 0; this.m_trans_cycle = 1; this.m_trans_mode = 1; OneMinDataStore = new VD_OneMinDataStore(this); this.OnTCReport += new OnTCReportHandler(VDTC_OnTCReport); this.OnConnectStatusChanged += new ConnectStatusChangeHandler(VDTC_OnConnectStatusChanged); }