plan_drive_run
Preview a drive speed run without starting it, validating speed, duration, and direction to ensure safe execution.
Instructions
预览速度运行,不启动。默认上限取当前电机额定/最大转速较小值,maximum_abs_speed可降低。自动选择固定16位编码,超过327.67rpm可用百分比给定,预览给出实际量化速度和分辨率。duration_s默认null持续运行,用户未说明时先询问持续或限时;长于20秒自动后台执行,有限时长最多2147483.647秒。需电机/负载、现场停机条件及B05.01=0;不自动切换模式,不生成外部斜坡。仅用户明确允许运行中反向时设置allow_direction_change。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"speed": "<speed>"
},
"name": "plan_drive_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | COM7 | |
| speed | Yes | ||
| transport | No | selected_tcp | |
| background | No | ||
| duration_s | No | ||
| speed_unit | No | rpm | |
| maximum_abs_speed | No | ||
| local_stop_available | No | ||
| restore_control_mode | No | ||
| allow_direction_change | No | ||
| motor_load_description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||