fix
This commit is contained in:
@@ -151,9 +151,6 @@ public class SiteDeviceDriver extends AbstractOpcDeviceDriver implements DeviceD
|
|||||||
hasGoods = this.itemProtocol.getMove();
|
hasGoods = this.itemProtocol.getMove();
|
||||||
action = this.itemProtocol.getAction();
|
action = this.itemProtocol.getAction();
|
||||||
pallet_type = this.itemProtocol.getPalletType();
|
pallet_type = this.itemProtocol.getPalletType();
|
||||||
if("ZCSSX0101".equals(devicecode)){
|
|
||||||
log.info("123");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (move != last_move) {
|
if (move != last_move) {
|
||||||
this.setRequireSucess(false);
|
this.setRequireSucess(false);
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import org.nl.acs.device.domain.Device;
|
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.basedriver.standard_storage.StandardStorageDeviceDriver;
|
||||||
import org.nl.acs.device_driver.tianneng.guhuashi.GuhuashiSiteDeviceDriver;
|
import org.nl.acs.device_driver.tianneng.guhuashi.GuhuashiSiteDeviceDriver;
|
||||||
import org.nl.acs.device_driver.tianneng.site.SiteDeviceDriver;
|
import org.nl.acs.device_driver.tianneng.site.SiteDeviceDriver;
|
||||||
@@ -45,6 +46,10 @@ public class AutoSendDeviceData {
|
|||||||
JSONObject json = new JSONObject();
|
JSONObject json = new JSONObject();
|
||||||
//todo 待提供字段
|
//todo 待提供字段
|
||||||
jsonArray.add(json);
|
jsonArray.add(json);
|
||||||
|
}else if(device.getDeviceDriver() instanceof AgvNdcOneDeviceDriver) {
|
||||||
|
JSONObject json = new JSONObject();
|
||||||
|
//todo 待提供字段
|
||||||
|
jsonArray.add(json);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.trace("自动上报驱动状态,完毕耗时{}", System.currentTimeMillis()-startTime);
|
log.trace("自动上报驱动状态,完毕耗时{}", System.currentTimeMillis()-startTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user