From 05bd172d550f1b6b963fcb23ef21d79e2a43d757 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期二, 10 六月 2025 13:59:34 +0800
Subject: [PATCH] 更新S7通讯程序
---
hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/s7/entity/S7DataMBExtra.java | 40 ++++++++++++++++++++--------------------
1 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/s7/entity/S7DataMBExtra.java b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/s7/entity/S7DataMBExtra.java
index 20fa93c..d76ea7b 100644
--- a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/s7/entity/S7DataMBExtra.java
+++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/s7/entity/S7DataMBExtra.java
@@ -19,40 +19,40 @@
public class S7DataMBExtra {
- @S7Variable(address = "DB49.0", type = EDataType.INT16)
- private Short requestOne;
+ @S7Variable(address = "DB49.0", type = EDataType.UINT16)
+ private Integer requestOne;
- @S7Variable(address = "DB49.46", type = EDataType.INT16)
- private Short widthOne;
+ @S7Variable(address = "DB49.46", type = EDataType.UINT16)
+ private Integer widthOne;
- @S7Variable(address = "DB49.48", type = EDataType.INT16)
- private Short heightOne;
+ @S7Variable(address = "DB49.48", type = EDataType.UINT16)
+ private Integer heightOne;
- @S7Variable(address = "DB49.50", type = EDataType.INT16)
- private Short thicknessOne;
+ @S7Variable(address = "DB49.50", type = EDataType.UINT16)
+ private Integer thicknessOne;
- @S7Variable(address = "DB49.52", type = EDataType.INT16)
- private Short requestTwo;
+ @S7Variable(address = "DB49.52", type = EDataType.UINT16)
+ private Integer requestTwo;
- @S7Variable(address = "DB49.98", type = EDataType.INT16)
- private Short widthTwo;
+ @S7Variable(address = "DB49.98", type = EDataType.UINT16)
+ private Integer widthTwo;
- @S7Variable(address = "DB49.100", type = EDataType.INT16)
- private Short heightTwo;
+ @S7Variable(address = "DB49.100", type = EDataType.UINT16)
+ private Integer heightTwo;
- @S7Variable(address = "DB49.102", type = EDataType.INT16)
- private Short thicknessTwo;
+ @S7Variable(address = "DB49.102", type = EDataType.UINT16)
+ private Integer thicknessTwo;
- @S7Variable(address = "DB49.2", type = EDataType.STRING, count = 22)
+ @S7Variable(address = "DB49.2", type = EDataType.STRING, count = 20)
private String plcGlassIdOne;
- @S7Variable(address = "DB49.24", type = EDataType.STRING, count = 22)
+ @S7Variable(address = "DB49.24", type = EDataType.STRING, count = 20)
private String mesGlassIdOne;
- @S7Variable(address = "DB49.54", type = EDataType.STRING, count = 22)
+ @S7Variable(address = "DB49.54", type = EDataType.STRING, count = 20)
private String plcGlassIdTwo;
- @S7Variable(address = "DB49.76", type = EDataType.STRING, count = 22)
+ @S7Variable(address = "DB49.76", type = EDataType.STRING, count = 20)
private String mesglassIdTwo;
}
--
Gitblit v1.8.0