/// <summary> /// 读取夹具位置 /// </summary> /// <param name="siemensTcpNet"></param> /// <returns></returns> public static int ReadComplete(SiemensS7Net_New siemensTcpNet) { InitDbRun(); Thread.Sleep(500); if (siemensTcpNet.ReadInt32(dbRun["执行完成"]).Content == 1 || siemensTcpNet.ReadInt32(dbRun["执行完成"]).Content == 3) { WriteResetCommand(siemensTcpNet);//复位 } return(siemensTcpNet.ReadInt32(dbRun["执行完成"]).Content); }
/// <summary> /// 读取夹具位置 /// </summary> /// <param name="siemensTcpNet"></param> /// <returns></returns> public int ReadComplete(SiemensS7Net_New siemensTcpNet) { //InitDbRun(); Thread.Sleep(500); if (siemensTcpNet.ReadInt32(dbRun["执行完成"]).Content == 1 && siemensTcpNet.ReadInt32(dbRun["执行完成"]).Content == 3) { LogNet.WriteInfo("执行完成"); WriteResetCommand(siemensTcpNet);//复位 } return(siemensTcpNet.ReadInt32(dbRun["执行完成"]).Content); }
/// <summary> /// 读取写入的运行指令 /// </summary> /// <param name="siemensTcpNet"></param> /// <returns></returns> public static int ReadWrRun(SiemensS7Net_New siemensTcpNet) { InitDbRun(); return(siemensTcpNet.ReadInt32(dbRun["运行指令"]).Content); }
/// <summary> /// 读取夹具位置 /// </summary> /// <param name="siemensTcpNet"></param> /// <returns></returns> public static int ReadClamp(SiemensS7Net_New siemensTcpNet) { InitDbRun(); return(siemensTcpNet.ReadInt32(dbRun["夹具开闭"]).Content); }