| | |
| | | // 堆垛机异常信息记录 |
| | | mainService.recCrnErr(); |
| | | // 入库 ===>> 空栈板初始化入库,叉车入库站放货 |
| | | // mainService.storeEmptyPlt(); |
| | | mainService.storeEmptyPlt(); |
| | | // 出库 ===>> 工作档信息写入led显示器 |
| | | mainService.ledExecute(); |
| | | // 其他 ===>> LED显示器复位,显示默认信息 |
| | |
| | | } |
| | | OperateResult write = melsecMcNet.Write("D10", heartBeatVal); |
| | | if (!write.IsSuccess) { |
| | | log.error("输送线plc编号={} 心跳失败", slave.getId()); |
| | | log.error("堆垛机plc心跳通讯失败 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort()); |
| | | } |
| | | } |
| | | |
| | |
| | | import com.zy.core.model.DevpSlave; |
| | | import com.zy.core.model.Task; |
| | | import com.zy.core.model.protocol.StaProtocol; |
| | | import com.zy.core.properties.SlaveProperties; |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | add(120);add(121);add(122);add(123);add(124);add(125);add(126);add(127);add(128);add(129); |
| | | add(130);add(131);add(132);add(133);add(134);add(135);add(136); |
| | | }}; |
| | | |
| | | @Autowired |
| | | private SlaveProperties slaveProperties; |
| | | |
| | | /** |
| | | * 条码数量 |
| | |
| | | } |
| | | |
| | | Thread.sleep(200); |
| | | barcodeSize = slaveProperties.getBarcode().size(); |
| | | OperateResultExOne<byte[]> result2 = siemensS7Net.Read("DB100.190",(short)(barcodeSize*8)); |
| | | if (result2.IsSuccess) { |
| | | for (int i = 0; i < barcodeSize; i++) { |
| | |
| | | let rack = '', racks = '', rackDesc = '', |
| | | rackDescs = '', crn = '', crns = '',track = '', |
| | | tracks = '', stn = '', stns = ''; |
| | | let stnCount = 0; |
| | | let rackss = data.racks, |
| | | rackDescss = data.rackDescs, |
| | | crnss = data.crns, |
| | |
| | | "px;left: "+ stnss[i].left + |
| | | "px'>" + stnss[i].text + "</div>" |
| | | stns = stns + stn |
| | | stnCount++; |
| | | } |
| | | let whycq = racks + stns + rackDescs + crns + tracks |
| | | $(".main-part").append(whycq) |
| | | $("#line-total").empty() |
| | | $("#line-total").html(stnCount) |
| | | }; |