This commit is contained in:
psh
2024-01-12 13:44:18 +08:00
parent 8aa6c18832
commit 56e2d18433
2 changed files with 5 additions and 3 deletions

View File

@@ -151,9 +151,6 @@ public class SiteDeviceDriver extends AbstractOpcDeviceDriver implements DeviceD
hasGoods = this.itemProtocol.getMove();
action = this.itemProtocol.getAction();
pallet_type = this.itemProtocol.getPalletType();
if("ZCSSX0101".equals(devicecode)){
log.info("123");
}
if (move != last_move) {
this.setRequireSucess(false);

View File

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONArray;
import org.nl.acs.device.domain.Device;
import org.nl.acs.device_driver.basedriver.agv.ndcone.AgvNdcOneDeviceDriver;
import org.nl.acs.device_driver.basedriver.standard_storage.StandardStorageDeviceDriver;
import org.nl.acs.device_driver.tianneng.guhuashi.GuhuashiSiteDeviceDriver;
import org.nl.acs.device_driver.tianneng.site.SiteDeviceDriver;
@@ -45,6 +46,10 @@ public class AutoSendDeviceData {
JSONObject json = new JSONObject();
//todo 待提供字段
jsonArray.add(json);
}else if(device.getDeviceDriver() instanceof AgvNdcOneDeviceDriver) {
JSONObject json = new JSONObject();
//todo 待提供字段
jsonArray.add(json);
}
}
log.trace("自动上报驱动状态,完毕耗时{}", System.currentTimeMillis()-startTime);