application.yml.example 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. # 自动化大冲:主界面 DB260 取批;五台压机跟批次采点;压机5冲次数量达标 → 打印结案
  2. # 五台与线体共用同一工位号(stations.station-sn),机台靠 press-no 区分
  3. # 结案 completeBatch 落 mes_flex_dc;压机采样 uploadPressParam 落 mes_flex_dc_press_param
  4. spring:
  5. main:
  6. web-application-type: none
  7. banner-mode: off
  8. application:
  9. name: mesclient-dachong
  10. logging:
  11. level:
  12. root: INFO
  13. com.mes: INFO
  14. mes:
  15. app-title: MES 自动化大冲
  16. server-ip: 192.168.9.19
  17. tick-ms: 500
  18. # 压机采样周期(毫秒) / 缓冲满多少点上报一次
  19. press-sample-ms: 1000
  20. press-upload-max: 20
  21. # 结案小票连接的系统打印机名;空=用 Windows 默认打印机
  22. printer-name:
  23. # 是否写 PLC MES允许运行点。false=开批/结案/清码都不写,本地仍取批盯产量
  24. mes-allow-enabled: false
  25. # 线体主站(唯一取码工位;五台压机共用此工位号)
  26. stations:
  27. - id: 1
  28. title: 自动化大冲
  29. station-sn: DC01
  30. plc-ip: 192.168.17.1
  31. plc-port: 102
  32. # MES允许运行 BOOL(例:DB260.200.0);空则只本地开批不写 PLC
  33. mes-allow-addr: DB260.141.0
  34. # =====================================================================
  35. # 五台压机过程页:不取码、不单独占工位;压机5「冲次数量」达标触发主界面打印结案
  36. # 点表全称 ↔ yml 配置项(地址按 S7 写法,例 DB3.168):
  37. # 冲次数量 → stroke-count-addr (UDINT;本批进度差;压机5结案看此点)
  38. # 生产高度 → die-height-addr (REAL)
  39. # 顶缸压力 → cylinder-pressure-addr (REAL)
  40. # 生产吨位 → tonnage-addr (REAL 或 DINT,由 tonnage-dint 决定)
  41. # 压机行程次数 → press-spm-addr (REAL)
  42. # 气垫风压 → air-cushion-addr (REAL;无机型则留空)
  43. # 顶杆行程 → ejector-stroke-addr (REAL;无机型则留空)
  44. # 能耗 → energy-addr (DINT;无机型则留空)
  45. # 另:device-run-addr = 设备运行 BOOL;空则界面不亮运行灯
  46. # tonnage-dint=true 按 DINT 读生产吨位,false 按 REAL 读
  47. # plc-ip 空:本机不连 PLC,不影响其它压机
  48. # =====================================================================
  49. presses:
  50. # ---------- 压机1 LS4-1300R ----------
  51. - press-no: 1
  52. title: 压机1 LS4-1300R
  53. press-model: LS4-1300R
  54. plc-ip: 192.168.17.150
  55. plc-port: 102
  56. stroke-count-addr: DB3.168 # 冲次数量
  57. die-height-addr: DB3.100 # 生产高度
  58. cylinder-pressure-addr: DB91.2 # 顶缸压力
  59. tonnage-addr: DB900.360 # 生产吨位
  60. tonnage-dint: true # 生产吨位数据类型:false=REAL,true=DINT
  61. press-spm-addr: DB63.6 # 压机行程次数
  62. air-cushion-addr: DB141.2 # 气垫风压(无则留空)
  63. ejector-stroke-addr: DB142.18 # 顶杆行程(无则留空)
  64. energy-addr: # 能耗(无则留空)
  65. device-run-addr: DB395.6.0 # 设备运行 BOOL
  66. # ---------- 压机2 JD36-800R ----------
  67. - press-no: 2
  68. title: 压机2 JD36-800R
  69. press-model: JD36-800R
  70. plc-ip: 192.168.17.170
  71. plc-port: 102
  72. stroke-count-addr: DB3.168 # 冲次数量
  73. die-height-addr: DB3.100 # 生产高度
  74. cylinder-pressure-addr: DB91.2 # 顶缸压力
  75. tonnage-addr: DB900.360 # 生产吨位
  76. tonnage-dint: true
  77. press-spm-addr: DB63.6 # 压机行程次数
  78. air-cushion-addr: # 气垫风压(无则留空)
  79. ejector-stroke-addr: # 顶杆行程(无则留空)
  80. energy-addr: # 能耗(无则留空)
  81. device-run-addr: DB395.6.0 # 设备运行 BOOL
  82. # ---------- 压机3 JD36-500R ----------
  83. - press-no: 3
  84. title: 压机3 JD36-500R
  85. press-model: JD36-500R
  86. plc-ip: 192.168.17.190
  87. plc-port: 102
  88. stroke-count-addr: DB3.168 # 冲次数量
  89. die-height-addr: DB3.100 # 生产高度
  90. cylinder-pressure-addr: DB91.2 # 顶缸压力
  91. tonnage-addr: DB900.360 # 生产吨位
  92. tonnage-dint: true
  93. press-spm-addr: DB63.6 # 压机行程次数
  94. air-cushion-addr: # 气垫风压(无则留空)
  95. ejector-stroke-addr: # 顶杆行程(无则留空)
  96. energy-addr: # 能耗(无则留空)
  97. device-run-addr: DB395.6.0 # 设备运行 BOOL
  98. # ---------- 压机4 JD36-500R ----------
  99. - press-no: 4
  100. title: 压机4 JD36-500R
  101. press-model: JD36-500R
  102. plc-ip: 192.168.17.210
  103. plc-port: 102
  104. stroke-count-addr: DB3.168 # 冲次数量
  105. die-height-addr: DB3.100 # 生产高度
  106. cylinder-pressure-addr: DB91.2 # 顶缸压力
  107. tonnage-addr: DB900.360 # 生产吨位
  108. tonnage-dint: true
  109. press-spm-addr: DB63.6 # 压机行程次数
  110. air-cushion-addr: # 气垫风压(无则留空)
  111. ejector-stroke-addr: # 顶杆行程(无则留空)
  112. energy-addr: # 能耗(无则留空)
  113. device-run-addr: DB395.6.0 # 设备运行 BOOL
  114. # ---------- 压机5 JD36-500R(冲次数量达标 → 主界面打印结案) ----------
  115. - press-no: 5
  116. title: 压机5 JD36-500R
  117. press-model: JD36-500R
  118. plc-ip: 192.168.17.230
  119. plc-port: 102
  120. stroke-count-addr: DB3.168 # 冲次数量
  121. die-height-addr: DB3.100 # 生产高度
  122. cylinder-pressure-addr: DB91.2 # 顶缸压力
  123. tonnage-addr: DB900.360 # 生产吨位
  124. tonnage-dint: true
  125. press-spm-addr: DB63.6 # 压机行程次数
  126. air-cushion-addr: # 气垫风压(无则留空)
  127. ejector-stroke-addr: # 顶杆行程(无则留空)
  128. energy-addr: # 能耗(无则留空)
  129. device-run-addr: DB395.6.0 # 设备运行 BOOL