|  |  |  | 
|---|
|  |  |  | * 入库站,根据条码扫描生成入库工作档,工作状态 1 ==>> 2 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public synchronized void generateStoreWrkFile0(Integer mark) { | 
|---|
|  |  |  | // 根据输送线plc遍历 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "2.5F_Mode")); | 
|---|
|  |  |  | if (Cools.isEmpty(config) || config.getValue().equals("false")) { | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (!config.getValue().equalsIgnoreCase("1")) { | 
|---|
|  |  |  | log.info("模式不对1"); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 获取入库站信息 | 
|---|
|  |  |  | SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 1); | 
|---|
|  |  |  | StaProtocol staProtocol = devpThread.getStation().get(1135); | 
|---|
|  |  |  | 
|---|
|  |  |  | if (wrkMast == null) { | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "2.5F_Mode")); | 
|---|
|  |  |  | if (Cools.isEmpty(config) || config.getValue().equals("false")) { | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (!config.getValue().equalsIgnoreCase("1")) { | 
|---|
|  |  |  | log.info("模式不对1"); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 命令下发区 -------------------------------------------------------------------------- | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 更新站点信息 且 下发plc命令 | 
|---|