| | |
| | | break; |
| | | // 写入数据 1号工位 |
| | | case 2: |
| | | write((CrnCommand) task.getData()); |
| | | CrnCommand data = (CrnCommand) task.getData(); |
| | | if (data.getPltType() == null || data.getPltType() == 1) { |
| | | write(data); |
| | | } else if (data.getPltType() == 2) { |
| | | write2(data); |
| | | } |
| | | break; |
| | | // 复位 1号工位 |
| | | case 3: |
| | |
| | | command.setDestinationPosY((short) 0); // 目标库位列 |
| | | command.setDestinationPosZ((short) 0); // 目标库位层 |
| | | write(command); |
| | | break; |
| | | // 写入数据 2号工位 |
| | | case 4: |
| | | write2((CrnCommand) task.getData()); |
| | | break; |
| | | // 复位 2号工位 |
| | | case 6: |
| | |
| | | null // 修改人员 |
| | | ); |
| | | bean.insert(basCrnOpt); |
| | | } catch (Exception ignore) {} |
| | | } catch (Exception ignore) { |
| | | } |
| | | |
| | | if (result != null && result.IsSuccess) { |
| | | Thread.sleep(200); |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | public void requestStop() { |
| | | isRunning = false; |
| | | } |