1
zhangc
2026-01-19 f240886676a7fdcf50c11db965797903b952482c
src/main/resources/application.yml
@@ -1,24 +1,26 @@
server:
  port: 9090
  servlet:
    context-path: /@pom.build.finalName@
spring:
  application:
    name: @pom.build.finalName@
  datasource:
    # sql-server
    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    url: jdbc:sqlserver://127.0.0.1:1433;databasename=jsasrs
    username: sa
    password: sa@123
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://127.0.0.1:3306/wcs?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
    username: root
    password: xltys1995
  mvc:
    static-path-pattern: /**
  redis:
    host: localhost
    port: 6379
    database: 0
#    password: xltys1995
ctu:
  url: 10.10.10.200:8088
  station: /api/open/station/convey
  locSync: /api/open/loc/sync
  sendTask: /api/open/bus/submit
  getLoc: /api/open/loc/one
  update: /api/open/sta/update
mybatis-plus:
  mapper-locations: classpath:mapper/*.xml
@@ -26,7 +28,7 @@
#    field-strategy: 0
logging:
  path: /stock/out/logs
  path: stock/out/@pom.build.finalName@/logs
super:
  pwd: xltys1995
@@ -34,113 +36,47 @@
swagger:
  enable: false
# 下位机配置
wcs-slave:
  # 堆垛机1
  crn[0]:
    id: 1
    ip: 192.168.3.39
    port: 5015
    rack: 0
    slot: 0
    # 偏移量,当堆垛机站点列号=1时,偏移量=2
    offset: 2
    # 堆垛机入库站点
    crnInStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 4
      row: 2
      bay: 1
      lev: 1
    # 堆垛机出库站点
    crnOutStn[0]:
      devpPlcId: ${wcs-slave.devp[0].id}
      staNo: 2
      row: 1
      bay: 1
      lev: 1
    # 堆垛机2
    crn[1]:
      id: 1
      ip: 192.168.3.40
      port: 5015
      rack: 0
      slot: 0
      # 偏移量,当堆垛机站点列号=1时,偏移量=0
      offset: 1
      # 堆垛机入库站点
      crnInStn[0]:
        devpPlcId: ${wcs-slave.devp[0].id}
        staNo: 8
        row: 2
        bay: 1
        lev: 1
      # 堆垛机出库站点
      crnOutStn[0]:
        devpPlcId: ${wcs-slave.devp[0].id}
        staNo: 6
        row: 1
        bay: 1
        lev: 1
  # 输送线
  # 输送线1
  devp[0]:
    id: 1
    ip: 192.168.3.65
    port: 6000
    ip: 10.10.10.191
    port: 102
    rack: 0
    slot: 1
    slot: 0
    staNos: 1001,1002,1003,1004,1005,1006,1007
    # 入库口1
    inSta[0]:
      staNo: 3
      staNo: 1007
      barcode: ${wcs-slave.barcode[0].id}
    # 入库口2
    inSta[1]:
      staNo: 7
      barcode: ${wcs-slave.barcode[0].id}
    # 空板入库口1
    emptyInSta[0]:
      staNo: 3
    # 空板入库口2
    emptyInSta[1]:
      staNo: 7
      backSta: 1007
      led: ${wcs-slave.led[0].id}
    # 出库口1
    outSta[0]:
      staNo: 1
    # 出库口2
    outSta[1]:
      staNo: 5
    # 拣料入库口
    pickSta[0]:
      staNo: 2
  # 条码扫描仪
      staNo: 1001
  # 条码扫描仪1
  barcode[0]:
    id: 1
    ip: 192.168.2.150
    ip: 10.10.10.194
    port: 51236
  # LED
  # 条码扫描仪2
  barcode[1]:
    id: 2
    ip: 10.10.10.146
    port: 51236
  # LED1
  led[0]:
    id: 1
    ip: 192.168.1.1
    port: 8888
  # 磅称
  scale[0]:
    id: 1
    ip: 192.168.1.1
    port: 8888
    ip: 10.10.10.101
    port: 5005
    devpPlcId: ${wcs-slave.devp[0].id}
    staArr: 100
  # LED2
  led[1]:
    id: 2
    ip: 10.10.10.102
    port: 5005
    devpPlcId: ${wcs-slave.devp[0].id}
    staArr: 200