station.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # 默认工位配置
  2. #单工位
  3. #station:
  4. # mode: single
  5. # name: 液冷板安装+激光点固
  6. # stations:
  7. # - code: OP150
  8. # line_sn: XT
  9. #双工位
  10. station:
  11. mode: single
  12. name: 总成正面装配
  13. stations:
  14. - code: OP220
  15. line_sn: XT
  16. server:
  17. # ip: 127.0.0.1
  18. ip: 192.168.113.99
  19. tcp_port: 3000
  20. http_port: 8980
  21. heart_beat_cycle: 60
  22. workflow:
  23. #手动模式
  24. # submit_mode: manual
  25. # 自动模式
  26. submit_mode: auto
  27. steps:
  28. # - id: read_device_data
  29. # name: 读取设备数据
  30. - id: scan_product
  31. name: 扫描工件码
  32. - id: check_quality
  33. name: 质量检查
  34. # 质量检查用的工艺号 如果在bind_material则是物料绑定用的工艺号不填有默认值
  35. craft: "100000"
  36. # - id: scan_material
  37. # name: 扫描冷板码
  38. # - id: validate_material
  39. # name: 校验冷板码
  40. # config:
  41. # craft: "400004" # 冷板校验用的工艺号
  42. - id: start_heartbeat
  43. - id: reset_device_count
  44. name: 重置设备计数
  45. config:
  46. address: 8
  47. value: 1
  48. clear_addresses:
  49. - address: 66
  50. value: 0
  51. - address: 68
  52. value: 0
  53. - address: 70
  54. value: 0
  55. - id: wait_device_complete
  56. - id: stop_heartbeat
  57. - id: upload_result
  58. name: 上传结果
  59. # craft: "500002" # A枪用500001,B枪的包改成500002
  60. - id: reset_station
  61. name: 重置工位
  62. device:
  63. enabled: true
  64. type: modbus_tcp
  65. connect_timeout: 3000
  66. connections:
  67. - station_index: 0
  68. ip: 192.168.0.6
  69. port: 502
  70. # - station_index: 1
  71. # ip: 192.168.0.16
  72. # port: 502
  73. timeout_enabled: false #预留但未实现的配置项
  74. heartbeat_address: 4160
  75. ready_signal_address: 8
  76. complete_condition:
  77. type: count
  78. ui:
  79. # 设备信息行配置(最多2行)
  80. # label: 可选前置标签,不配就不显示
  81. # preset_address: 预设数量寄存器地址
  82. # finished_address: 完成数量寄存器地址
  83. device_info_rows:
  84. - label: "A"
  85. connection_index: 0
  86. preset_address: 4534
  87. finished_address: 66
  88. # - label: "B"
  89. # connection_index: 1
  90. # preset_address: 4534
  91. # finished_address: 66
  92. # 绑定物料
  93. show_material_input: false
  94. material_label: 冷板码