Files
Feeding_control_system/config/config.yaml
2025-09-17 21:54:55 +08:00

49 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 网络配置
network:
relay:
# 网络继电器所有485设备通过此接口转发
host: "192.168.0.18"
port: 50000
# Modbus设备配置通过网络继电器访问的RTU设备
modbus_devices:
inverter:
# 变频器
slave_id: 1
address: 1 # 设备地址(用于网络继电器转发识别)
transmitters:
upper:
# 上料斗变送器
slave_id: 2
address: 2
weight_register: 1
register_count: 2
lower:
# 下料斗变送器
slave_id: 3
address: 3
weight_register: 1
register_count: 2
# 系统参数
parameters:
min_required_weight: 50
max_error_count: 3
monitoring_interval: 1
timeout: 30
# 下料参数,频率
feeding:
stage1_frequency: 30.0
stage2_frequency: 40.0
stage3_frequency: 50.0
target_weight_per_stage: 33.3
# 继电器DO端口映射
relay:
door_upper: 0 # DO0 - 上料斗滑动门
door_lower_1: 1 # DO1 - 出砼门控制1
door_lower_2: 2 # DO2 - 出砼门控制2
break_arch_upper: 3 # DO3 - 上料斗破拱
break_arch_lower: 4 # DO4 - 下料斗破拱