文档
测试

获取外接设备状态

GET
(:scadaPort)/api/seat/devStatus

接口描述

获取外接设备状态

响应参数

参数名
类型
描述
必填
errorno
必填
errormsg
必填
data
list
返回状态列表,列表里的每个元素是个字典
必填
name
string
设备名称
必填
online
bool
在线(true:在线,false:掉线)
必填
modelSatus
int
见设备状态表
必填
devType
string
设备类型(unload:出料,feed:上料,alarm:告警设备)
必填
taskActive
int
0:未激活,1:(devType:unload)叫车or (devType:feed)叫料
必填
devFinish
int
0:未激活,1:(devType:unload)出料完成or (devType:feed)进料完成
必填
arriveIn
int
AGV到位
必填
agvFinish
int
(devType:unload)AGV上料完成or (devType:feed)AGV出料完成
必填
getValue
string
(0,1,2,0)
必填
status_list
list
状态列表,可切换状态
必填

说明 / 示例

taskAtcive为1显示绿色,online为false、modelSatus为1和2显示红色,其余不显示颜色 ``` { "data": [ { "name": "退膜缓冲02[TMo01]_out", "online": true, "modelSatus": 1, "devType": "unload", "taskActive": 1, "devFinish": 0, "arriveIn": 0, "agvFinish": 0, "getValue": "(0, 0, 0, 0)", "status_list": [ { "status": 1, "name": "设置告警信号" }, { "status": 0, "name": "清除告警信号" } ] }, { "name": "SCP上料机[SCP02]_in", "online": true, "modelSatus": 1, "devType": "feed", "taskActive": 0, "devFinish": 0, "arriveIn": 0, "agvFinish": 0, "getValue": "(0, 0, 0, 0)", "status_list": [ { "status": 1, "name": "设置告警信号" }, { "status": 0, "name": "清除告警信号" } ] }, { "name": "SCP下料机[SCP02]_out", "online": false }, { "name": "退膜缓冲01[TMo01]_in", "online": true, "modelSatus": 1, "devType": "feed", "taskActive": 1, "devFinish": 0, "arriveIn": 1, "agvFinish": 1, "getValue": "(0, 0, 0, 0)", "status_list": [ { "status": 1, "name": "设置告警信号" }, { "status": 0, "name": "清除告警信号" } ] } ], "errorno": 0, "errormsg": "" } ``` **告警设备状态表** |modelStatus|定义| |-|-| |0|无告警| |1|告警中| **上料/下料设备状态表** |modelStatus|定义| |-|-| |0|未在使用| |1|AGV模式| |2|急停| |3|停止|