application.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #
  2. # Copyright 2016-present the original author or authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # https://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. driver:
  17. tenant: default
  18. name: PlcS7驱动
  19. code: PlcS7Driver
  20. type: DRIVER
  21. remark: @project.description@
  22. schedule:
  23. # 定时读数据
  24. read:
  25. enable: true
  26. corn: '0/30 * * * * ?'
  27. custom:
  28. enable: true
  29. corn: '0/5 * * * * ?'
  30. driver-attribute:
  31. - display-name: 主机
  32. attribute-name: host
  33. attribute-type-flag: STRING
  34. default-value: 192.168.0.20
  35. remark: Ip
  36. - display-name: 端口
  37. attribute-name: port
  38. attribute-type-flag: INT
  39. default-value: 102
  40. remark: Port
  41. point-attribute:
  42. - display-name: DB序号
  43. attribute-name: dbNum
  44. attribute-type-flag: INT
  45. default-value: 0
  46. remark: 数据块号,从 0 开始计数
  47. - display-name: 字偏移
  48. attribute-name: byteOffset
  49. attribute-type-flag: INT
  50. default-value: 0
  51. remark: 字偏移
  52. - display-name: 位偏移
  53. attribute-name: bitOffset
  54. attribute-type-flag: INT
  55. default-value: 0
  56. remark: 位偏移
  57. - display-name: 数据块长度
  58. attribute-name: blockSize
  59. attribute-type-flag: INT
  60. default-value: 8
  61. remark: 数据块长度
  62. spring:
  63. application:
  64. name: @project.artifactId@
  65. profiles:
  66. active:
  67. - ${NODE_ENV:dev}
  68. logging:
  69. file:
  70. name: dc3/logs/driver/plcs7/${spring.application.name}.log