# 默认工位配置 # 单工位 station: mode: single name: 正面装配 stations: - code: OP150A line_sn: XT server: ip: 192.168.112.99 tcp_port: 3000 http_port: 8980 heart_beat_cycle: 60 workflow: # 提交模式:manual=手动点OK/NG,auto=自动提交 submit_mode: auto # 功能开关(yaml为默认值,运行时可在"设置→工艺流程配置"勾选,写入config/project_config.json覆盖) features: cold_plate: true # 扫+校验冷板码 bottom_plate: false # 扫+校验底护板码 riveting: true # 拉铆流程(心跳+计数+等待完成+停心跳) prod_params: true # 拉铆过程参数采集(device.prod_params 生效状态受此开关控制) steps: - id: scan_product name: 扫描工件码 # 前缀由"项目"决定(设置→切换项目),此处的 prefix 仅作 fallback config: prefix: "+KB24" - id: check_quality name: 质量检查 craft: "100000" # 质量检查工艺号 # ========== 冷板(feature: cold_plate) ========== - feature: cold_plate steps: - id: scan_material name: 扫描冷板码 config: label: 冷板码 prefix: "+KA94" # fallback,实际前缀由项目决定 - id: validate_material name: 校验冷板码 config: craft: "400004" # ========== 底护板(feature: bottom_plate) ========== - feature: bottom_plate steps: - id: scan_material name: 扫描底护板码 config: label: 底护板码 prefix: "+KB77" # fallback,实际前缀由项目决定 - id: validate_material name: 校验底护板码 config: craft: "400004" # ========== 拉铆(feature: riveting) ========== - feature: riveting steps: - id: start_heartbeat name: 启动心跳 - id: reset_device_count name: 重置设备计数 config: address: 8 value: 1 clear_addresses: - { address: 66, value: 0 } - { address: 68, value: 0 } - { address: 70, value: 0 } - id: wait_device_complete name: 等待拉铆完成 - id: stop_heartbeat name: 停止心跳 - id: upload_result name: 上传结果 - id: reset_station name: 重置工位 device: enabled: true type: modbus_tcp connect_timeout: 3000 connections: - station_index: 0 ip: 192.168.0.6 # 运行时可在"设置→修改拉铆设备IP"修改 port: 502 timeout_enabled: true heartbeat_address: 4160 ready_signal_address: 8 # 心跳配置 heartbeat: enabled: true address: 4160 # 心跳值寄存器(MES 写入 1/2/3 循环) interval: 500 # 心跳周期(ms) timeout_address: 4170 # 心跳超时阈值寄存器 timeout_value: 10 # 超时阈值(单位100ms,10=1秒) complete_condition: type: count # 拉铆过程参数采集(enabled 最终由 features.prod_params 决定) prod_params: enabled: true fout_address: 4112 # 力输出值 F-out sout_address: 4120 # 行程输出值 S-out fmin_address: 4116 # 力最小值 F-min smin_address: 4126 # 行程最小值 S-min fmax_address: 4114 # 力最大值 F-max smax_address: 4124 # 行程最大值 S-max qty_address: 4 # 数量寄存器地址(Int16) upload_interval: 60 # 上传间隔(秒) ui: # 设备信息行(最多2行) device_info_rows: - label: "A" connection_index: 0 preset_address: 4534 finished_address: 66 show_material_input: false material_label: 冷板码