fix:产线接驳台、拆封盖对接位驱动

This commit is contained in:
zhengxuming
2025-08-26 17:38:37 +08:00
parent 1f075344b8
commit 846b33aa7a
4 changed files with 14 additions and 3 deletions

View File

@@ -33,6 +33,8 @@ ItemProtocol {
*/ */
public static String item_to_command = "to_command"; public static String item_to_command = "to_command";
public static String item_to_error = "to_error";
private ProductionLineDockingStationDeviceDriver driver; private ProductionLineDockingStationDeviceDriver driver;
@@ -65,7 +67,9 @@ ItemProtocol {
return getOpcIntegerValue(item_to_command); return getOpcIntegerValue(item_to_command);
} }
public int getTo_error() {
return getOpcIntegerValue(item_to_error);
}
Boolean isonline; Boolean isonline;
@@ -105,6 +109,7 @@ ItemProtocol {
public static List<ItemDto> getWriteableItemDtos() { public static List<ItemDto> getWriteableItemDtos() {
ArrayList<ItemDto> list = new ArrayList<>(); ArrayList<ItemDto> list = new ArrayList<>();
list.add(new ItemDto(item_to_command, "下发命令", "DB2.W0")); list.add(new ItemDto(item_to_command, "下发命令", "DB2.W0"));
list.add(new ItemDto(item_to_error, "下发故障代码", "DB2.W2"));
return list; return list;
} }
} }

View File

@@ -130,6 +130,7 @@ public class ProductionLineDockingStationDeviceDriver extends AbstractOpcDeviceD
.build(); .build();
logDto.setLog_level(2); logDto.setLog_level(2);
luceneExecuteLogService.deviceExecuteLog(logDto); luceneExecuteLogService.deviceExecuteLog(logDto);
requireSucess = false;
} }
if (action != last_action) { if (action != last_action) {

View File

@@ -33,6 +33,7 @@ ItemProtocol {
*/ */
public static String item_to_command = "to_command"; public static String item_to_command = "to_command";
public static String item_to_task = "to_task";
private RemoveSealCoverPositionDriver driver; private RemoveSealCoverPositionDriver driver;
@@ -65,7 +66,9 @@ ItemProtocol {
return getOpcIntegerValue(item_to_command); return getOpcIntegerValue(item_to_command);
} }
public int getTo_task() {
return getOpcIntegerValue(item_to_task);
}
Boolean isonline; Boolean isonline;
@@ -104,7 +107,8 @@ ItemProtocol {
public static List<ItemDto> getWriteableItemDtos() { public static List<ItemDto> getWriteableItemDtos() {
ArrayList<ItemDto> list = new ArrayList<>(); ArrayList<ItemDto> list = new ArrayList<>();
list.add(new ItemDto(item_to_command, "下发命令", "DB2.W0")); list.add(new ItemDto(item_to_command, "下发命令", "DB2.W2"));
list.add(new ItemDto(item_to_task, "下发故障代码", "DB2.W8"));
return list; return list;
} }
} }

View File

@@ -125,6 +125,7 @@ public class RemoveSealCoverPositionDriver extends AbstractOpcDeviceDriver imple
.build(); .build();
logDto.setLog_level(2); logDto.setLog_level(2);
luceneExecuteLogService.deviceExecuteLog(logDto); luceneExecuteLogService.deviceExecuteLog(logDto);
requireSucess = false;
} }
if (action != last_action) { if (action != last_action) {