|
|
@@ -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;
|