Example #1
0
        public bool getDeviceData()
        {
            //WatchCommTimer.Enabled = true;
            Status = Constant.DeviceNoConnection;

            if (DTPLCcmd != null)
            {
                if (SocManager.ConnectMachine())
                {
                    Status = Constant.DeviceConnected;
                    //开始设置数据先读取D区域吧
                    return(true);
                }
            }

            return(false);
        }
Example #2
0
 //写m寄存器支持多个使用
 private bool SetMultipleMArea(int Addr, int count, int[] value, string Area)
 {
     return(SocManager.SetMultipleMArea(Addr, count, value, Area));
 }