public bool getDeviceData() { //WatchCommTimer.Enabled = true; Status = Constant.DeviceNoConnection; if (DTPLCcmd != null) { if (SocManager.ConnectMachine()) { Status = Constant.DeviceConnected; //开始设置数据先读取D区域吧 return(true); } } return(false); }
//写m寄存器支持多个使用 private bool SetMultipleMArea(int Addr, int count, int[] value, string Area) { return(SocManager.SetMultipleMArea(Addr, count, value, Area)); }