| | |
| | | |
| | | if (stationManger.StationType == StationTypeEnum.StationType_OnlyOutbound.ObjToInt()) |
| | | { |
| | | commonConveyorLine.Communicator.Write("21", (short)256); |
| | | commonConveyorLine.Communicator.Write("21", new byte[] { 1, 0 }); |
| | | } |
| | | else |
| | | { |
| | | commonConveyorLine.Communicator.Write("23", (short)256); |
| | | commonConveyorLine.Communicator.Write("23", new byte[] { 1, 0 }); |
| | | } |
| | | content.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | if (ex.Message.Contains("æ°æ®åå
¥ï¼å°åï¼ã23ãï¼åå
¥çæ°æ®ï¼ã256ã") || ex.Message.Contains("æ°æ®åå
¥ï¼å°åï¼ã21ãï¼åå
¥çæ°æ®ï¼ã256ã")) |
| | | { |
| | | content.OK(); |
| | | } |
| | | else |
| | | { |
| | | content.Error(ex.Message); |
| | | } |
| | | content.Error(ex.Message); |
| | | } |
| | | return content; |
| | | } |