MSG - 系统与激光(0x4301–0x4561)
MSG 分类后段:控制器 IP、激光 IO 端口、机器人关节/直线/圆弧运动指令。
设置控制器IP(0x4301–0x4303)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4301 | 上位机 → 控制器 | 设置控制器IP |
0x4302 | 上位机 → 控制器 | 查询控制器IP |
0x4303 | 控制器 → 上位机 | 控制器IP应答 |
请求参数(0x4301)
| 参数名 | 类型 | 说明 |
|---|---|---|
name | string | 名称 |
address | string | 地址 |
gateway | string | — |
dns | string | — |
json
{
"name": "",
"address": "",
"gateway": "",
"dns": ""
}
0x4302:该命令的处理器未读取rootRecv中的字段。
应答参数(0x4303)
| 参数名 | 类型 | 说明 |
|---|---|---|
num | uint | 编号/数量 |
network[].name | — | 名称 |
network[].address | — | 地址 |
network[].gateway | — | — |
network[].dns | — | — |
json
{
"num": 1,
"network": [
{
"name": {},
"address": {},
"gateway": {},
"dns": {}
}
]
}查询控制器初始化完成(0x4305–0x4306)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4305 | 上位机 → 控制器 | 查询控制器初始化完成 |
0x4306 | 控制器 → 上位机 | 控制器初始化完成应答 |
0x4305:该命令的处理器未读取rootRecv中的字段。
应答参数(0x4306)
| 参数名 | 说明 |
|---|---|
finishinit | 初始化完成 |
识别当前系统(0x4307)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4307 | 上位机 → 控制器 | 识别当前系统 |
0x4307:该命令的处理器未读取rootRecv中的字段。
识别发送系统(0x4308)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4308 | 控制器 → 上位机 | 识别发送系统 |
应答参数(0x4308)
| 参数名 | 类型 | 说明 |
|---|---|---|
T5_system | bool | T5 系统 |
T5_status | bool | T5 状态 |
json
{
"T5_system": true,
"T5_status": true
}设置激光IO端口(0x4401–0x4403)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4401 | 上位机 → 控制器 | 设置激光IO端口 |
0x4402 | 上位机 → 控制器 | 查询激光IO端口 |
0x4403 | 控制器 → 上位机 | 激光IO端口应答 |
请求参数(0x4401)
| 参数名 | 类型 | 说明 |
|---|---|---|
IO.DO_backMiddle | int | 回中 |
IO.DO_liftUp | int | 上抬 |
IO.DO_follow | int | 跟随 |
IO.DO_lightGate | int | 光闸 |
IO.DO_aspiration | int | 吹气 |
IO.DI_liftUpArrival | int | 停靠到位 |
IO.DI_backMiddleArrival | int | 回中到位 |
IO.DI_followArrival | int | 跟随到位 |
IO.DI_perforateArrival | int | 穿孔到位 |
IO.DI_laserFault | int | 激光故障 |
IO.DI_regulatorFault | int | 调高器故障 |
IO.DI_watercoolerFault | int | 水冷机故障 |
IO.DI_pressureFault | int | 气压故障 |
IO.AO_pressure | int | 气压 |
IO.AO_laserPower | int | 激光功率 |
IO.pwmPort | int | PWM端口号 |
json
{
"IO": {
"DO_backMiddle": 1,
"DO_liftUp": 1,
"DO_follow": 1,
"DO_lightGate": 1,
"DO_aspiration": 1,
"DI_liftUpArrival": 1,
"DI_backMiddleArrival": 1,
"DI_followArrival": 1,
"DI_perforateArrival": 1,
"DI_laserFault": 1,
"DI_regulatorFault": 1,
"DI_watercoolerFault": 1,
"DI_pressureFault": 1,
"AO_pressure": 1,
"AO_laserPower": 1,
"pwmPort": 1
}
}
0x4402:该命令的处理器未读取rootRecv中的字段。
应答参数(0x4403)
| 参数名 | 类型 | 说明 |
|---|---|---|
IO.DO_backMiddle | int | 回中 |
IO.DO_liftUp | int | 上抬 |
IO.DO_follow | int | 跟随 |
IO.DO_lightGate | int | 光闸 |
IO.DO_aspiration | int | 吹气 |
IO.DI_liftUpArrival | int | 停靠到位 |
IO.DI_backMiddleArrival | int | 回中到位 |
IO.DI_followArrival | int | 跟随到位 |
IO.DI_perforateArrival | int | 穿孔到位 |
IO.DI_laserFault | int | 激光故障 |
IO.DI_regulatorFault | int | 调高器故障 |
IO.DI_watercoolerFault | int | 水冷机故障 |
IO.DI_pressureFault | int | 气压故障 |
IO.AO_pressure | int | 气压 |
IO.AO_laserPower | int | 激光功率 |
IO.pwmPort | int | PWM端口号 |
pwmSize | int | PWM大小 |
json
{
"IO": {
"DO_backMiddle": 1,
"DO_liftUp": 1,
"DO_follow": 1,
"DO_lightGate": 1,
"DO_aspiration": 1,
"DI_liftUpArrival": 1,
"DI_backMiddleArrival": 1,
"DI_followArrival": 1,
"DI_perforateArrival": 1,
"DI_laserFault": 1,
"DI_regulatorFault": 1,
"DI_watercoolerFault": 1,
"DI_pressureFault": 1,
"AO_pressure": 1,
"AO_laserPower": 1,
"pwmPort": 1
},
"pwmSize": 1
}设置激光设备(0x4404–0x4406)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4404 | 上位机 → 控制器 | 设置激光设备 |
0x4405 | 上位机 → 控制器 | 查询激光设备 |
0x4406 | 控制器 → 上位机 | 激光设备应答 |
请求参数(0x4404)
| 参数名 | 类型 | 说明 |
|---|---|---|
equipment.arrivalOutLightMode | int | 0:到位出光模式、1:直接出光模式 |
equipment.preAspiratedTime | double | 提前送气时间 |
equipment.waitLiftUpTime | double | 等待上抬时间 |
equipment.waitFollowTime | double | 等待跟随时间 |
equipment.RetreatDistance | double | 回退距离 |
equipment.delAspiratedMode | int | 关气模式,1:延后关气,0:提前关气 |
equipment.delAspiratedTime | double | 提前延后关气时间 |
perforate.time | double | 时间 |
perforate.pressure | double | 压力 |
perforate.power | int | 上电 |
perforate.freq | int | 频率 |
perforate.dutyRatio | int | 占空比比例 |
json
{
"equipment": {
"arrivalOutLightMode": 1,
"preAspiratedTime": 1.0,
"waitLiftUpTime": 1.0,
"waitFollowTime": 1.0,
"RetreatDistance": 1.0,
"delAspiratedMode": 1,
"delAspiratedTime": 1.0
},
"perforate": {
"time": 1.0,
"pressure": 1.0,
"power": 1,
"freq": 1,
"dutyRatio": 1
}
}
0x4405:该命令的处理器未读取rootRecv中的字段。
应答参数(0x4406)
| 参数名 | 类型 | 说明 |
|---|---|---|
equipment.arrivalOutLightMode | int | 0:到位出光模式、1:直接出光模式 |
equipment.preAspiratedTime | double | 提前送气时间 |
equipment.waitLiftUpTime | double | 等待上抬时间 |
equipment.waitFollowTime | double | 等待跟随时间 |
equipment.RetreatDistance | double | 回退距离 |
equipment.delAspiratedTime | double | 提前延后关气时间 |
equipment.delAspiratedMode | int | 关气模式,1:延后关气,0:提前关气 |
perforate.time | — | 时间 |
perforate.pressure | double | 压力 |
perforate.power | — | 上电 |
perforate.freq | — | 频率 |
perforate.dutyRatio | — | 占空比比例 |
json
{
"equipment": {
"arrivalOutLightMode": 1,
"preAspiratedTime": 1.0,
"waitLiftUpTime": 1.0,
"waitFollowTime": 1.0,
"RetreatDistance": 1.0,
"delAspiratedTime": 1.0,
"delAspiratedMode": 1
},
"perforate": {
"pressure": 1.0
}
}设置激光模拟量匹配(0x4407–0x4409)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4407 | 上位机 → 控制器 | 设置激光模拟量匹配 |
0x4408 | 上位机 → 控制器 | 查询激光模拟量匹配 |
0x4409 | 控制器 → 上位机 | 激光模拟量匹配应答 |
请求参数(0x4407)
| 参数名 | 类型 | 说明 |
|---|---|---|
analogMatch.laserPower.x1 | double | X 轴 |
analogMatch.laserPower.x2 | double | X 轴 |
analogMatch.laserPower.y1 | double | Y 轴 |
analogMatch.laserPower.y2 | double | Y 轴 |
analogMatch.pressure.x1 | double | X 轴 |
analogMatch.pressure.x2 | double | X 轴 |
analogMatch.pressure.y1 | double | Y 轴 |
analogMatch.pressure.y2 | double | Y 轴 |
json
{
"analogMatch": {
"laserPower": {
"x1": 1.0,
"x2": 1.0,
"y1": 1.0,
"y2": 1.0
},
"pressure": {
"x1": 1.0,
"x2": 1.0,
"y1": 1.0,
"y2": 1.0
}
}
}
0x4408:该命令的处理器未读取rootRecv中的字段。
应答参数(0x4409)
| 参数名 | 类型 | 说明 |
|---|---|---|
analogMatch.laserPower.x1 | double | X 轴 |
analogMatch.laserPower.x2 | double | X 轴 |
analogMatch.laserPower.y1 | double | Y 轴 |
analogMatch.laserPower.y2 | double | Y 轴 |
analogMatch.pressure.x1 | double | X 轴 |
analogMatch.pressure.x2 | double | X 轴 |
analogMatch.pressure.y1 | double | Y 轴 |
analogMatch.pressure.y2 | double | Y 轴 |
IO.laserPower | — | 激光上电 |
IO.pressure | double | 压力 |
json
{
"analogMatch": {
"laserPower": {
"x1": 1.0,
"x2": 1.0,
"y1": 1.0,
"y2": 1.0
},
"pressure": {
"x1": 1.0,
"x2": 1.0,
"y1": 1.0,
"y2": 1.0
}
},
"IO": {
"pressure": 1.0
}
}设置激光切割参数(0x440A–0x440C)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x440A | 上位机 → 控制器 | 设置激光切割参数 |
0x440B | 上位机 → 控制器 | 查询激光切割参数 |
0x440C | 控制器 → 上位机 | 激光切割参数应答 |
请求参数(0x440A)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
num | int | 编号/数量 | [1,9] |
cut.pressure | double | 压力 | [1,1000000] |
cut.power | double | 上电 | [1,1000000] |
cut.freq | double | 频率 | [1,1000000] |
cut.dutyRatio | double | 占空比比例 | [0,100] |
json
{
"num": 1,
"cut": {
"pressure": 1.0,
"power": 1.0,
"freq": 1.0,
"dutyRatio": 1.0
}
}请求参数(0x440B)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
num | int | 编号/数量 | [1,9](同模块同类命令) |
json
{
"num": 1
}应答参数(0x440C)
| 参数名 | 类型 | 说明 |
|---|---|---|
cut.pressure | double | 压力 |
cut.power | — | 上电 |
cut.freq | — | 频率 |
cut.dutyRatio | — | 占空比比例 |
num | int | 编号/数量 |
json
{
"cut": {
"pressure": 1.0
},
"num": 1
}查询激光状态(0x440E–0x440F)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x440E | 上位机 → 控制器 | 查询激光状态 |
0x440F | 控制器 → 上位机 | 激光状态应答 |
0x440E:该命令的处理器未读取rootRecv中的字段。
应答参数(0x440F)
| 参数名 | 说明 |
|---|---|
lightGateEnable | 光闸使能 |
liftUpArrival | 停靠到位 |
backMiddleArrival | 回中到位 |
followArrival | 跟随到位 |
perforateArrival | 穿孔到位 |
laserFault | 激光故障 |
regulatorFault | 调高器故障 |
watercoolerFault | 水冷机故障 |
pressureFault | 气压故障 |
currentPressure | 当前气压 |
currentPower | 当前功率 |
currentFreq | 当前频率 |
currentDutyRatio | 当前占空比 |
设置激光点射参数(0x4410)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4410 | 上位机 → 控制器 | 设置激光点射参数 |
请求参数(0x4410)
| 参数名 | 类型 | 说明 |
|---|---|---|
shotPower | int | 点射功率 |
shotTime | double | 点射时间 |
shot_air_pressure | double | 点射气压 |
json
{
"shotPower": 1,
"shotTime": 1.0,
"shot_air_pressure": 1.0
}设置激光手动操作(0x4411–0x4413)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4411 | 上位机 → 控制器 | 设置激光手动操作 |
0x4412 | 上位机 → 控制器 | 查询激光手动操作 |
0x4413 | 控制器 → 上位机 | 激光手动操作应答 |
请求参数(0x4411)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
type | int | 类型 | [1,6] |
value | int | 值 | 允许值 0 / 1 |
json
{
"type": 1,
"value": 1
}
0x4412:该命令的处理器未读取rootRecv中的字段。
应答参数(0x4413)
| 参数名 | 类型 | 说明 |
|---|---|---|
lightGate | — | 光门 |
shotPower | int | 点射功率 |
shotTime | double | 点射时间 |
shot_air_pressure | double | 点射气压 |
aspiration | — | 抽吸 |
liftUp | — | 抬起上 |
backMiddle | — | 回中间 |
follow | — | 跟随 |
json
{
"shotPower": 1,
"shotTime": 1.0,
"shot_air_pressure": 1.0
}设置激光实际电流电压(0x4417–0x4419)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4417 | 上位机 → 控制器 | 设置激光实际电流电压 |
0x4419 | 控制器 → 上位机 | 激光实际电流电压应答 |
请求参数(0x4417)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
type | int | 类型 | 允许值 1 / 2 |
value | double | 值 | [0,10] |
json
{
"type": 1,
"value": 1.0
}应答参数(0x4419)
| 参数名 | 类型 | 说明 |
|---|---|---|
result | int | 结果 |
json
{
"result": 1
}机器人关节运动(0x4501)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4501 | 上位机 → 控制器 | 机器人关节运动 |
请求参数(0x4501)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
vel | int | 速度 | [1,100] |
coord | int | 坐标系 | [0,3] |
pos[] | array<double> | 位置 | 数组 |
json
{
"robot": 1,
"vel": 1,
"coord": 1,
"pos": [
1.0
]
}机器人直线运动(0x4502)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4502 | 上位机 → 控制器 | 机器人直线运动 |
请求参数(0x4502)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
vel | int | 速度 | >=1 |
coord | int | 坐标系 | [0,3] |
pos[] | array<double> | 位置 | 数组 |
json
{
"robot": 1,
"vel": 1,
"coord": 1,
"pos": [
1.0
]
}机器人圆弧运动(0x4503)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4503 | 上位机 → 控制器 | 机器人圆弧运动 |
请求参数(0x4503)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
vel | int | 速度 | >=1 |
coord | int | 坐标系 | [0,3] |
isFull | bool | 是否整圆 | true / false |
posOne[] | array<double> | 位置1 | 数组 |
posTwo[] | array<double> | 位置2 | 数组 |
posThree[] | array<double> | 位置3 | 数组 |
json
{
"robot": 1,
"vel": 1,
"coord": 1,
"isFull": true,
"posOne": [
1.0
],
"posTwo": [
1.0
],
"posThree": [
1.0
]
}机器人样条运动(0x4504)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4504 | 上位机 → 控制器 | 机器人样条运动 |
请求参数(0x4504)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
vel | int | 速度 | >=1 |
coord | int | 坐标系 | [0,3] |
size | int | 大小/数量 | >=4 |
pos[][] | array<array<double>> | 位置 | 数组 |
json
{
"robot": 1,
"vel": 1,
"coord": 1,
"size": 1,
"pos": [
[
1.0
]
]
}机器人外部轴运动关节(0x4507)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4507 | 上位机 → 控制器 | 机器人外部轴运动关节 |
请求参数(0x4507)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
vel | int | 速度 | [1,100] |
coord | int | 坐标系 | [0,3] |
pos[] | array<double> | 位置 | 数组 |
json
{
"robot": 1,
"vel": 1,
"coord": 1,
"pos": [
1.0
]
}机器人外部轴运动直线(0x4508)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4508 | 上位机 → 控制器 | 机器人外部轴运动直线 |
请求参数(0x4508)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
vel | int | 速度 | >=1 |
coord | int | 坐标系 | [0,3] |
pos[] | array<double> | 位置 | 数组 |
json
{
"robot": 1,
"vel": 1,
"coord": 1,
"pos": [
1.0
]
}机器人外部轴运动圆弧(0x4509)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4509 | 上位机 → 控制器 | 机器人外部轴运动圆弧 |
请求参数(0x4509)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
robot | int | 机器人号 | [1,4] |
vel | int | 速度 | >=1 |
coord | int | 坐标系 | [0,3] |
isFull | bool | 是否整圆 | true / false |
posOne[] | array<double> | 位置1 | 数组 |
posTwo[] | array<double> | 位置2 | 数组 |
posThree[] | array<double> | 位置3 | 数组 |
json
{
"robot": 1,
"vel": 1,
"coord": 1,
"isFull": true,
"posOne": [
1.0
],
"posTwo": [
1.0
],
"posThree": [
1.0
]
}查询机器人到位判断(0x4560–0x4561)
| 命令字 | 方向 | 含义 |
|---|---|---|
0x4560 | 上位机 → 控制器 | 查询机器人到位判断 |
0x4561 | 控制器 → 上位机 | 机器人到位判断应答 |
请求参数(0x4560)
| 参数名 | 类型 | 说明 | 取值范围 |
|---|---|---|---|
POS_REACHABLE.robotNum | int | 机器人数量 | [1,4] |
POS_REACHABLE.pos[] | array<double> | 位置 | 数组 |
POS_REACHABLE.movetype | string | 运动类型 | 字符串 |
json
{
"POS_REACHABLE": {
"robotNum": 1,
"pos": [
1.0
],
"movetype": ""
}
}应答参数(0x4561)
| 参数名 | 类型 | 说明 |
|---|---|---|
ret | bool | — |
json
{
"ret": true
}