数字孪生:修改输送机入库时到位信号为到位,出库时为空闲
This commit is contained in:
@@ -101,10 +101,14 @@ public class GetDeviceSsjMap {
|
||||
dto.setAlarmMsg(DictUtils.getDictLabel("ssj_ex", String.valueOf(d.getException())));
|
||||
dto.setKX(String.valueOf(d.getKx()));
|
||||
if (!dto.getTaskNo().equals("0")){
|
||||
if (dto.getKX().equals("0")){
|
||||
dto.setDW("1");
|
||||
if (dto.getRotationDirection().equals("1")){
|
||||
dto.setDW(String.valueOf(d.getDw()));
|
||||
}else {
|
||||
dto.setDW("0");
|
||||
if (dto.getKX().equals("0")){
|
||||
dto.setDW("1");
|
||||
}else {
|
||||
dto.setDW("0");
|
||||
}
|
||||
}
|
||||
}else {
|
||||
dto.setDW("0");
|
||||
|
||||
Reference in New Issue
Block a user