| | |
| | | int statusValue = 0; |
| | | int portStatus = conveyorLine.Communicator.Read<ushort>(deviceProDTO.DeviceProAddress); |
| | | int StationStatus = conveyorLine.Communicator.Read<ushort>(StationNumProDTO.DeviceProAddress); |
| | | |
| | | //æè´§ï¼å¯è¿ä¿¡å· |
| | | statusValue = ((portStatus == 1 && StationStatus == 1) || (portStatus == 2 && StationStatus == 0)) ? 1 : (portStatus == 0) ? 0 : 0; |
| | | WriteLog.Write_Log("AGVåé¦ä¿¡å·ä¿¡æ¯", "AGVåé¦ä¿¡å·ä¿¡æ¯", $"æ¯å¦å
许è¿å
¥å°åï¼ã{deviceProDTO.DeviceProAddress}ãï¼è¯»åæ°æ®ï¼ã{portStatus}ã\n" + |
| | | $"æ¯å¦æè´§å°åï¼ã{StationNumProDTO.DeviceProAddress}ãï¼è¯»åæ°æ®ï¼ã{StationStatus}ã\n" + |
| | | $"æè´§å¯è¿å
¥ä¿¡å·ï¼ã{statusValue}ã"); |
| | | |
| | | if (statusValue == 1) |
| | | { |
| | | return apiResponse.SuccessResponse(); |