| | |
| | | package com.zy.asrs.controller; |
| | | |
| | | import HslCommunication.Core.Types.OperateResultExOne; |
| | | import HslCommunication.Profinet.Siemens.SiemensS7Net; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.R; |
| | |
| | | @Autowired |
| | | private BasDevpService basDevpService; |
| | | |
| | | |
| | | @GetMapping("/io/mode/info/site") |
| | | @ManagerAuth(memo = "入出库模式") |
| | | public R ioMode(){ |
| | |
| | | vo.setDevNo(devp.getDevNo()); // 站点编号 |
| | | list.add(vo); |
| | | StaProtocol staProtocol = station.get(devp.getDevNo()); |
| | | if (null == staProtocol) { continue; } |
| | | if (null == staProtocol) { |
| | | continue; |
| | | } |
| | | vo.setWorkNo(staProtocol.getWorkNo()); // 工作号 |
| | | vo.setAutoing(staProtocol.isAutoing()?"Y":"N"); // 自动 |
| | | vo.setLoading(staProtocol.isLoading()?"Y":"N"); // 有物 |
| | |
| | | |
| | | /** |
| | | * 母托盘出库 |
| | | * |
| | | * @return |
| | | */ |
| | | @PostMapping("/motherPallet") |
| | | public R motherPalletOut(){ |
| | | SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 1); |
| | | StaProtocol staProtocol = devpThread.getStation().get(12); |
| | | if (staProtocol.getAllowEmptyOut().equals("1")) { |
| | | boolean result = MessageQueue.offer(SlaveType.Devp, 1, new Task(3, null)); |
| | | return R.ok("母托盘出库成功"); |
| | | } else { |
| | | return R.error("母托盘出库失败,12站无空托盘或13站有物"); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |