TRACK-CONVEYOR - Modbus 与工艺设备(0x5701–0x6210)
外部程序、Modbus 类型/使能/心跳/连接、数据上传、电批参数与状态、控制器时间、Modbus 主站,以及错误/警告/信息类占位命令。
设置外部程序(0x5701–0x5703)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5701 | 上位机 → 控制器 | 设置外部程序 |
0x5702 | 上位机 → 控制器 | 查询外部程序 |
0x5703 | 控制器 → 上位机 | 外部程序应答 |
请求参数(0x5701)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
programid | int | 程序编号 | [1,1000] |
jobname | array<string> | 作业名 | 数组 |
{
"robot": 1,
"programid": 1,
"jobname": [
""
]
}请求参数(0x5702)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
startprogramid | int | 起始程序编号 | — |
num | int | 编号/数量 | — |
{
"robot": 1,
"startprogramid": 1,
"num": 1
}应答参数(0x5703)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
jobnamelist[] | array<string> | 作业名列表 | 数组 |
robot | int | 机器人号 | — |
startprogramid | int | 起始程序编号 | >=1 |
{
"jobnamelist": [
""
],
"robot": 1,
"startprogramid": 1
}设置Modbus类型(0x5711–0x5713)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5711 | 上位机 → 控制器 | 设置Modbus类型 |
0x5712 | 上位机 → 控制器 | 查询Modbus类型 |
0x5713 | 控制器 → 上位机 | Modbus类型应答 |
请求参数(0x5711)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
type | string | 类型 | 字符串 |
master-slave | int | 主站从站 | — |
TCP.IP | string | — | 字符串 |
TCP.port | int | TCP 端口 | — |
RTU.slaveId | int | RTU 从站号 | — |
RTU.port | int | RTU 串口编号 | — |
RTU.baudrate | int | RTU 波特率 | — |
stoprun | bool | 停止运行 | true / false |
scancycle | int | 扫描周期 | [8,1000] |
{
"type": "",
"master-slave": 1,
"TCP": {
"IP": "",
"port": 1
},
"RTU": {
"slaveId": 1,
"port": 1,
"baudrate": 1
},
"stoprun": true,
"scancycle": 1
}
0x5712:该命令的处理器未读取rootRecv中的字段。
应答参数(0x5713)
| 参数名 | 类型 | 说明 |
|---|---|---|
enable | bool | 使能 |
type | string | 类型 |
master-slave | string | 主站从站 |
TCP.IP | string | — |
TCP.port | int | TCP 端口 |
RTU.slaveId | int | RTU 从站号 |
RTU.port | int | RTU 串口编号 |
RTU.baudrate | int | RTU 波特率 |
scancycle | int | 扫描周期 |
stoprun | bool | 停止运行 |
{
"enable": true,
"type": "",
"master-slave": "",
"TCP": {
"IP": "",
"port": 1
},
"RTU": {
"slaveId": 1,
"port": 1,
"baudrate": 1
},
"scancycle": 1,
"stoprun": true
}设置Modbus使能(0x5714)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5714 | 上位机 → 控制器 | 设置Modbus使能 |
请求参数(0x5714)
| 参数名 | 类型 | 说明 |
|---|---|---|
enable | bool | 使能 |
{
"enable": true
}设置Modbus心跳检查(0x5715–0x5717)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5715 | 上位机 → 控制器 | 设置Modbus心跳检查 |
0x5716 | 上位机 → 控制器 | 查询Modbus心跳检查 |
0x5717 | 控制器 → 上位机 | Modbus心跳检查应答 |
请求参数(0x5715)
| 参数名 | 类型 | 说明 |
|---|---|---|
checkheart | bool | 心跳检查 |
{
"checkheart": true
}
0x5716:该命令的处理器未读取rootRecv中的字段。
应答参数(0x5717)
| 参数名 | 类型 | 说明 |
|---|---|---|
checkheart | bool | 心跳检查 |
{
"checkheart": true
}查询Modbus连接(0x5718–0x5719)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5718 | 上位机 → 控制器 | 查询Modbus连接 |
0x5719 | 控制器 → 上位机 | Modbus连接应答 |
0x5718:该命令的处理器未读取rootRecv中的字段。
应答参数(0x5719)
| 参数名 | 类型 | 说明 |
|---|---|---|
ModbusConnect | bool | Modbus连接 |
{
"ModbusConnect": true
}设置数据上传使能(0x5721–0x5723)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5721 | 上位机 → 控制器 | 设置数据上传使能 |
0x5722 | 上位机 → 控制器 | 查询数据上传使能 |
0x5723 | 控制器 → 上位机 | 数据上传使能应答 |
请求参数(0x5721)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
enable | bool | 使能 | true / false |
{
"robot": 1,
"enable": true
}请求参数(0x5722)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
{
"robot": 1
}应答参数(0x5723)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
enable | bool | 使能 | true / false |
robot | int | 机器人号 | [1,4] |
{
"enable": true,
"robot": 1
}设置数据上传参数(0x5724–0x5726)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5724 | 上位机 → 控制器 | 设置数据上传参数 |
0x5725 | 上位机 → 控制器 | 查询数据上传参数 |
0x5726 | 控制器 → 上位机 | 数据上传参数应答 |
请求参数(0x5724)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
uploadMode | string | 上传模式 | 字符串 |
fileSuffix | string | 文件后缀 | 字符串 |
serverIP | string | 服务端IP | 字符串 |
serverPort | int | 服务端端口号 | — |
username | string | 用户名 | 字符串 |
password | string | 密码 | 字符串 |
filepath | string | 文件路径 | 字符串 |
dataCollectTime | double | 数据采集时间 | — |
dataUploadTime | double | 数据上传时间 | — |
sendInfoFileFlag | bool | 发送信息文件标志 | true / false |
{
"robot": 1,
"uploadMode": "",
"fileSuffix": "",
"serverIP": "",
"serverPort": 1,
"username": "",
"password": "",
"filepath": "",
"dataCollectTime": 1.0,
"dataUploadTime": 1.0,
"sendInfoFileFlag": true
}请求参数(0x5725)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
{
"robot": 1
}应答参数(0x5726)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
uploadMode | string | 上传模式 | 字符串 |
fileSuffix | string | 文件后缀 | 字符串 |
serverIP | string | 服务端IP | 字符串 |
serverPort | int | 服务端端口号 | — |
username | string | 用户名 | 字符串 |
password | string | 密码 | 字符串 |
filepath | string | 文件路径 | 字符串 |
dataCollectTime | double | 数据采集时间 | — |
dataUploadTime | double | 数据上传时间 | — |
sendInfoFileFlag | bool | 发送信息文件标志 | true / false |
robot | int | 机器人号 | [1,4] |
{
"uploadMode": "",
"fileSuffix": "",
"serverIP": "",
"serverPort": 1,
"username": "",
"password": "",
"filepath": "",
"dataCollectTime": 1.0,
"dataUploadTime": 1.0,
"sendInfoFileFlag": true,
"robot": 1
}设置数据上传格式(0x5727–0x5729)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5727 | 上位机 → 控制器 | 设置数据上传格式 |
0x5728 | 上位机 → 控制器 | 查询数据上传格式 |
0x5729 | 控制器 → 上位机 | 数据上传格式应答 |
请求参数(0x5727)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
type | int | 类型 | 允许值 1 / 2 / 3 / 4 |
format | int | 格式 | — |
{
"robot": 1,
"type": 1,
"format": 1
}请求参数(0x5728)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
type | int | 类型 | 允许值 1 / 2 / 3 / 4 |
{
"robot": 1,
"type": 1
}应答参数(0x5729)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
format | string | 格式 | 字符串 |
robot | int | 机器人号 | [1,4] |
type | int | 类型 | 允许值 1 / 2 / 3 / 4 |
{
"format": "",
"robot": 1,
"type": 1
}设置电批参数(0x5731–0x5733)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5731 | 上位机 → 控制器 | 设置电批参数 |
0x5732 | 上位机 → 控制器 | 查询电批参数 |
0x5733 | 控制器 → 上位机 | 电批参数应答 |
请求参数(0x5731)
| 参数名 | 类型 | 说明 |
|---|---|---|
proNum | int | 程序编号 |
tighten.rotationDir | int | 旋转方向 |
tighten.targetTorque | double | 目标力矩 |
tighten.tightenMode | int | 拧紧模式 |
tighten.initDetectionAmount | double | 初始化检测数量 |
tighten.initTapTorque | double | — |
tighten.torqueHoldTime | double | 力矩保持时间 |
tighten.antiLimit | double | 防限制 |
tighten.positiveLimit | double | 正限位 |
tighten.addTightenAngle | double | 添加拧紧角度 |
tighten.floatTightenAngle | double | 浮点拧紧角度 |
tighten.velSwitchTorqueRatio | double | 速度开关力矩比例 |
tighten.speedAfterSwitch | double | 开关后速度 |
tighten.initDetectionAmountFlag | bool | 初始检出量标志 |
tighten.initTapTorqueFlag | bool | 初始攻丝扭力标志 |
tighten.torqueHoldTimeFlag | bool | 扭力保持时间标志 |
tighten.antiLimitFlag | bool | -侧许可圈数标志 |
tighten.positiveLimitFlag | bool | +侧许可圈数标志 |
tighten.addTightenAngleFlag | bool | 增加拧紧角度标志 |
tighten.floatTightenAngleFlag | bool | 浮高后拧紧角度标志 |
tighten.velSwitchTorqueRatioFlag | bool | 速度切换扭力比值标志 |
tighten.speedAfterSwitchFlag | bool | 切换后速度标志 |
tighten.rounds[] | array<double> | — |
tighten.speed[] | array<int> | 速度 |
loosen.rotationDir | int | 旋转方向 |
loosen.targetTorque | double | 目标力矩 |
loosen.rounds[] | array<double> | — |
loosen.speed[] | array<int> | 速度 |
freeRotation.rotationDir | int | 旋转方向 |
freeRotation.speed[] | array<int> | 速度 |
torqueCorrection | int | — |
{
"proNum": 1,
"tighten": {
"rotationDir": 1,
"targetTorque": 1.0,
"tightenMode": 1,
"initDetectionAmount": 1.0,
"initTapTorque": 1.0,
"torqueHoldTime": 1.0,
"antiLimit": 1.0,
"positiveLimit": 1.0,
"addTightenAngle": 1.0,
"floatTightenAngle": 1.0,
"velSwitchTorqueRatio": 1.0,
"speedAfterSwitch": 1.0,
"initDetectionAmountFlag": true,
"initTapTorqueFlag": true,
"torqueHoldTimeFlag": true,
"antiLimitFlag": true,
"positiveLimitFlag": true,
"addTightenAngleFlag": true,
"floatTightenAngleFlag": true,
"velSwitchTorqueRatioFlag": true,
"speedAfterSwitchFlag": true,
"rounds": [
1.0
],
"speed": [
1
]
},
"loosen": {
"rotationDir": 1,
"targetTorque": 1.0,
"rounds": [
1.0
],
"speed": [
1
]
},
"freeRotation": {
"rotationDir": 1,
"speed": [
1
]
},
"torqueCorrection": 1
}请求参数(0x5732)
| 参数名 | 类型 | 说明 |
|---|---|---|
proNum | int | 程序编号 |
{
"proNum": 1
}应答参数(0x5733)
| 参数名 | 类型 | 说明 |
|---|---|---|
proNum | int | 程序编号 |
tighten.rotationDir | int | 旋转方向 |
tighten.targetTorque | double | 目标力矩 |
tighten.tightenMode | int | 拧紧模式 |
tighten.initDetectionAmount | double | 初始化检测数量 |
tighten.initTapTorque | double | — |
tighten.torqueHoldTime | double | 力矩保持时间 |
tighten.antiLimit | double | 防限制 |
tighten.positiveLimit | double | 正限位 |
tighten.addTightenAngle | double | 添加拧紧角度 |
tighten.floatTightenAngle | double | 浮点拧紧角度 |
tighten.velSwitchTorqueRatio | double | 速度开关力矩比例 |
tighten.speedAfterSwitch | double | 开关后速度 |
tighten.initDetectionAmountFlag | bool | 初始检出量标志 |
tighten.initTapTorqueFlag | bool | 初始攻丝扭力标志 |
tighten.torqueHoldTimeFlag | bool | 扭力保持时间标志 |
tighten.antiLimitFlag | bool | -侧许可圈数标志 |
tighten.positiveLimitFlag | bool | +侧许可圈数标志 |
tighten.addTightenAngleFlag | bool | 增加拧紧角度标志 |
tighten.floatTightenAngleFlag | bool | 浮高后拧紧角度标志 |
tighten.velSwitchTorqueRatioFlag | bool | 速度切换扭力比值标志 |
tighten.speedAfterSwitchFlag | bool | 切换后速度标志 |
tighten.rounds[] | array<any> | — |
tighten.speed[] | array<any> | 速度 |
loosen.rotationDir | int | 旋转方向 |
loosen.targetTorque | double | 目标力矩 |
loosen.rounds[] | array<any> | — |
loosen.speed[] | array<any> | 速度 |
freeRotation.rotationDir | int | 旋转方向 |
freeRotation.speed[] | array<any> | 速度 |
torqueCorrection | int | — |
{
"proNum": 1,
"tighten": {
"rotationDir": 1,
"targetTorque": 1.0,
"tightenMode": 1,
"initDetectionAmount": 1.0,
"initTapTorque": 1.0,
"torqueHoldTime": 1.0,
"antiLimit": 1.0,
"positiveLimit": 1.0,
"addTightenAngle": 1.0,
"floatTightenAngle": 1.0,
"velSwitchTorqueRatio": 1.0,
"speedAfterSwitch": 1.0,
"initDetectionAmountFlag": true,
"initTapTorqueFlag": true,
"torqueHoldTimeFlag": true,
"antiLimitFlag": true,
"positiveLimitFlag": true,
"addTightenAngleFlag": true,
"floatTightenAngleFlag": true,
"velSwitchTorqueRatioFlag": true,
"speedAfterSwitchFlag": true,
"rounds": [],
"speed": []
},
"loosen": {
"rotationDir": 1,
"targetTorque": 1.0,
"rounds": [],
"speed": []
},
"freeRotation": {
"rotationDir": 1,
"speed": []
},
"torqueCorrection": 1
}查询电批IO状态(0x5735–0x5736)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5735 | 上位机 → 控制器 | 查询电批IO状态 |
0x5736 | 控制器 → 上位机 | 电批IO状态应答 |
0x5735:该命令的处理器未读取rootRecv中的字段。
应答参数(0x5736)
| 参数名 | 类型 | 说明 |
|---|---|---|
input[] | array<any> | 输入 |
output[] | array<any> | 输出 |
{
"input": [],
"output": []
}查询电批扭力结果(0x5738–0x5739)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5738 | 上位机 → 控制器 | 查询电批扭力结果 |
0x5739 | 控制器 → 上位机 | 电批扭力结果应答 |
0x5738:该命令的处理器未读取rootRecv中的字段。
应答参数(0x5739)
| 参数名 | 类型 | 说明 |
|---|---|---|
screwDriver.proNum[] | array<any> | 程序编号 |
screwDriver.rounds[] | array<any> | — |
screwDriver.torque[] | array<any> | 力矩 |
screwDriver.tightenTime[] | array<any> | 拧紧时间 |
screwDriver.result[] | array<any> | 结果 |
screwDriver.error[] | array<any> | 错误 |
screwDriver.start | int | 起始 |
screwDriver.sum | int | 总数 |
screwDriver.count | int | 计数 |
{
"screwDriver": {
"proNum": [],
"rounds": [],
"torque": [],
"tightenTime": [],
"result": [],
"error": [],
"start": 1,
"sum": 1,
"count": 1
}
}查询控制器时间(0x5742–0x5743)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5742 | 上位机 → 控制器 | 查询控制器时间 |
0x5743 | 控制器 → 上位机 | 控制器时间应答 |
请求参数(0x5742)
| 参数名 | 类型 | 说明 |
|---|---|---|
type | int | 类型 |
format | int | 格式 |
{
"type": 1,
"format": 1
}应答参数(0x5743)
| 参数名 | 类型 | 说明 |
|---|---|---|
type | int | 类型 |
format | int | 格式 |
date.year | — | 换算成现在的年份 |
date.mon | — | 月 |
date.day | — | 日 |
date.hour | — | 换算成北京时间所在的时区 需要+8 |
date.min | — | 最小 |
date.sec | — | 秒 |
date.msec | — | 毫秒 |
timestamp.s | — | — |
timestamp.ns | — | — |
{
"type": 1,
"format": 1
}设置Modbus主站(0x5744–0x5746)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5744 | 上位机 → 控制器 | 设置Modbus主站 |
0x5745 | 上位机 → 控制器 | 查询Modbus主站 |
0x5746 | 控制器 → 上位机 | Modbus主站应答 |
请求参数(0x5744)
| 参数名 | 类型 | 说明 |
|---|---|---|
masterStation.processNumber | int | 主站编号/进程号 |
startAddress | bool | 起始地址 |
{
"masterStation": {
"processNumber": 1
},
"startAddress": true
}请求参数(0x5745)
| 参数名 | 类型 | 说明 |
|---|---|---|
processNumber | int | 主站编号/进程号 |
{
"processNumber": 1
}应答参数(0x5746)
| 参数名 | 类型 | 说明 |
|---|---|---|
modbus_state | bool | Modbus 状态 |
startAddress | bool | 起始地址 |
type | — | 类型 |
TCP.IP | string | — |
TCP.port | int | TCP 端口 |
RTU.slaveId | int | RTU 从站号 |
RTU.port | int | RTU 串口编号 |
RTU.baudrate | — | RTU 波特率 |
RTU.checkBit | string | RTU 校验位 |
RTU.dataBit | int | RTU 数据位 |
RTU.stopBit | int | RTU 停止位 |
response_time_out | int | 读写响应超时 ms |
{
"modbus_state": true,
"startAddress": true,
"TCP": {
"IP": "",
"port": 1
},
"RTU": {
"slaveId": 1,
"port": 1,
"checkBit": "",
"dataBit": 1,
"stopBit": 1
},
"response_time_out": 1
}Modbus主站打开(0x5747)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5747 | 上位机 → 控制器 | Modbus主站打开 |
请求参数(0x5747)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
id | int | ID | — |
robot | int | 机器人号 | [1,4] |
{
"id": 1,
"robot": 1
}查询Modbus主站连接状态(0x5748–0x5749)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x5748 | 上位机 → 控制器 | 查询Modbus主站连接状态 |
0x5749 | 控制器 → 上位机 | Modbus主站连接状态应答 |
请求参数(0x5748)
| 参数名 | 类型 | 说明 |
|---|---|---|
id | int | ID |
{
"id": 1
}应答参数(0x5749)
| 参数名 | 类型 | 说明 |
|---|---|---|
status | bool | 状态 |
{
"status": true
}查询Modbus主站读取(0x574A–0x574B)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x574A | 上位机 → 控制器 | 查询Modbus主站读取 |
0x574B | 控制器 → 上位机 | Modbus主站读取应答 |
请求参数(0x574A)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
id | int | ID | — |
address | int | 地址 | [0,65535] |
quantity | int | 数量 | — |
code | int | 代码 | — |
{
"id": 1,
"address": 1,
"quantity": 1,
"code": 1
}应答参数(0x574B)
| 参数名 | 类型 | 说明 |
|---|---|---|
data[] | array<any> | 数据 |
res | bool | 结果 |
{
"data": [],
"res": true
}查询Modbus主站写入(0x574C–0x574D)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x574C | 上位机 → 控制器 | 查询Modbus主站写入 |
0x574D | 控制器 → 上位机 | Modbus主站写入应答 |
请求参数(0x574C)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
id | int | ID | — |
address | int | 地址 | [0,65535] |
quantity | int | 数量 | — |
code | int | 代码 | — |
data[] | array<int> | 数据 | 数组 |
{
"id": 1,
"address": 1,
"quantity": 1,
"code": 1,
"data": [
1
]
}应答参数(0x574D)
| 参数名 | 类型 | 说明 |
|---|---|---|
res | bool | 结果 |
{
"res": true
}SEVERO错误(0x6010)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x6010 | — | SEVERO错误 |
0x6010:见附录 B,源码中既未接收也未发送。
机器人错误(0x6020)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x6020 | — | 机器人错误 |
0x6020:见附录 B,源码中既未接收也未发送。
控制器错误(0x6030)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x6030 | — | 控制器错误 |
0x6030:见附录 B,源码中既未接收也未发送。
警告类型(0x6110)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x6110 | — | 警告类型 |
0x6110:见附录 B,源码中既未接收也未发送。
信息类型(0x6210)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x6210 | — | 信息类型 |
0x6210:见附录 B,源码中既未接收也未发送。