|
|
@ -25,6 +25,8 @@ import org.springframework.security.crypto.password.PasswordEncoder; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.math.RoundingMode; |
|
|
|
import java.text.DecimalFormat; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
@Service |
|
|
@ -415,21 +417,21 @@ public class HandServiceImpl implements HandService { |
|
|
|
//Device device = deviceAppService.findDeviceByCode("PB01");
|
|
|
|
//HailiangFlatDeviceDriver hailiangFlatDeviceDriver;
|
|
|
|
//if (device.getDeviceDriver() instanceof HailiangFlatDeviceDriver){
|
|
|
|
// hailiangFlatDeviceDriver = (HailiangFlatDeviceDriver) device.getDeviceDriver();
|
|
|
|
if (type.equals("1")){ |
|
|
|
hailiangFlatDeviceDriver.writing(name,value); |
|
|
|
}else if (type.equals("2")){ |
|
|
|
int realValue = hailiangFlatDeviceDriver.getItemProtocol().getOpcIntegerValue(name); |
|
|
|
if (realValue == 0){ |
|
|
|
realValue = 1; |
|
|
|
} else if (realValue == 1){ |
|
|
|
realValue = 0; |
|
|
|
} |
|
|
|
hailiangFlatDeviceDriver.writing(name,String.valueOf(realValue)); |
|
|
|
} else { |
|
|
|
hailiangFlatDeviceDriver.writing(name,value); |
|
|
|
// hailiangFlatDeviceDriver = (HailiangFlatDeviceDriver) device.getDeviceDriver();
|
|
|
|
if (type.equals("1")) { |
|
|
|
hailiangFlatDeviceDriver.writing(name, value); |
|
|
|
} else if (type.equals("2")) { |
|
|
|
int realValue = hailiangFlatDeviceDriver.getItemProtocol().getOpcIntegerValue(name); |
|
|
|
if (realValue == 0) { |
|
|
|
realValue = 1; |
|
|
|
} else if (realValue == 1) { |
|
|
|
realValue = 0; |
|
|
|
} |
|
|
|
// }
|
|
|
|
hailiangFlatDeviceDriver.writing(name, String.valueOf(realValue)); |
|
|
|
} else { |
|
|
|
hailiangFlatDeviceDriver.writing(name, value); |
|
|
|
} |
|
|
|
// }
|
|
|
|
// 返回
|
|
|
|
resultJSON.put("code", "1"); |
|
|
|
resultJSON.put("desc", "下发成功"); |
|
|
@ -441,165 +443,175 @@ public class HandServiceImpl implements HandService { |
|
|
|
HailiangFlatDeviceDriver hailiangFlatDeviceDriver = deviceAppService.findDeviceDriver(HailiangFlatDeviceDriver.class).get(0); |
|
|
|
//Device device = deviceAppService.findDeviceByCode("PB01");
|
|
|
|
JSONObject resp = new JSONObject(); |
|
|
|
DecimalFormat hisFormat = new DecimalFormat("########.##"); |
|
|
|
hisFormat.setRoundingMode(RoundingMode.DOWN); |
|
|
|
//HailiangFlatDeviceDriver hailiangFlatDeviceDriver;
|
|
|
|
//if (device.getDeviceDriver() instanceof HailiangFlatDeviceDriver){
|
|
|
|
// hailiangFlatDeviceDriver = (HailiangFlatDeviceDriver) device.getDeviceDriver();
|
|
|
|
int is_auto = hailiangFlatDeviceDriver.getIs_auto(); |
|
|
|
int is_running = hailiangFlatDeviceDriver.getIs_running(); |
|
|
|
int mode = hailiangFlatDeviceDriver.getMode(); |
|
|
|
int a_pressure = hailiangFlatDeviceDriver.getA_pressure(); |
|
|
|
int b_pressure = hailiangFlatDeviceDriver.getB_pressure(); |
|
|
|
int outer_diameter = hailiangFlatDeviceDriver.getOuter_diameter(); |
|
|
|
int length = hailiangFlatDeviceDriver.getLength(); |
|
|
|
int wall_thickness = hailiangFlatDeviceDriver.getWall_thickness(); |
|
|
|
int color = hailiangFlatDeviceDriver.getColor(); |
|
|
|
int jackup_num = hailiangFlatDeviceDriver.getJackup_num(); |
|
|
|
int strap_number = hailiangFlatDeviceDriver.getStrap_number(); |
|
|
|
int start = hailiangFlatDeviceDriver.getStart(); |
|
|
|
int stop = hailiangFlatDeviceDriver.getStop(); |
|
|
|
int main_convey1 = hailiangFlatDeviceDriver.getMain_convey1(); |
|
|
|
int main_convey1_seat1 = hailiangFlatDeviceDriver.getMain_convey1_seat1(); |
|
|
|
int main_convey1_seat2 = hailiangFlatDeviceDriver.getMain_convey1_seat2(); |
|
|
|
int ink_jet = hailiangFlatDeviceDriver.getInk_jet(); |
|
|
|
int ink_jet_seat1 = hailiangFlatDeviceDriver.getInk_jet_seat1(); |
|
|
|
int ink_jet_seat2 = hailiangFlatDeviceDriver.getInk_jet_seat2(); |
|
|
|
int ink_jet_seat3 = hailiangFlatDeviceDriver.getInk_jet_seat3(); |
|
|
|
int main_convey2 = hailiangFlatDeviceDriver.getMain_convey2(); |
|
|
|
int main_convey2_seat1 = hailiangFlatDeviceDriver.getMain_convey2_seat1(); |
|
|
|
int main_convey3_has_pass = hailiangFlatDeviceDriver.getMain_convey3_has_pass(); |
|
|
|
int main_convey3_has_noPass = hailiangFlatDeviceDriver.getMain_convey3_has_noPass(); |
|
|
|
int main_convey3_seat1 = hailiangFlatDeviceDriver.getMain_convey3_seat1(); |
|
|
|
int main_convey3_seat2 = hailiangFlatDeviceDriver.getMain_convey3_seat2(); |
|
|
|
int cowl_a_cache = hailiangFlatDeviceDriver.getCowl_a_cache(); |
|
|
|
int cowl_a_cache_seat1 = hailiangFlatDeviceDriver.getCowl_a_cache_seat1(); |
|
|
|
int cowl_a_cache_seat2 = hailiangFlatDeviceDriver.getCowl_a_cache_seat2(); |
|
|
|
int cowl_a_cowl = hailiangFlatDeviceDriver.getCowl_a_cowl(); |
|
|
|
int cowl_a_cowl_seat1 = hailiangFlatDeviceDriver.getCowl_a_cowl_seat1(); |
|
|
|
int cowl_a_cowl_seat2 = hailiangFlatDeviceDriver.getCowl_a_cowl_seat2(); |
|
|
|
int cowl_a_cowl_pass = hailiangFlatDeviceDriver.getCowl_a_cowl_pass(); |
|
|
|
int reverse_convey = hailiangFlatDeviceDriver.getReverse_convey(); |
|
|
|
int reverse_convey_seat1 = hailiangFlatDeviceDriver.getReverse_convey_seat1(); |
|
|
|
int reverse_convey_seat2 = hailiangFlatDeviceDriver.getReverse_convey_seat2(); |
|
|
|
int reverse_convey_seat3 = hailiangFlatDeviceDriver.getReverse_convey_seat3(); |
|
|
|
int reverse_convey_pass = hailiangFlatDeviceDriver.getReverse_convey_pass(); |
|
|
|
int cowl_b_cache = hailiangFlatDeviceDriver.getCowl_b_cache(); |
|
|
|
int cowl_b_cache_seat1 = hailiangFlatDeviceDriver.getCowl_b_cache_seat1(); |
|
|
|
int cowl_b_cache_seat2 = hailiangFlatDeviceDriver.getCowl_b_cache_seat2(); |
|
|
|
int cowl_b_cache_pass = hailiangFlatDeviceDriver.getCowl_b_cache_pass(); |
|
|
|
int cowl_b_cowl = hailiangFlatDeviceDriver.getCowl_b_cowl(); |
|
|
|
int cowl_b_cowl_seat1 = hailiangFlatDeviceDriver.getCowl_b_cowl_seat1(); |
|
|
|
int cowl_b_cowl_seat2 = hailiangFlatDeviceDriver.getCowl_b_cowl_seat2(); |
|
|
|
int cowl_b_cowl_aPass = hailiangFlatDeviceDriver.getCowl_b_cowl_aPass(); |
|
|
|
int cowl_b_cowl_bPass = hailiangFlatDeviceDriver.getCowl_b_cowl_bPass(); |
|
|
|
int no_pass_convey_cache_num = hailiangFlatDeviceDriver.getNo_pass_convey_cache_num(); |
|
|
|
int wrap_ago = hailiangFlatDeviceDriver.getWrap_ago(); |
|
|
|
int wrap_ago_seat1 = hailiangFlatDeviceDriver.getWrap_ago_seat1(); |
|
|
|
int wrap_ago_seat2 = hailiangFlatDeviceDriver.getWrap_ago_seat2(); |
|
|
|
int wrap_after = hailiangFlatDeviceDriver.getWrap_after(); |
|
|
|
int wrap_after_seat1 = hailiangFlatDeviceDriver.getWrap_after_seat1(); |
|
|
|
int wrap_after_seat2 = hailiangFlatDeviceDriver.getWrap_after_seat2(); |
|
|
|
int strapping_current_step = hailiangFlatDeviceDriver.getStrapping_current_step(); |
|
|
|
int strapping_seat1 = hailiangFlatDeviceDriver.getStrapping_seat1(); |
|
|
|
int strapping_seat2 = hailiangFlatDeviceDriver.getStrapping_seat2(); |
|
|
|
int strapping_seat3 = hailiangFlatDeviceDriver.getStrapping_seat3(); |
|
|
|
int strapping_seat4 = hailiangFlatDeviceDriver.getStrapping_seat4(); |
|
|
|
int strapping_seat5 = hailiangFlatDeviceDriver.getStrapping_seat5(); |
|
|
|
int strapping_seat6 = hailiangFlatDeviceDriver.getStrapping_seat6(); |
|
|
|
int strapping_seat7 = hailiangFlatDeviceDriver.getStrapping_seat7(); |
|
|
|
int strapping_seat8 = hailiangFlatDeviceDriver.getStrapping_seat8(); |
|
|
|
int strapping_seat9 = hailiangFlatDeviceDriver.getStrapping_seat9(); |
|
|
|
int strapping_seat10 = hailiangFlatDeviceDriver.getStrapping_seat10(); |
|
|
|
int strapping_seat11 = hailiangFlatDeviceDriver.getStrapping_seat11(); |
|
|
|
int strapping_seat12 = hailiangFlatDeviceDriver.getStrapping_seat12(); |
|
|
|
int a_error1_clear = hailiangFlatDeviceDriver.getA_error1_clear(); |
|
|
|
int b_error1_clear = hailiangFlatDeviceDriver.getB_error1_clear(); |
|
|
|
int a_error2_clear = hailiangFlatDeviceDriver.getA_error2_clear(); |
|
|
|
int b_error2_clear = hailiangFlatDeviceDriver.getB_error2_clear(); |
|
|
|
int wrap_control = hailiangFlatDeviceDriver.getWrap_control(); |
|
|
|
int strapping_finish = hailiangFlatDeviceDriver.getStrapping_finish(); |
|
|
|
int error_clear = hailiangFlatDeviceDriver.getError_clear(); |
|
|
|
resp.put("code","1"); |
|
|
|
resp.put("desc","查询成功"); |
|
|
|
JSONObject result = new JSONObject(); |
|
|
|
result.put("is_auto",is_auto); |
|
|
|
result.put("is_running",is_running); |
|
|
|
result.put("mode",mode); |
|
|
|
result.put("a_pressure",a_pressure); |
|
|
|
result.put("b_pressure",b_pressure); |
|
|
|
result.put("outer_diameter",outer_diameter); |
|
|
|
result.put("length",length); |
|
|
|
result.put("wall_thickness",wall_thickness); |
|
|
|
result.put("color",color); |
|
|
|
result.put("jackup_num",jackup_num); |
|
|
|
result.put("strap_number",strap_number); |
|
|
|
result.put("start",start); |
|
|
|
result.put("stop",stop); |
|
|
|
result.put("main_convey1",main_convey1); |
|
|
|
result.put("main_convey1_seat1",main_convey1_seat1); |
|
|
|
result.put("main_convey1_seat2",main_convey1_seat2); |
|
|
|
result.put("ink_jet",ink_jet); |
|
|
|
result.put("ink_jet_seat1",ink_jet_seat1); |
|
|
|
result.put("ink_jet_seat2",ink_jet_seat2); |
|
|
|
result.put("ink_jet_seat3",ink_jet_seat3); |
|
|
|
result.put("main_convey2",main_convey2); |
|
|
|
result.put("main_convey2_seat1",main_convey2_seat1); |
|
|
|
result.put("main_convey3_has_pass",main_convey3_has_pass); |
|
|
|
result.put("main_convey3_has_noPass",main_convey3_has_noPass); |
|
|
|
result.put("main_convey3_seat1",main_convey3_seat1); |
|
|
|
result.put("main_convey3_seat2",main_convey3_seat2); |
|
|
|
result.put("cowl_a_cache",cowl_a_cache); |
|
|
|
result.put("cowl_a_cache_seat1",cowl_a_cache_seat1); |
|
|
|
result.put("cowl_a_cache_seat2",cowl_a_cache_seat2); |
|
|
|
result.put("cowl_a_cowl",cowl_a_cowl); |
|
|
|
result.put("cowl_a_cowl_seat1",cowl_a_cowl_seat1); |
|
|
|
result.put("cowl_a_cowl_seat2",cowl_a_cowl_seat2); |
|
|
|
result.put("cowl_a_cowl_pass",cowl_a_cowl_pass); |
|
|
|
result.put("reverse_convey",reverse_convey); |
|
|
|
result.put("reverse_convey_seat1",reverse_convey_seat1); |
|
|
|
result.put("reverse_convey_seat2",reverse_convey_seat2); |
|
|
|
result.put("reverse_convey_seat3",reverse_convey_seat3); |
|
|
|
result.put("reverse_convey_pass",reverse_convey_pass); |
|
|
|
result.put("cowl_b_cache",cowl_b_cache); |
|
|
|
result.put("cowl_b_cache_seat1",cowl_b_cache_seat1); |
|
|
|
result.put("cowl_b_cache_seat2",cowl_b_cache_seat2); |
|
|
|
result.put("cowl_b_cache_pass",cowl_b_cache_pass); |
|
|
|
result.put("cowl_b_cowl",cowl_b_cowl); |
|
|
|
result.put("cowl_b_cowl_seat1",cowl_b_cowl_seat1); |
|
|
|
result.put("cowl_b_cowl_seat2",cowl_b_cowl_seat2); |
|
|
|
result.put("cowl_b_cowl_aPass",cowl_b_cowl_aPass); |
|
|
|
result.put("cowl_b_cowl_bPass",cowl_b_cowl_bPass); |
|
|
|
result.put("no_pass_convey_cache_num",no_pass_convey_cache_num); |
|
|
|
result.put("wrap_ago",wrap_ago); |
|
|
|
result.put("wrap_ago_seat1",wrap_ago_seat1); |
|
|
|
result.put("wrap_ago_seat2",wrap_ago_seat2); |
|
|
|
result.put("wrap_after",wrap_after); |
|
|
|
result.put("wrap_after_seat1",wrap_after_seat1); |
|
|
|
result.put("wrap_after_seat2",wrap_after_seat2); |
|
|
|
result.put("strapping_current_step",strapping_current_step); |
|
|
|
result.put("strapping_seat1",strapping_seat1); |
|
|
|
result.put("strapping_seat2",strapping_seat2); |
|
|
|
result.put("strapping_seat3",strapping_seat3); |
|
|
|
result.put("strapping_seat4",strapping_seat4); |
|
|
|
result.put("strapping_seat5",strapping_seat5); |
|
|
|
result.put("strapping_seat6",strapping_seat6); |
|
|
|
result.put("strapping_seat7",strapping_seat7); |
|
|
|
result.put("strapping_seat8",strapping_seat8); |
|
|
|
result.put("strapping_seat9",strapping_seat9); |
|
|
|
result.put("strapping_seat10",strapping_seat10); |
|
|
|
result.put("strapping_seat11",strapping_seat11); |
|
|
|
result.put("strapping_seat12",strapping_seat12); |
|
|
|
result.put("a_error1_clear",a_error1_clear); |
|
|
|
result.put("b_error1_clear",b_error1_clear); |
|
|
|
result.put("a_error2_clear",a_error2_clear); |
|
|
|
result.put("b_error2_clear",b_error2_clear); |
|
|
|
result.put("wrap_control",wrap_control); |
|
|
|
result.put("strapping_finish",strapping_finish); |
|
|
|
result.put("error_clear",error_clear); |
|
|
|
resp.put("result",result); |
|
|
|
return resp; |
|
|
|
// }
|
|
|
|
// resp.put("code","0");
|
|
|
|
// resp.put("desc","查询失败");
|
|
|
|
// return resp;
|
|
|
|
// hailiangFlatDeviceDriver = (HailiangFlatDeviceDriver) device.getDeviceDriver();
|
|
|
|
int is_auto = hailiangFlatDeviceDriver.getIs_auto(); |
|
|
|
int is_running = hailiangFlatDeviceDriver.getIs_running(); |
|
|
|
int mode = hailiangFlatDeviceDriver.getMode(); |
|
|
|
float a_pressure = hailiangFlatDeviceDriver.getA_pressure(); |
|
|
|
float b_pressure = hailiangFlatDeviceDriver.getB_pressure(); |
|
|
|
float outer_diameter = hailiangFlatDeviceDriver.getOuter_diameter(); |
|
|
|
float length = hailiangFlatDeviceDriver.getLength(); |
|
|
|
float wall_thickness = hailiangFlatDeviceDriver.getWall_thickness(); |
|
|
|
int color = hailiangFlatDeviceDriver.getColor(); |
|
|
|
int jackup_num = hailiangFlatDeviceDriver.getJackup_num(); |
|
|
|
int strap_number = hailiangFlatDeviceDriver.getStrap_number(); |
|
|
|
int start = hailiangFlatDeviceDriver.getStart(); |
|
|
|
int stop = hailiangFlatDeviceDriver.getStop(); |
|
|
|
int main_convey1 = hailiangFlatDeviceDriver.getMain_convey1(); |
|
|
|
int main_convey1_seat1 = hailiangFlatDeviceDriver.getMain_convey1_seat1(); |
|
|
|
int main_convey1_seat2 = hailiangFlatDeviceDriver.getMain_convey1_seat2(); |
|
|
|
int ink_jet = hailiangFlatDeviceDriver.getInk_jet(); |
|
|
|
int ink_jet_seat1 = hailiangFlatDeviceDriver.getInk_jet_seat1(); |
|
|
|
int ink_jet_seat2 = hailiangFlatDeviceDriver.getInk_jet_seat2(); |
|
|
|
int ink_jet_seat3 = hailiangFlatDeviceDriver.getInk_jet_seat3(); |
|
|
|
int main_convey2 = hailiangFlatDeviceDriver.getMain_convey2(); |
|
|
|
int main_convey2_seat1 = hailiangFlatDeviceDriver.getMain_convey2_seat1(); |
|
|
|
int main_convey3_has_pass = hailiangFlatDeviceDriver.getMain_convey3_has_pass(); |
|
|
|
int main_convey3_has_noPass = hailiangFlatDeviceDriver.getMain_convey3_has_noPass(); |
|
|
|
int main_convey3_seat1 = hailiangFlatDeviceDriver.getMain_convey3_seat1(); |
|
|
|
int main_convey3_seat2 = hailiangFlatDeviceDriver.getMain_convey3_seat2(); |
|
|
|
int cowl_a_cache = hailiangFlatDeviceDriver.getCowl_a_cache(); |
|
|
|
int cowl_a_cache_seat1 = hailiangFlatDeviceDriver.getCowl_a_cache_seat1(); |
|
|
|
int cowl_a_cache_seat2 = hailiangFlatDeviceDriver.getCowl_a_cache_seat2(); |
|
|
|
int cowl_a_cowl = hailiangFlatDeviceDriver.getCowl_a_cowl(); |
|
|
|
int cowl_a_cowl_seat1 = hailiangFlatDeviceDriver.getCowl_a_cowl_seat1(); |
|
|
|
int cowl_a_cowl_seat2 = hailiangFlatDeviceDriver.getCowl_a_cowl_seat2(); |
|
|
|
int cowl_a_cowl_pass = hailiangFlatDeviceDriver.getCowl_a_cowl_pass(); |
|
|
|
int reverse_convey = hailiangFlatDeviceDriver.getReverse_convey(); |
|
|
|
int reverse_convey_seat1 = hailiangFlatDeviceDriver.getReverse_convey_seat1(); |
|
|
|
int reverse_convey_seat2 = hailiangFlatDeviceDriver.getReverse_convey_seat2(); |
|
|
|
int reverse_convey_seat3 = hailiangFlatDeviceDriver.getReverse_convey_seat3(); |
|
|
|
int reverse_convey_pass = hailiangFlatDeviceDriver.getReverse_convey_pass(); |
|
|
|
int cowl_b_cache = hailiangFlatDeviceDriver.getCowl_b_cache(); |
|
|
|
int cowl_b_cache_seat1 = hailiangFlatDeviceDriver.getCowl_b_cache_seat1(); |
|
|
|
int cowl_b_cache_seat2 = hailiangFlatDeviceDriver.getCowl_b_cache_seat2(); |
|
|
|
int cowl_b_cache_pass = hailiangFlatDeviceDriver.getCowl_b_cache_pass(); |
|
|
|
int cowl_b_cowl = hailiangFlatDeviceDriver.getCowl_b_cowl(); |
|
|
|
int cowl_b_cowl_seat1 = hailiangFlatDeviceDriver.getCowl_b_cowl_seat1(); |
|
|
|
int cowl_b_cowl_seat2 = hailiangFlatDeviceDriver.getCowl_b_cowl_seat2(); |
|
|
|
int cowl_b_cowl_aPass = hailiangFlatDeviceDriver.getCowl_b_cowl_aPass(); |
|
|
|
int cowl_b_cowl_bPass = hailiangFlatDeviceDriver.getCowl_b_cowl_bPass(); |
|
|
|
int no_pass_convey_cache_num = hailiangFlatDeviceDriver.getNo_pass_convey_cache_num(); |
|
|
|
int wrap_ago = hailiangFlatDeviceDriver.getWrap_ago(); |
|
|
|
int wrap_ago_seat1 = hailiangFlatDeviceDriver.getWrap_ago_seat1(); |
|
|
|
int wrap_ago_seat2 = hailiangFlatDeviceDriver.getWrap_ago_seat2(); |
|
|
|
int wrap_after = hailiangFlatDeviceDriver.getWrap_after(); |
|
|
|
int wrap_after_seat1 = hailiangFlatDeviceDriver.getWrap_after_seat1(); |
|
|
|
int wrap_after_seat2 = hailiangFlatDeviceDriver.getWrap_after_seat2(); |
|
|
|
int strapping_current_step = hailiangFlatDeviceDriver.getStrapping_current_step(); |
|
|
|
int strapping_seat1 = hailiangFlatDeviceDriver.getStrapping_seat1(); |
|
|
|
int strapping_seat2 = hailiangFlatDeviceDriver.getStrapping_seat2(); |
|
|
|
int strapping_seat3 = hailiangFlatDeviceDriver.getStrapping_seat3(); |
|
|
|
int strapping_seat4 = hailiangFlatDeviceDriver.getStrapping_seat4(); |
|
|
|
int strapping_seat5 = hailiangFlatDeviceDriver.getStrapping_seat5(); |
|
|
|
int strapping_seat6 = hailiangFlatDeviceDriver.getStrapping_seat6(); |
|
|
|
int strapping_seat7 = hailiangFlatDeviceDriver.getStrapping_seat7(); |
|
|
|
int strapping_seat8 = hailiangFlatDeviceDriver.getStrapping_seat8(); |
|
|
|
int strapping_seat9 = hailiangFlatDeviceDriver.getStrapping_seat9(); |
|
|
|
int strapping_seat10 = hailiangFlatDeviceDriver.getStrapping_seat10(); |
|
|
|
int strapping_seat11 = hailiangFlatDeviceDriver.getStrapping_seat11(); |
|
|
|
int strapping_seat12 = hailiangFlatDeviceDriver.getStrapping_seat12(); |
|
|
|
int a_error1_clear = hailiangFlatDeviceDriver.getA_error1_clear(); |
|
|
|
int b_error1_clear = hailiangFlatDeviceDriver.getB_error1_clear(); |
|
|
|
int a_error2_clear = hailiangFlatDeviceDriver.getA_error2_clear(); |
|
|
|
int b_error2_clear = hailiangFlatDeviceDriver.getB_error2_clear(); |
|
|
|
int wrap_control = hailiangFlatDeviceDriver.getWrap_control(); |
|
|
|
int strapping_finish = hailiangFlatDeviceDriver.getStrapping_finish(); |
|
|
|
int error_clear = hailiangFlatDeviceDriver.getError_clear(); |
|
|
|
float motor_frequency_setting= hailiangFlatDeviceDriver.getMotor_frequency_setting(); |
|
|
|
float nip_setting= hailiangFlatDeviceDriver.getNip_setting(); |
|
|
|
int cowl_pass_jacking_need_num = hailiangFlatDeviceDriver.getCowl_pass_jacking_need_num(); |
|
|
|
int cowl_pass_jacking_has_num = hailiangFlatDeviceDriver.getCowl_pass_jacking_has_num(); |
|
|
|
resp.put("code", "1"); |
|
|
|
resp.put("desc", "查询成功"); |
|
|
|
JSONObject result = new JSONObject(); |
|
|
|
result.put("is_auto", is_auto + ""); |
|
|
|
result.put("is_running", is_running + ""); |
|
|
|
result.put("mode", mode + ""); |
|
|
|
result.put("a_pressure", hisFormat.format(a_pressure) + ""); |
|
|
|
result.put("b_pressure", hisFormat.format(b_pressure) + ""); |
|
|
|
result.put("outer_diameter", hisFormat.format(outer_diameter) + ""); |
|
|
|
result.put("length", hisFormat.format(length) + ""); |
|
|
|
result.put("wall_thickness", hisFormat.format(wall_thickness) + ""); |
|
|
|
result.put("color", color + ""); |
|
|
|
result.put("jackup_num", jackup_num + ""); |
|
|
|
result.put("strap_number", strap_number + ""); |
|
|
|
result.put("start", start + ""); |
|
|
|
result.put("stop", stop + ""); |
|
|
|
result.put("main_convey1", main_convey1 + ""); |
|
|
|
result.put("main_convey1_seat1", main_convey1_seat1 + ""); |
|
|
|
result.put("main_convey1_seat2", main_convey1_seat2 + ""); |
|
|
|
result.put("ink_jet", ink_jet + ""); |
|
|
|
result.put("ink_jet_seat1", ink_jet_seat1 + ""); |
|
|
|
result.put("ink_jet_seat2", ink_jet_seat2 + ""); |
|
|
|
result.put("ink_jet_seat3", ink_jet_seat3 + ""); |
|
|
|
result.put("main_convey2", main_convey2 + ""); |
|
|
|
result.put("main_convey2_seat1", main_convey2_seat1 + ""); |
|
|
|
result.put("main_convey3_has_pass", main_convey3_has_pass + ""); |
|
|
|
result.put("main_convey3_has_noPass", main_convey3_has_noPass + ""); |
|
|
|
result.put("main_convey3_seat1", main_convey3_seat1 + ""); |
|
|
|
result.put("main_convey3_seat2", main_convey3_seat2 + ""); |
|
|
|
result.put("cowl_a_cache", cowl_a_cache + ""); |
|
|
|
result.put("cowl_a_cache_seat1", cowl_a_cache_seat1 + ""); |
|
|
|
result.put("cowl_a_cache_seat2", cowl_a_cache_seat2 + ""); |
|
|
|
result.put("cowl_a_cowl", cowl_a_cowl + ""); |
|
|
|
result.put("cowl_a_cowl_seat1", cowl_a_cowl_seat1 + ""); |
|
|
|
result.put("cowl_a_cowl_seat2", cowl_a_cowl_seat2 + ""); |
|
|
|
result.put("cowl_a_cowl_pass", cowl_a_cowl_pass + ""); |
|
|
|
result.put("reverse_convey", reverse_convey + ""); |
|
|
|
result.put("reverse_convey_seat1", reverse_convey_seat1 + ""); |
|
|
|
result.put("reverse_convey_seat2", reverse_convey_seat2 + ""); |
|
|
|
result.put("reverse_convey_seat3", reverse_convey_seat3 + ""); |
|
|
|
result.put("reverse_convey_pass", reverse_convey_pass + ""); |
|
|
|
result.put("cowl_b_cache", cowl_b_cache + ""); |
|
|
|
result.put("cowl_b_cache_seat1", cowl_b_cache_seat1 + ""); |
|
|
|
result.put("cowl_b_cache_seat2", cowl_b_cache_seat2 + ""); |
|
|
|
result.put("cowl_b_cache_pass", cowl_b_cache_pass + ""); |
|
|
|
result.put("cowl_b_cowl", cowl_b_cowl + ""); |
|
|
|
result.put("cowl_b_cowl_seat1", cowl_b_cowl_seat1 + ""); |
|
|
|
result.put("cowl_b_cowl_seat2", cowl_b_cowl_seat2 + ""); |
|
|
|
result.put("cowl_b_cowl_aPass", cowl_b_cowl_aPass + ""); |
|
|
|
result.put("cowl_b_cowl_bPass", cowl_b_cowl_bPass + ""); |
|
|
|
result.put("no_pass_convey_cache_num", no_pass_convey_cache_num + ""); |
|
|
|
result.put("wrap_ago", wrap_ago + ""); |
|
|
|
result.put("wrap_ago_seat1", wrap_ago_seat1 + ""); |
|
|
|
result.put("wrap_ago_seat2", wrap_ago_seat2 + ""); |
|
|
|
result.put("wrap_after", wrap_after + ""); |
|
|
|
result.put("wrap_after_seat1", wrap_after_seat1 + ""); |
|
|
|
result.put("wrap_after_seat2", wrap_after_seat2 + ""); |
|
|
|
result.put("strapping_current_step", strapping_current_step + ""); |
|
|
|
result.put("strapping_seat1", strapping_seat1 + ""); |
|
|
|
result.put("strapping_seat2", strapping_seat2 + ""); |
|
|
|
result.put("strapping_seat3", strapping_seat3 + ""); |
|
|
|
result.put("strapping_seat4", strapping_seat4 + ""); |
|
|
|
result.put("strapping_seat5", strapping_seat5 + ""); |
|
|
|
result.put("strapping_seat6", strapping_seat6 + ""); |
|
|
|
result.put("strapping_seat7", strapping_seat7 + ""); |
|
|
|
result.put("strapping_seat8", strapping_seat8 + ""); |
|
|
|
result.put("strapping_seat9", strapping_seat9 + ""); |
|
|
|
result.put("strapping_seat10", strapping_seat10 + ""); |
|
|
|
result.put("strapping_seat11", strapping_seat11 + ""); |
|
|
|
result.put("strapping_seat12", strapping_seat12 + ""); |
|
|
|
result.put("a_error1_clear", a_error1_clear + ""); |
|
|
|
result.put("b_error1_clear", b_error1_clear + ""); |
|
|
|
result.put("a_error2_clear", a_error2_clear + ""); |
|
|
|
result.put("b_error2_clear", b_error2_clear + ""); |
|
|
|
result.put("wrap_control", wrap_control + ""); |
|
|
|
result.put("strapping_finish", strapping_finish + ""); |
|
|
|
result.put("error_clear", error_clear + ""); |
|
|
|
result.put("motor_frequency_setting", hisFormat.format(motor_frequency_setting) + ""); |
|
|
|
result.put("nip_setting", hisFormat.format(nip_setting) + ""); |
|
|
|
result.put("cowl_pass_jacking_need_num", cowl_pass_jacking_need_num + ""); |
|
|
|
result.put("cowl_pass_jacking_has_num", cowl_pass_jacking_has_num + ""); |
|
|
|
resp.put("result", result); |
|
|
|
return resp; |
|
|
|
// }
|
|
|
|
// resp.put("code","0");
|
|
|
|
// resp.put("desc","查询失败");
|
|
|
|
// return resp;
|
|
|
|
} |
|
|
|
} |
|
|
|