张田野 пре 1 недеља
родитељ
комит
444a24810f
2 измењених фајлова са 14 додато и 18 уклоњено
  1. 3 3
      src/com/mes/ui/PlcUtil.java
  2. 11 15
      点位说明

+ 3 - 3
src/com/mes/ui/PlcUtil.java

@@ -10,7 +10,7 @@ import java.util.ArrayList;
 public class PlcUtil {
 
     public static void getParamDyDl(S7PLC s7PLC){
-        Boolean starta = s7PLC.readBoolean("DB1.2.2"); //A启动中
+        Boolean starta = s7PLC.readBoolean("DB1.4.7"); //A启动中
 //        Boolean startb = s7PLC.readBoolean("DB1.2.3"); //B启动中
 
         String oprno = MesClient.mes_gw+"A";
@@ -97,7 +97,7 @@ public class PlcUtil {
     // 获取A启动状态
     public static Boolean getAStart(S7PLC s7PLC){
         try{
-            return s7PLC.readBoolean("DB1.2.2");
+            return s7PLC.readBoolean("DB1.4.7"); //A启动中
         }catch (Exception e){
             e.printStackTrace();
             return false;
@@ -107,7 +107,7 @@ public class PlcUtil {
     // 获取A的结束状态
     public static Boolean getAFinish(S7PLC s7PLC){
         try{
-            boolean a = s7PLC.readBoolean("DB1.2.5");
+            boolean a = s7PLC.readBoolean("DB1.5.1"); //A焊接完成
 //            boolean b = s7PLC.readBoolean("DB1.2.6"); // B面相关,OP050仅A面不用
 //            return a || b;
             return a;

+ 11 - 15
点位说明

@@ -1,17 +1,13 @@
 IP 192.168.7.100
-DB1.2.0 A面
-DB1.2.2 启动中
-DB1.2.5 焊接完成
-DB9.23.7 mes启动
 
-DB1010.2  4字节 电压1
-DB1010.8  4字节 电流1
-DB1010.14  4字节 送丝速度1
-DB1010.18  2字节 错误代码1
-DB1010.20  2字节 JOB号1
-
-DB1010.26  4字节 电压2
-DB1010.34  4字节 电流2
-DB1010.42  4字节 送丝速度2
-DB1010.46  2字节 错误代码2
-DB1010.48  2字节 JOB号2
+I' DB1.4.7'|ReadBool|A启动中|
+I' DB1.5.1'|ReadBool|A焊接完成|
+I' DB9.23.7'|**写**Bool|MES允许启动
+I' DB1010.2'|Float |A 电压|
+I' DB1010.8'|Float |A 电流|
+I' DB1010.14'|Float |A 送丝|
+I' DB1010.20'|Int16 |AJob|
+I' DB1010.26'|Float |B 电压|
+I' DB1010.34'|Float |B 电流|
+I' DB1010.42'|Float |B 送丝|
+I' DB1010.48'|Int16 |BJob|