#
zhou zhou
2025-12-11 964a867a0e8a0814ecd7152a8ef1266f664a014b
src/main/resources/application.yml
@@ -1,5 +1,5 @@
server:
  port: 9090
  port: 8088
  servlet:
    context-path: /@pom.build.finalName@
@@ -8,10 +8,7 @@
    name: @pom.build.finalName@
  datasource:
    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    #    url: jdbc:sqlserver://47.97.1.152:51433;databasename=xgmasrs
    #    username: sa
    #    password: Zoneyung@zy56$
    url: jdbc:sqlserver://localhost:1433;databasename=xgmasrs
    url: jdbc:sqlserver://192.168.4.15:1433;databasename=jsxsasrs
    username: sa
    password: sa@123
  mvc:
@@ -37,167 +34,197 @@
  enable: false
wms:
  url: 10.10.10.238:8080/xgmwms
#  url: localhost:8082/xgmwms
  url: 10.0.100.132:8080/gtCrnWms
# 下位机配置
wcs-slave:
  # 双深
  doubleDeep: true
  # 双深库位排号
  doubleLocs: 1,4,5,8,9,12,13,16,17,20
  doubleLocs: 1,4,5,8,9,12
  # 一个堆垛机负责的货架排数
  groupCount: 4
  # 堆垛机1
  crn[0]:
    id: 1
    ip: 10.10.10.10
    port: 8888
    ip: 10.200.51.180
    port: 102
    rack: 0
    slot: 0
    # 偏移量,当堆垛机站点列号=1时,偏移量=2
    offset: 2
    offset: 0
    demo: false
    # 堆垛机入库站点
    crnInStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 100
      staNo: 1017
      row: 2
      bay: 1
      bay: 47
      lev: 1
    # 堆垛机入库站点
    crnInStn[1]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 2003
      row: 3
      bay: 47
      lev: 2
    # 堆垛机出库站点
    crnOutStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 101
      staNo: 1029
      row: 3
      bay: 47
      lev: 1
    # 堆垛机出库站点
    crnOutStn[1]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 2003
      row: 3
      bay: 47
      lev: 2
    crnInStn[2]:
      devpPlcId: ${wcs-slave.devp[1].id}
      staNo: 1043
      row: 3
      bay: 1
      lev: 1
    # 堆垛机出库站点
    crnOutStn[2]:
      devpPlcId: ${wcs-slave.devp[1].id}
      staNo: 1043
      row: 3
      bay: 1
      lev: 1
    crnInStn[3]:
      devpPlcId: ${wcs-slave.devp[1].id}
      staNo: 2013
      row: 3
      bay: 1
      lev: 2
    # 堆垛机出库站点
    crnOutStn[3]:
      devpPlcId: ${wcs-slave.devp[1].id}
      staNo: 2013
      row: 3
      bay: 1
      lev: 2
    crnInStn[4]:
      devpPlcId: ${wcs-slave.devp[1].id}
      staNo: 3013
      row: 3
      bay: 1
      lev: 3
    # 堆垛机出库站点
    crnOutStn[4]:
      devpPlcId: ${wcs-slave.devp[1].id}
      staNo: 3013
      row: 3
      bay: 1
      lev: 3
  # 堆垛机2
  crn[1]:
    id: 2
    ip: 10.10.10.13
    port: 8888
    ip: 10.200.51.189
    port: 102
    rack: 0
    slot: 0
    # 偏移量,当堆垛机站点列号=1时,偏移量=2
    offset: 2
    offset: 0
    demo: false
    # 堆垛机入库站点
    crnInStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 102
      row: 6
      bay: 1
      staNo: 1021
      row: 7
      bay: 47
      lev: 1
    # 堆垛机出库站点
    crnOutStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 103
      row: 7
      bay: 1
      lev: 1
  # 堆垛机3
  crn[2]:
    id: 3
    ip: 10.10.10.16
    port: 8888
    ip: 10.200.51.200
    port: 102
    rack: 0
    slot: 0
    # 偏移量,当堆垛机站点列号=1时,偏移量=2
    offset: 2
    offset: 0
    demo: false
    # 堆垛机入库站点
    crnInStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 104
      row: 10
      bay: 1
      lev: 1
    # 堆垛机出库站点
    crnOutStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 105
      staNo: 1033
      row: 11
      bay: 1
      lev: 1
  # 堆垛机4
  crn[3]:
    id: 4
    ip: 10.10.10.19
    port: 8888
    # 偏移量,当堆垛机站点列号=1时,偏移量=2
    offset: 2
    demo: false
    # 堆垛机入库站点
    crnInStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 106
      row: 14
      bay: 1
      bay: 47
      lev: 1
    # 堆垛机出库站点
    crnOutStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 107
      row: 15
      bay: 1
      lev: 1
  # 堆垛机5
  crn[4]:
    id: 5
    ip: 10.10.10.22
    port: 8888
    # 偏移量,当堆垛机站点列号=1时,偏移量=2
    offset: 2
    demo: false
    # 堆垛机入库站点
    crnInStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 108
      row: 18
      bay: 1
      lev: 1
    # 堆垛机出库站点
    crnOutStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 109
      row: 19
      bay: 1
      lev: 1
  # 输送线
  # 输送线1
  devp[0]:
    id: 1
    ip: 10.10.10.50
    ip: 10.200.51.47
    port: 102
    rack: 0
    slot: 0
    # 入库口1
    inSta[0]:
      staNo: 176
      barcode: ${wcs-slave.barcode[0].id}
    # 空板入库口1
    emptyInSta[0]:
      staNo: 176
    # 出库口1
    outSta[0]:
      staNo: 173
    # 出库口2
    outSta[1]:
      staNo: 182
    # 拣料入库口
    pickSta[0]:
      staNo: 176
      barcode: ${wcs-slave.barcode[0].id}
  # 条码扫描仪
  barcode[0]:
    id: 1
    ip: 10.10.10.52
    port: 51236
      staNo: 1001
      backSta: 1000
      led: ${wcs-slave.led[0].id}
  devp[1]:
    id: 2
    ip: 10.200.51.10
    port: 102
    rack: 0
    slot: 0
    # 入库口1
    inSta[0]:
      staNo: 1041
      backSta: 1040
      led: ${wcs-slave.led[3].id}
   # LED1
  led[0]:
    id: 1
    ip: 10.10.10.60
    ip: 10.10.10.101
    port: 5005
    devpPlcId: ${wcs-slave.devp[0].id}
    staArr: 172
    staArr: 1001
  # LED2
  led[1]:
    id: 2
    ip: 10.10.10.61
    ip: 10.10.10.102
    port: 5005
    devpPlcId: ${wcs-slave.devp[0].id}
    staArr: 182
    staArr: 1024
  # LED3
  led[2]:
    id: 3
    ip: 10.10.10.103
    port: 5005
    devpPlcId: ${wcs-slave.devp[0].id}
    staArr: 1028
  # LED4
  led[3]:
    id: 4
    ip: 10.10.10.104
    port: 5005
    devpPlcId: ${wcs-slave.devp[1].id}
    staArr: 1040,1041
  # LED5
  led[4]:
    id: 5
    ip: 10.10.10.105
    port: 5005
    devpPlcId: ${wcs-slave.devp[1].id}
    staArr: 1042
  # LED6
  led[5]:
    id: 6
    ip: 127.0.0.1
    port: 5005
    devpPlcId: ${wcs-slave.devp[0].id}
    agvStaArr: CN01002008