| | |
| | | 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.util.ArrayList; |
| | | |
| | | /** |
| | | * WCS主流程 |
| | |
| | | // 所属线程 |
| | | private Thread thread; |
| | | // 频率 |
| | | private int i = 0; |
| | | private int j = 0; |
| | | private int k = 0; |
| | | private int l = 0; |
| | | private int[] autoZ = new int[]{0,0,0,0,0,0,0}; |
| | | |
| | | /** |
| | |
| | | Thread.sleep(200); |
| | | |
| | | // 系统运行状态判断 |
| | | if (SystemProperties.WCS_RUNNING_STATUS.get()) { |
| | | if (!SystemProperties.WCS_RUNNING_STATUS.get()) { |
| | | continue; |
| | | } |
| | | |
| | | //更新位置信息 |
| | | mainService.updateStePositionNearby(); |
| | | //更新位置信息 |
| | | mainService.updateStePosition(); |
| | | // 任务下发 |
| | | mainService.DevpTaskNoRun(); |
| | | // 任务完成 |
| | | mainService.rgvCompleteWrkMastSta(autoZ); |
| | | //更新位置信息 |
| | | mainService.updateStePosition(); |
| | | // 任务取消 |
| | | mainService.rgvCancelWrkMastSta(); |
| | | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |