自动化立体仓库 - WCS系统
#
Junjie
2025-04-10 1d624dfdb040825ffecba6c792c480be662b2dbc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package com.zy.core.thread;
 
import com.zy.common.ExecuteSupport;
import com.zy.common.model.NavigateNode;
import com.zy.core.ThreadHandler;
import com.zy.core.enums.ForkLiftTaskModeType;
import com.zy.core.enums.LiftCommandModeType;
import com.zy.core.enums.LiftProtocolStatusType;
import com.zy.core.model.CommandResponse;
import com.zy.core.model.command.LiftCommand;
import com.zy.core.model.protocol.LiftProtocol;
import com.zy.core.model.protocol.LiftStaProtocol;
 
import java.util.List;
 
public interface LiftThread extends ThreadHandler {
 
    LiftProtocol getStatus();//获取提升机状态
 
    LiftProtocol getStatus(boolean clone);//获取提升机状态
 
    List<LiftStaProtocol> getLiftStaProtocols();
 
    CommandResponse move(LiftCommand command);//升降移动
 
    CommandResponse palletInOut(LiftCommand command);//托盘出入
 
    CommandResponse lock(LiftCommand command);//锁定提升机
 
    CommandResponse unlock(LiftCommand command);//解锁提升机
 
    CommandResponse reset(LiftCommand command);//复位
 
    boolean isIdle();//是否空闲
 
    boolean isDeviceIdle();//设备是否空闲
 
    boolean isDeviceIdle(ExecuteSupport support);//设备是否空闲
 
    boolean setProtocolStatus(LiftProtocolStatusType status);//设置工作状态
 
    boolean setSyncTaskNo(Integer taskNo);//设置工作号
 
    boolean isLock(ExecuteSupport support);
 
    int generateDeviceTaskNo(int taskNo, ForkLiftTaskModeType type);//生成硬件设备工作号
 
    String getLiftLocNo(int lev);//获取提升机位置
 
    String getLiftStandByLocNo(int lev);//获取提升机待机位
 
    List<NavigateNode> getLiftStaNodes(int lev);
 
    //***************获取命令*****************
    List<LiftCommand> getMoveCommand(Integer taskNo, Integer sourceLev, Integer targetLev, LiftCommandModeType mode);//提升机移动
 
    List<LiftCommand> getMoveWithShuttleCommand(Integer taskNo, Integer sourceLev, Integer targetLev, LiftCommandModeType mode);//载车移动
 
    List<LiftCommand> getPalletInCommand(Integer taskNo, Integer sourceLev, Integer targetLev);//托盘入
 
    List<LiftCommand> getPalletOutCommand(Integer taskNo, Integer sourceLev, Integer targetLev);//托盘出
 
    List<LiftCommand> getLockCommand(Integer taskNo, Boolean lock);//锁定/解锁提升机
 
    List<LiftCommand> getShuttleSignalCommand(Integer taskNo, Boolean signal);//小车已到位/已驶离信号
 
}