#
Junjie
8 天以前 8412259640cb8a3bb63dc187563a1a3aee936a64
src/main/resources/application.yml
@@ -7,26 +7,35 @@
  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
    hikari:
      validation-timeout: 3000
      connection-test-query: select 1
    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: root
  mvc:
    static-path-pattern: /**
  redis:
    host: localhost
    host: 127.0.0.1
    port: 6379
    database: 0
#    password: xltys1995
  #    password: 123456
  task:
    scheduling:
      pool:
        size: 3
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/logs
  path: ./stock/out/@pom.build.finalName@/logs
super:
  pwd: xltys1995
@@ -34,113 +43,17 @@
swagger:
  enable: false
# 下位机配置
wcs-slave:
  # 堆垛机1
  crn[0]:
    id: 1
    ip: 192.168.3.39
    port: 5015
    rack: 0
    slot: 0
    # 偏移量,当堆垛机站点列号=1时,偏移量=0
    offset: 1
    # 堆垛机入库站点
    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
  # 输送线
  devp[0]:
    id: 1
    ip: 192.168.3.65
    port: 6000
    rack: 0
    slot: 1
    # 入库口1
    inSta[0]:
      staNo: 3
      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
    # 出库口1
    outSta[0]:
      staNo: 1
    # 出库口2
    outSta[1]:
      staNo: 5
    # 拣料入库口
    pickSta[0]:
      staNo: 2
  # 条码扫描仪
  barcode[0]:
    id: 1
    ip: 192.168.2.150
    port: 51236
  # LED
  led[0]:
    id: 1
    ip: 192.168.1.1
    port: 8888
  # 磅称
  scale[0]:
    id: 1
    ip: 192.168.1.1
    port: 8888
deviceExecuteConfig:
  # 每个线程管控设备执行数量
  threadControlCount: 10
  liftType: lift
mainProcessPlugin: FakeProcess
deviceLogStorage:
  # 设备日志存储方式 mysql file
  type: file
  # file类型存储地址
  loggingPath: ./stock/out/@pom.build.finalName@/deviceLogs
  # 日志过期时间 单位天
  expireDays: 7