| | |
| | | public enum CrnLiftPosType { |
| | | |
| | | ERROR(-1, "未知"), // 不在定位 |
| | | DOWN(0, "下定位"), // |
| | | UP(1, "上定位"), // |
| | | NONE(2, "不在定位"), // 不在定位 |
| | | ORIGIN(0, "货叉原位"), // 不在定位 |
| | | _DOWN(1, "双伸位低位"), |
| | | DOWN(2, "单伸位低位"), // 下定位 |
| | | UP(3, "单伸位高位"), // 上定位 |
| | | _UP(4, "双伸位高位"), |
| | | ; |
| | | |
| | | public Integer id; |
| | |
| | | } |
| | | // convertRow(command); |
| | | command.setCrnNo(slave.getId()); |
| | | short[] array = new short[12]; |
| | | short[] array = new short[10]; |
| | | array[0] = command.getAckFinish(); |
| | | array[1] = command.getTaskNo(); |
| | | array[2] = command.getTaskMode(); |
| | |
| | | array[6] = command.getDestinationPosX(); |
| | | array[7] = command.getDestinationPosY(); |
| | | array[8] = command.getDestinationPosZ(); |
| | | array[9] = command.getSourceStaNo(); |
| | | array[10] = command.getDestinationStaNo(); |
| | | array[11] = command.getCommand(); |
| | | array[9] = command.getCommand(); |
| | | OperateResult result = siemensNet.Write("DB100.0", array); |
| | | |
| | | if (command.getAckFinish() == 0) { |
| | | short commandFinish = 1; |
| | | Thread.sleep(100); |
| | | result = siemensNet.Write("DB100.22", commandFinish); |
| | | result = siemensNet.Write("DB100.18", commandFinish); |
| | | } |
| | | |
| | | try { |