| | |
| | | import com.zy.asrs.wcs.core.utils.ConveyorDispatcher; |
| | | import com.zy.asrs.wcs.rcs.cache.SlaveConnection; |
| | | import com.zy.asrs.wcs.rcs.model.enums.SlaveType; |
| | | import com.zy.asrs.wcs.rcs.model.protocol.StaProtocol; |
| | | import com.zy.asrs.wcs.rcs.thread.DevpThread; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | case CONVEYOR_INBOUND_TO_LIFT://输送线入库至提升机 |
| | | break; |
| | | case CONVEYOR_OUTBOUND://输送线出库 |
| | | StaProtocol staProtocol = devpThread.getStation().get(Integer.parseInt(motion.getOrigin())); |
| | | if (!(staProtocol.isAutoing() && staProtocol.isLoading())) { |
| | | return false; |
| | | } |
| | | |
| | | boolean result = devpThread.writeWorkSta(Integer.parseInt(motion.getOrigin()), motion.getTaskNo().shortValue(), Short.parseShort(motion.getTarget())); |
| | | if (!result) { |
| | | return false; |