帮助中心
帮助中心主页
HTTP API
Roboview
Modbus API
常见问题
设置扩展的机器人寄存器值

接口介绍

API 通常用于 AGV 与客户设备通过 RDSCore交互。此时在 Roboshop Pro配置界面中需要将终端类型配置为 slave。在此模式下 RDSCore作为终端和modbus slave,同时接收小车与客户设备的指令。

请求

  • 功能:设置小车状态
  • 方法:POST
  • 接口说明:/setExtendedRobotStatus
json
POST "http://host:8088/setExtendedRobotStatus"
1

请求数据

NameTypeDescriptionRequired
idstring配置的终端名
valuevector<int>写入寄存器的值

请求示例

json
{
    "id": "Terminal-01",
    "value": [1,2,3,4]
}
1
2
3
4

响应

响应数据

NameTypeDescription
codeintAPI 错误码,详情见API错误码
msgstringAPI 错误码信息
create_onintAPI 上传时间戳

响应数据示例

Responses Code 200

请求成功
json
{
    "code": 0,
    "create_on": "2022-08-31T18:26:53.598Z",
    "msg": "ok"
}
1
2
3
4
5

Responses Code 400

id 不为 string
json
{
    "code": 50001,
    "create_on": "2022-08-31T18:27:53.715Z",
    "msg": "id must be string"
}
1
2
3
4
5

value 不为 int array
json
{
    "code": 50001,
    "create_on": "2022-08-31T18:28:13.969Z",
    "msg": "value must be int array"
}
1
2
3
4
5

请求数据不为 json
json
{
    "code": 50000,
    "create_on": "2022-05-25T18:59:17.067Z",
    "msg": "parse json error"
}
1
2
3
4
5
最近更新 2023/03/26
文章内容

接口介绍

请求

请求数据

请求示例

响应

响应数据

响应数据示例

Responses Code 200

Responses Code 400