2026-01-19 16:59:52 +08:00
|
|
|
|
{
|
2026-02-26 16:39:29 +08:00
|
|
|
|
"api": {
|
2026-03-18 18:42:17 +08:00
|
|
|
|
"base_url": "http://127.0.0.1:5000",
|
2026-02-26 16:39:29 +08:00
|
|
|
|
"description": "后端API服务地址,例如:http://localhost:5000 或 http://192.168.1.100:5000"
|
|
|
|
|
|
},
|
2026-01-19 16:59:52 +08:00
|
|
|
|
"wrench": {
|
2026-03-06 15:27:09 +08:00
|
|
|
|
"host": "192.168.110.122",
|
2026-01-19 16:59:52 +08:00
|
|
|
|
"port": 7888,
|
|
|
|
|
|
"timeout": 30,
|
|
|
|
|
|
"address": 1,
|
|
|
|
|
|
"auto_reconnect": true,
|
|
|
|
|
|
"max_reconnect_attempts": 3,
|
|
|
|
|
|
"description": "扳手连接配置,auto_reconnect=自动重连,max_reconnect_attempts=最大重连次数"
|
|
|
|
|
|
},
|
2026-03-18 17:13:20 +08:00
|
|
|
|
"delays": {
|
|
|
|
|
|
"wrench_init": 1.5,
|
|
|
|
|
|
"param_set": 2.0,
|
|
|
|
|
|
"retry": 1.0,
|
|
|
|
|
|
"bolt_complete": 0.5,
|
|
|
|
|
|
"status_check_interval": 10,
|
|
|
|
|
|
"description": "延时配置(秒):wrench_init=扳手初始化延时, param_set=参数设置延时, retry=重试延时, bolt_complete=螺栓完成延时, status_check_interval=状态检测间隔"
|
|
|
|
|
|
},
|
2026-01-19 16:59:52 +08:00
|
|
|
|
"test_mode": {
|
2026-03-18 18:42:17 +08:00
|
|
|
|
"enabled": false,
|
2026-01-19 16:59:52 +08:00
|
|
|
|
"description": "测试模式:失败也算成功,用于无钉子测试"
|
|
|
|
|
|
},
|
|
|
|
|
|
"bolt_default_config": {
|
|
|
|
|
|
"mode": 1,
|
|
|
|
|
|
"torque_tolerance": 0.10,
|
2026-03-18 17:13:20 +08:00
|
|
|
|
"angle_min": 0,
|
|
|
|
|
|
"angle_max": 0,
|
2026-01-19 16:59:52 +08:00
|
|
|
|
"description": "螺栓默认配置:mode=1(M1扭矩模式), torque_tolerance=10%, angle_min=1度, angle_max=360度"
|
|
|
|
|
|
},
|
|
|
|
|
|
"default_parameters": {
|
|
|
|
|
|
"product_id": "0000000000",
|
|
|
|
|
|
"station_name": "11111111111111111111",
|
|
|
|
|
|
"employee_id": "2222222222",
|
|
|
|
|
|
"tool_sn": "0000000000",
|
|
|
|
|
|
"controller_sn": "3333333333"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|