| | |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.PreDestroy; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * WCS主流程 |
| | |
| | | |
| | | @Autowired |
| | | private MainServiceImpl mainService; |
| | | @Value("${tmpLincense}") |
| | | private Date tmpLincense; |
| | | // 所属线程 |
| | | private Thread thread; |
| | | // 频率 |
| | |
| | | continue; |
| | | } |
| | | |
| | | if(System.currentTimeMillis() - tmpLincense.getTime() > 1000){ |
| | | continue; |
| | | } |
| | | |
| | | //初始化实时地图 |
| | | mainService.initRealtimeBasMap(); |
| | | |
| | | |
| | | // 入库 ===>> 入库站到堆垛机站,根据条码扫描生成入库工作档 |
| | | mainService.generateInboundWrk(); // 组托 |
| | |
| | | // 解析小车载货移动工作档 |
| | | mainService.analyzeLadenMoveTask(); |
| | | // 出库 ===>> 工作档信息写入led显示器 |
| | | mainService.ledExecute(); |
| | | // mainService.ledExecute(); |
| | | // 其他 ===>> LED显示器复位,显示默认信息 |
| | | mainService.ledReset(); |
| | | // mainService.ledReset(); |
| | | // 穿梭车 ===>> 小车电量检测充电 |
| | | mainService.loopShuttleCharge(); |
| | | // 穿梭车 ===>> 小车电量满电后回待机位 |
| | | mainService.loopShuttleToStandbyCauseCharge(); |
| | | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("fail", e); |
| | | } |
| | | } |
| | | }); |