wangxichen преди 1 седмица
ревизия
d75f451c80
променени са 1 файла, в които са добавени 106 реда и са изтрити 0 реда
  1. 106 0
      station.yaml

+ 106 - 0
station.yaml

@@ -0,0 +1,106 @@
+# 默认工位配置
+
+#单工位
+#station:
+#  mode: single
+#  name: 液冷板安装+激光点固
+#  stations:
+#    - code: OP150
+#  line_sn: XT
+
+#双工位
+station:
+  mode: single
+  name: 总成正面装配
+  stations:
+    - code: OP220
+  line_sn: XT
+
+server:
+#  ip: 127.0.0.1
+  ip: 192.168.113.99
+  tcp_port: 3000
+  http_port: 8980
+  heart_beat_cycle: 60
+
+workflow:
+  #手动模式
+#  submit_mode: manual
+#  自动模式
+  submit_mode: auto
+
+  steps:
+#    - id: read_device_data
+#      name: 读取设备数据
+    - id: scan_product
+      name: 扫描工件码
+    - id: check_quality
+      name: 质量检查
+      # 质量检查用的工艺号  如果在bind_material则是物料绑定用的工艺号不填有默认值
+      craft: "100000"
+#    - id: scan_material
+#      name: 扫描冷板码
+#    - id: validate_material
+#      name: 校验冷板码
+#      config:
+#        craft: "400004"  # 冷板校验用的工艺号
+
+    - id: start_heartbeat
+
+    - 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
+    - id: stop_heartbeat
+
+    - id: upload_result
+      name: 上传结果
+#      craft: "500002"   # A枪用500001,B枪的包改成500002
+    - id: reset_station
+      name: 重置工位
+
+device:
+  enabled: true
+  type: modbus_tcp
+  connect_timeout: 3000
+
+  connections:
+    - station_index: 0
+      ip: 192.168.0.6
+      port: 502
+#    - station_index: 1
+#      ip: 192.168.0.16
+#      port: 502
+  timeout_enabled: false #预留但未实现的配置项
+  heartbeat_address: 4160
+  ready_signal_address: 8
+  complete_condition:
+    type: count
+
+ui:
+#  设备信息行配置(最多2行)
+#  label: 可选前置标签,不配就不显示
+#  preset_address: 预设数量寄存器地址
+#  finished_address: 完成数量寄存器地址
+  device_info_rows:
+    - label: "A"
+      connection_index: 0
+      preset_address: 4534
+      finished_address: 66
+#    - label: "B"
+#      connection_index: 1
+#      preset_address: 4534
+#      finished_address: 66
+#  绑定物料
+  show_material_input: false
+  material_label: 冷板码