|
@@ -45,8 +45,8 @@ public class ModbusUtil {
|
|
|
MesClient.param2.setText(cur+"");
|
|
MesClient.param2.setText(cur+"");
|
|
|
System.out.println("cur:"+cur);
|
|
System.out.println("cur:"+cur);
|
|
|
|
|
|
|
|
- if(MesClient.sortA == 21){
|
|
|
|
|
- plc.writeInt16(1070,(short) 3000);
|
|
|
|
|
|
|
+ if(MesClient.sortA == 4){
|
|
|
|
|
+ plc.writeInt16(1070,(short) 2000);
|
|
|
plc.writeInt16(1071,(short) 5000);
|
|
plc.writeInt16(1071,(short) 5000);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -93,10 +93,10 @@ public class ModbusUtil {
|
|
|
String smax = (float)plc.readInt16(1071)/1000+"";
|
|
String smax = (float)plc.readInt16(1071)/1000+"";
|
|
|
|
|
|
|
|
if(MesClient.sortB == 18){
|
|
if(MesClient.sortB == 18){
|
|
|
- if(MesClient.bMax == 22){
|
|
|
|
|
- plc.writeInt16(1070,(short) 4000);
|
|
|
|
|
- plc.writeInt16(1071,(short) 5500);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if(MesClient.bMax == 36){
|
|
|
|
|
+// plc.writeInt16(1070,(short) 4000);
|
|
|
|
|
+// plc.writeInt16(1071,(short) 5500);
|
|
|
|
|
+// }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|