station.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. # 默认工位配置
  2. #单工位
  3. station:
  4. mode: single
  5. name: 液冷板安装+激光点固
  6. stations:
  7. - code: OP150C
  8. line_sn: XT
  9. ##双工位
  10. #station:
  11. # mode: single
  12. # name: 总成正面装配
  13. # stations:
  14. # - code: OP140A
  15. # line_sn: XT
  16. server:
  17. # ip: 127.0.0.1
  18. ip: 192.168.110.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. config:
  33. prefix: "+KB24" # 工件码前缀校验
  34. - id: check_quality
  35. name: 质量检查
  36. # 质量检查用的工艺号 如果在bind_material则是物料绑定用的工艺号不填有默认值
  37. craft: "100000"
  38. - id: scan_material
  39. name: 扫描冷板码
  40. config:
  41. label: 冷板码
  42. prefix: "+KA94" # 冷板码前缀校验
  43. - id: validate_material
  44. name: 校验冷板码
  45. config:
  46. craft: "400004" # 冷板校验用的工艺号
  47. # - id: scan_material
  48. # name: 扫描底护板码
  49. # config:
  50. # label: 底护板码
  51. # prefix: "+KB77" # 底护板码前缀校验
  52. # - id: validate_material
  53. # name: 校验底护板码
  54. # config:
  55. # craft: "400004"
  56. # - id: start_heartbeat
  57. #
  58. # - id: reset_device_count
  59. # name: 重置设备计数
  60. # config:
  61. # address: 8
  62. # value: 1
  63. # clear_addresses:
  64. # - address: 66
  65. # value: 0
  66. # - address: 68
  67. # value: 0
  68. # - address: 70
  69. # value: 0
  70. #
  71. # - id: wait_device_complete
  72. # - id: stop_heartbeat
  73. - id: upload_result
  74. name: 上传结果
  75. # craft: "500002" # A枪用500001,B枪的包改成500002
  76. - id: reset_station
  77. name: 重置工位
  78. device:
  79. enabled: false
  80. type: modbus_tcp
  81. connect_timeout: 3000
  82. connections:
  83. - station_index: 0
  84. ip: 192.168.0.6
  85. port: 502
  86. # - station_index: 1
  87. # ip: 192.168.0.16
  88. # port: 502
  89. timeout_enabled: true #预留但未实现的配置项
  90. heartbeat_address: 4160
  91. ready_signal_address: 8
  92. complete_condition:
  93. type: count
  94. # 拉铆过程参数采集配置(从PLC读取,通过HTTP上传到MES)
  95. prod_params:
  96. enabled: false
  97. # PLC寄存器地址(Int32,读取后除以1000得到实际值)
  98. fout_address: 4112 # 力输出值 F-out
  99. sout_address: 4120 # 行程输出值 S-out
  100. fmin_address: 4116 # 力最小值 F-min
  101. smin_address: 4126 # 行程最小值 S-min
  102. fmax_address: 4114 # 力最大值 F-max
  103. smax_address: 4124 # 行程最大值 S-max
  104. qty_address: 4 # 数量寄存器地址(Int16)
  105. upload_interval: 60 # 上传间隔(秒)
  106. ui:
  107. # 设备信息行配置(最多2行)
  108. # label: 可选前置标签,不配就不显示
  109. # preset_address: 预设数量寄存器地址
  110. # finished_address: 完成数量寄存器地址
  111. device_info_rows:
  112. - label: "A"
  113. # connection_index: 0
  114. # preset_address: 4534
  115. # finished_address: 66
  116. # - label: "B"
  117. # connection_index: 1
  118. # preset_address: 4534
  119. # finished_address: 66
  120. # 绑定物料
  121. show_material_input: true
  122. material_label: 冷板码