fix 工位模板驱动
This commit is contained in:
@@ -237,6 +237,7 @@ public class LnshLaminatingMachineDeviceDriver extends AbstractOpcDeviceDriver i
|
|||||||
last_task = task;
|
last_task = task;
|
||||||
last_container_type = container_type;
|
last_container_type = container_type;
|
||||||
last_to_command= to_command;
|
last_to_command= to_command;
|
||||||
|
last_barcode = barcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -265,6 +265,7 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
if (!requireSucess && this.move != 0) {
|
if (!requireSucess && this.move != 0) {
|
||||||
putStorage("3");
|
putStorage("3");
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
//半托缓存强制去包装
|
//半托缓存强制去包装
|
||||||
if (!requireSucess && this.move != 0) {
|
if (!requireSucess && this.move != 0) {
|
||||||
@@ -516,7 +517,11 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
if (ObjectUtil.isNotEmpty(result)) {
|
if (ObjectUtil.isNotEmpty(result)) {
|
||||||
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
||||||
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
|
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
|
||||||
this.writing(1);
|
if (this.mode == 6) {
|
||||||
|
this.writing(1);
|
||||||
|
} else {
|
||||||
|
this.writing(this.mode);
|
||||||
|
}
|
||||||
this.setRequireSucess(true);
|
this.setRequireSucess(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -194,10 +194,10 @@ public class DeviceOpcProtocolRunable implements Runnable, DataCallback, ServerC
|
|||||||
if (true) {
|
if (true) {
|
||||||
this.logItemChanged(itemId, accessor_value, value, itemDto);
|
this.logItemChanged(itemId, accessor_value, value, itemDto);
|
||||||
}
|
}
|
||||||
if(!ObjectUtil.isEmpty(value)){
|
// if(!ObjectUtil.isEmpty(value)){
|
||||||
|
// accessor_value.setValue(itemId, value);
|
||||||
|
// }
|
||||||
accessor_value.setValue(itemId, value);
|
accessor_value.setValue(itemId, value);
|
||||||
}
|
|
||||||
//accessor_value.setValue(itemId, value);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ spring:
|
|||||||
freemarker:
|
freemarker:
|
||||||
check-template-location: false
|
check-template-location: false
|
||||||
profiles:
|
profiles:
|
||||||
active: dev
|
active: prod
|
||||||
jackson:
|
jackson:
|
||||||
time-zone: GMT+8
|
time-zone: GMT+8
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ ENV = 'production'
|
|||||||
|
|
||||||
# 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置
|
# 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置
|
||||||
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
|
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
|
||||||
VUE_APP_BASE_API = 'http://127.0.0.1:8010'
|
VUE_APP_BASE_API = 'http://192.168.1.200:8010'
|
||||||
#VUE_APP_BASE_API = 'http://127.0.0.1:8010'
|
#VUE_APP_BASE_API = 'http://127.0.0.1:8010'
|
||||||
# 如果接口是 http 形式, wss 需要改为 ws
|
# 如果接口是 http 形式, wss 需要改为 ws
|
||||||
VUE_APP_WS_API = 'ws://127.0.0.1:8010'
|
VUE_APP_WS_API = 'ws://127.0.0.1:8010'
|
||||||
|
|||||||
Reference in New Issue
Block a user