| | |
| | | import HslCommunication.Profinet.Siemens.SiemensS7Net; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.entity.BasDevp; |
| | |
| | | } |
| | | |
| | | BasDevp basDevp = basDevpService |
| | | .selectOne(new EntityWrapper<BasDevp>().eq("devp_no", deviceConfig.getDeviceNo())); |
| | | .getOne(new QueryWrapper<BasDevp>().eq("devp_no", deviceConfig.getDeviceNo())); |
| | | if (basDevp == null) { |
| | | return Collections.emptyList(); |
| | | } |
| | |
| | | |
| | | boolean[] status2 = siemensNet.getByteTransform().TransBool(result.Content, i * 10 + 7, 1); |
| | | statusEntity.setEnableIn(status2[1]);//启动入库 |
| | | statusEntity.setRunBlock(status2[2]);//重新规划路线 |
| | | |
| | | Integer palletHeight = null; |
| | | if (status[7]) { |
| | |
| | | int stationIdx = findIndex(command.getStationId()); |
| | | |
| | | short[] data = new short[2]; |
| | | data[0] = command.getStationId().shortValue(); |
| | | data[0] = (short) 0; |
| | | data[1] = command.getTargetStaNo().shortValue(); |
| | | |
| | | OperateResult writeTaskNo = siemensNet.Write("DB13." + (stationIdx * 48 + (taskWriteIdx * 12)), command.getTaskNo()); |