Junjie
2023-04-10 fdbbac3e711e6be54513cca6fa4ec3a17d293f49
src/main/resources/application.yml
@@ -8,8 +8,9 @@
    name: @pom.build.finalName@
  datasource:
    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    url: jdbc:sqlserver://localhost:1433;databasename=htasrs
    url: jdbc:sqlserver://192.168.4.15:1433;databasename=xzjlasrs
    username: sa
#    password: Zoneyung@zy56$
    password: sa@123
  mvc:
    static-path-pattern: /**
@@ -17,12 +18,15 @@
    host: localhost
    port: 6379
    database: 0
#    password: xltys1995
#    password: 123456
mybatis-plus:
  mapper-locations: classpath:mapper/*.xml
#  global-config:
#    field-strategy: 0
#  configuration:
#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
logging:
  path: /stock/out/@pom.build.finalName@/logs
@@ -33,181 +37,229 @@
swagger:
  enable: false
wms:
  url: localhost:8080/szfzwms
erp:
  db:
    driver_class_name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    ur: jdbc:sqlserver://10.10.10.209:1433;databasename=POY_ASRS
    username: poy-asrs
    password: Poy@2022
# 下位机配置
wcs-slave:
  # 双深
  doubleDeep: true
  # 双深库位排号
  doubleLocs: 1,4,5,8
  doubleLocs: 32
  # 一个堆垛机负责的货架排数
  groupCount: 4
  groupCount: 2
  # 穿梭车通道库位
  channel: '0100101'
  # 堆垛机1
  crn[0]:
    id: 1
    ip: 192.168.10.10
    ip: 10.10.10.110
    port: 102
    rack: 0
    slot: 1
    slot: 0
    # 偏移量,当堆垛机站点列号=1时,偏移量=2
    offset: 2
    demo: false
    # 堆垛机入库站点
    crnInStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 205
      row: 2
      bay: 65
      staNo: 102
      row: 4
      bay: 6
      lev: 1
    # 堆垛机入库站点
    crnInStn[1]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 118
      row: 2
      bay: 0
      lev: 1
    # 堆垛机出库站点
    crnOutStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 203
      row: 3
      bay: 65
      lev: 1
    # 堆垛机出库站点
    crnOutStn[1]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 120
      row: 3
      bay: 0
      lev: 1
  # 堆垛机2
  crn[1]:
    id: 2
    ip: 192.168.10.20
    port: 102
    rack: 0
    slot: 1
    # 偏移量,当堆垛机站点列号=1时,偏移量=2
    offset: 2
    demo: false
    # 堆垛机入库站点
    crnInStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 202
      row: 6
      bay: 65
      lev: 1
      row: 4
      bay: 6
      lev: 3
    # 堆垛机入库站点
    crnInStn[1]:
    crnInStn[2]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 124
      row: 6
      bay: 0
      lev: 1
      staNo: 302
      row: 4
      bay: 6
      lev: 6
    # 堆垛机出库站点
    crnOutStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 200
      row: 7
      bay: 65
      staNo: 102
      row: 4
      bay: 6
      lev: 1
    # 堆垛机出库站点
    crnOutStn[1]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 100
      row: 7
      bay: 0
      lev: 1
      staNo: 202
      row: 4
      bay: 6
      lev: 3
    # 堆垛机出库站点
    crnOutStn[2]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 302
      row: 4
      bay: 6
      lev: 6
  # 穿梭车1
  ste[0]:
    id: 1
    ip: 10.10.10.120
    port: 502
    rack: 0
    slot: 0
  # 输送线
  devp[0]:
    id: 1
    ip: 192.168.10.100
    ip: 192.168.4.250
    port: 102
    rack: 0
    slot: 1
    slot: 0
    # 入库口1
    inSta[0]:
      staNo: 205
      staNo: 101
      backSta: 100
      barcode: ${wcs-slave.barcode[0].id}
    # 入库口2
    inSta[1]:
      staNo: 202
      barcode: ${wcs-slave.barcode[1].id}
    inSta[2]:
      staNo: 110
      led: ${wcs-slave.led[0].id}
    # 空板入库口1
    emptyInSta[0]:
      staNo: 205
    # 空板入库口2
    emptyInSta[1]:
      staNo: 202
    # 空板入库口3
    emptyInSta[2]:
      staNo: 126
      staNo: 102
      backSta: 100
      barcode: ${wcs-slave.barcode[0].id}
      led: ${wcs-slave.led[0].id}
    # 出库口1
    outSta[0]:
      staNo: 200
    # 出库口2
    outSta[1]:
      staNo: 203
    # 出库口3
    outSta[2]:
      staNo: 103
    # 拣料入库口
    pickSta[0]:
      staNo: 127
    # 拣料入库口
    pickSta[1]:
      staNo: 128
      staNo: 100
      led: ${wcs-slave.led[1].id}
    # 拣料出库口
    pickInSta[0]:
      staNo: 100
      barcode: ${wcs-slave.barcode[0].id}
      backSta: 100
      led: ${wcs-slave.led[0].id}
    # 货架入库站点
    rackInStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 105
      row: 4
      bay: 6
      lev: 1
    # 货架入库站点
    rackInStn[1]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 106
      row: 4
      bay: 6
      lev: 3
    # 货架入库站点
    rackInStn[2]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 107
      row: 4
      bay: 6
      lev: 6
    # 货架入库站点
    rackInStn[3]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 108
      row: 4
      bay: 6
      lev: 6
    # 货架出库站点
    rackOutStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 100
      row: 15
      bay: 2
      lev: 1
    # 货架出库站点
    rackOutStn[1]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 104
      row: 4
      bay: 6
      lev: 1
    # 货架出库站点
    rackOutStn[2]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 105
      row: 4
      bay: 6
      lev: 3
    # 货架出库站点
    rackOutStn[3]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 108
      row: 4
      bay: 6
      lev: 6
  # 条码扫描仪
  barcode[0]:
    id: 1
    ip: 192.168.10.130
    ip: 10.10.10.104
    port: 51236
  # 条码扫描仪
  barcode[1]:
    id: 2
    ip: 192.168.10.131
    ip: 10.10.10.105
    port: 51236
  # LED1
   # LED1
  led[0]:
    id: 1
    ip: 192.168.10.211
    ip: 10.10.10.241
    port: 5005
    devpPlcId: ${wcs-slave.devp[0].id}
    staArr: 113
    staArr: 102
  # LED2
  led[1]:
    id: 2
    ip: 192.168.10.221
    ip: 10.10.10.242
    port: 5005
    devpPlcId: ${wcs-slave.devp[0].id}
    staArr: 109
  # LED3
  led[2]:
    id: 3
    ip: 192.168.10.231
    port: 5005
    devpPlcId: ${wcs-slave.devp[0].id}
    staArr: 103
  # 磅称
  scale[0]:
    staArr: 201
  # 四向穿梭车1
  shuttle[0]:
    id: 1
    ip: 192.168.10.135
    port: 2
    ip: 192.168.4.24
    port: 502
    rack: 0
    slot: 0
  # 四向穿梭车2
#  shuttle[1]:
#    id: 2
#    ip: 192.168.4.22
#    port: 502
#    rack: 0
#    slot: 0
  # 提升机1
  lift[0]:
    id: 1
    ip: 192.168.4.24
    port: 502
    row: 18
    bay: 2
    sta[0]:
      staNo: 105
      lev: 1
    sta[1]:
      staNo: 106
      lev: 2
    sta[2]:
      staNo: 107
      lev: 3
    sta[3]:
      staNo: 108
      lev: 4