add: 双工位堆垛机
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -208,7 +208,7 @@ public class ItemProtocol {
|
||||
public Integer getItem_heartbeat(){
|
||||
return this.getOpcIntegerValue(item_heartbeat);
|
||||
}
|
||||
public Integer getItem_deviceCode(){
|
||||
public Integer getItem_device_Code(){
|
||||
return this.getOpcIntegerValue(item_deviceCode);
|
||||
}
|
||||
public Integer getItem_mode(){
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* @author ls
|
||||
* @date 2023/12/4 13:42
|
||||
*/
|
||||
package org.nl.acs.device_driver.basedriver.double_station_stacker.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import org.nl.acs.task.enums.TaskStatusEnum;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum CommandEnum {
|
||||
STANDY(0,"待机"),
|
||||
PICKUP(1,"取货中"),
|
||||
PICKUP_COMPLETE(2,"取货完成"),
|
||||
RELEASE(3,"放货中"),
|
||||
UNLOAD(4,"请求卸货"),
|
||||
UNLOAD_COMPLETE(5,"卸货完成"),
|
||||
PICKUP_PREPARATION(6,"取货准备"),
|
||||
RECALL(7,"召回"),
|
||||
STOP(8,"急停");
|
||||
|
||||
private Integer status;
|
||||
private String desc;
|
||||
|
||||
public static String getDesc(Integer status) {
|
||||
for (CommandEnum c : CommandEnum.values()) {
|
||||
if (c.getStatus().equals(status)) {
|
||||
return c.getDesc();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @author ls
|
||||
* @date 2023/12/4 17:43
|
||||
*/
|
||||
package org.nl.acs.device_driver.basedriver.double_station_stacker.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum SortEnum {
|
||||
PRONT("1","正序"),
|
||||
BACK("2","倒序");
|
||||
|
||||
private String code;
|
||||
private String desc;
|
||||
}
|
||||
Reference in New Issue
Block a user