|
|
|
|
@ -34,12 +34,12 @@ public class TestService {
|
|
|
|
|
|
|
|
|
|
for(int i = 1;i<=row;i++){
|
|
|
|
|
for(int j = 1; j<= column;j++){
|
|
|
|
|
String code = "3224112150069";
|
|
|
|
|
String code = "123456789013";
|
|
|
|
|
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.setTimes(1);
|
|
|
|
|
int co = j%3 + 1;
|
|
|
|
|
plcService.check(plcCmdInfo,"E"+co,code,"21234-trayCode");
|
|
|
|
|
plcService.check(plcCmdInfo,"E"+co,code,"123456789013");
|
|
|
|
|
try {
|
|
|
|
|
Thread.sleep(1000);
|
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|
|
|