| | |
| | | try |
| | | { |
| | | var r_dbBlock = this.DBBlockForRead; |
| | | short value = Convert.ToInt16(this.plcService.ReadValuePoint(r_dbBlock.R_HandShake, typeof(short))); |
| | | short value = Convert.ToInt16(this.plcService.ReadValuePoint(r_dbBlock.R_HandShake_FJ, typeof(short))); |
| | | //约定 等待2秒 |
| | | Thread.Sleep(2000); |
| | | short value_next = Convert.ToInt16(this.plcService.ReadValuePoint(r_dbBlock.R_HandShake, typeof(short))); |
| | | short value_next = Convert.ToInt16(this.plcService.ReadValuePoint(r_dbBlock.R_HandShake_FJ, typeof(short))); |
| | | if (value == value_next) |
| | | {//没有心跳 |
| | | return false; |