|
|
|
@ -31,16 +31,16 @@ public class TestService {
|
|
|
|
row = street.getRightRow();
|
|
|
|
row = street.getRightRow();
|
|
|
|
column = street.getRightColumn();
|
|
|
|
column = street.getRightColumn();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
String lotnum = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMDDHHmmss"));
|
|
|
|
for(int i = 1;i<=row;i++){
|
|
|
|
for(int i = 1;i<=row;i++){
|
|
|
|
for(int j = 1; j<= column;j++){
|
|
|
|
for(int j = 1; j<= column;j++){
|
|
|
|
String code = "J83572603";
|
|
|
|
String code = "J83572603";
|
|
|
|
if(j % 5==0){
|
|
|
|
if(j % 9==0){
|
|
|
|
code = "dsawqwe";
|
|
|
|
code = "dsawqwe";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String taskId = i +"-"+ j+"-"+LocalDateTime.now().format(DateTimeFormatter.ofPattern("hhmmss"));
|
|
|
|
String taskId = i +"-"+ j+"-"+LocalDateTime.now().format(DateTimeFormatter.ofPattern("hhmmss"));
|
|
|
|
PlcCmdInfo plcCmdInfo = new PlcCmdInfo(street.getPlcId(),taskId,1,leftRight,j,i,1,1,1,1,1,1,"");
|
|
|
|
PlcCmdInfo plcCmdInfo = new PlcCmdInfo(street.getPlcId(),taskId,1,leftRight,j,i,1,1,1,1,1,1,lotnum);
|
|
|
|
plcCmdInfo.setTimes(1);
|
|
|
|
plcCmdInfo.setTimes(1);
|
|
|
|
int co = j%3 + 1;
|
|
|
|
int co = j%3 + 1;
|
|
|
|
plcService.check(plcCmdInfo,"E"+co,code,code);
|
|
|
|
plcService.check(plcCmdInfo,"E"+co,code,code);
|
|
|
|
|