帮助中心
帮助中心主页
API
TCP/IP API
机器人状态API
批量设置 DO

注意:
API 用于批量设置机器人控制器上的 DO (Digital Output) 状态。

请求

  • 编号: 6002 (0x1772)
  • 名称: robot_other_setdos_req
  • 描述: 批量设置 DO
  • JSON 数据区: 见下
json
// 数据区必须为 JSON array, array 中的每个对象与 6001 指令中相同
// 以下为同时设置 DO 0,1,2,3 的状态,分别设置为高、高、低、低
[
  {"id":0,"status":true},
  {"id":1,"status":true},
  {"id":2,"status":false},
  {"id":3,"status":false}
]
1
2
3
4
5
6
7
8

请求示例

json
[
  {"id":0,"status":true},
  {"id":1,"status":true},
  {"id":2,"status":false},
  {"id":3,"status":false},
  {"id":4,"status":true},
  {"id":5,"status":true},
  {"id":6,"status":false}
]
1
2
3
4
5
6
7
8
9

响应

  • 编号: 16002 (0x3E82)
  • 名称: robot_other_setdos_res
  • 描述: 批量设置 DO 的响应
  • JSON 数据区: 见下表
字段名类型描述可缺省
ret_codenumberAPI 错误码
create_onstringAPI 上传时间戳
err_msgstring错误信息

响应示例

最近更新 2022/11/28
文章内容

请求

请求示例

响应

响应示例