config.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <config>
  3. <sysConfig>
  4. <caputreSetting>
  5. <enable>true</enable>
  6. <host>192.168.1.11</host>
  7. <port>8000</port>
  8. <username>admin</username>
  9. <pwd>ap123456</pwd>
  10. <brand>5000</brand>
  11. </caputreSetting>
  12. <serialSetting>
  13. <host>192.168.1.254</host>
  14. <weighbridge>
  15. <enable>true</enable>
  16. <port>4005</port>
  17. <brand>3000</brand>
  18. <minKg>5000</minKg>
  19. </weighbridge>
  20. <led>
  21. <enable>true</enable>
  22. <port>4003</port>
  23. <brand>2000</brand>
  24. </led>
  25. <electron>
  26. <enable>true</enable>
  27. <port>4002</port>
  28. <brand>2000</brand>
  29. </electron>
  30. <plc>
  31. <enable>true</enable>
  32. <port>4001</port>
  33. <!--输出-->
  34. <out>
  35. <signalRedPoint>02</signalRedPoint>
  36. <signalGreenPoint>03</signalGreenPoint>
  37. <gatePoint>00</gatePoint>
  38. </out>
  39. <!--状态信号-->
  40. <status>
  41. <!--上到位-->
  42. <upPoint>0</upPoint>
  43. <!--下到位-->
  44. <downPoint>1</downPoint>
  45. <!--雷达-->
  46. <radarPoint>2</radarPoint>
  47. <!--前红外-->
  48. <fRedPoint>3</fRedPoint>
  49. <!--后红外-->
  50. <bRedPoint>4</bRedPoint>
  51. </status>
  52. </plc>
  53. </serialSetting>
  54. </sysConfig>
  55. <eventList>
  56. <event>
  57. <name>WEIGHBRIDGE.READ</name>
  58. <!--动作格式 模块.命令-->
  59. <actionList>
  60. <action>LED.LED_SHOW_CONTENT(03|地磅初始化)</action>
  61. <action>CENTER.TIMER_SLEEP(1500)</action>
  62. <action>LED.LED_SHOW_CONTENT(04|即将称重,请停稳车辆)</action>
  63. <action>CENTER.TIMER_SLEEP(2000)</action>
  64. <action>LED.LED_SHOW_CONTENT(03|地磅称重中)</action>
  65. <action>WEIGHBRIDGE.START_READ</action>
  66. <action>CENTER.TIMER_SLEEP(4000)</action>
  67. <action>LED.LED_SHOW_CONTENT(${weight})</action>
  68. <action>CENTER.TIMER_SLEEP(500)</action>
  69. <action>LED.LED_SHOW_CONTENT(04|称重成功,后台验放通讯中)</action>
  70. <action>CENTER.SUBMIT</action>
  71. </actionList>
  72. </event>
  73. <event>
  74. <name>LED.READ</name>
  75. <actionList>
  76. <action>LED.LED_SHOW_CONTENT(红外初始化=======)</action>
  77. <action>CENTER.TIMER_SLEEP(10000)</action>
  78. <action>LED.LED_SHOW_CONTENT(欢迎使用红外)</action>
  79. </actionList>
  80. </event>
  81. <event>
  82. <!--识别到车牌-->
  83. <name>CAPTURE.CAPTURE_CAR_NO</name>
  84. <actionList>
  85. <action>LED.LED_SHOW_CONTENT(${platNo})</action>
  86. <action>LED.LED_SHOW_CONTENT(04|请继续行驶)</action>
  87. <action>PLC.RED_LIGHT_ON</action>
  88. <action>CENTER.TIMER_SLEEP(5000)</action>
  89. <action>PLC.RED_LIGHT_OFF</action>
  90. </actionList>
  91. </event>
  92. <event>
  93. <!--通过校验,抬杆-->
  94. <name>PLC.RAILING_RISE</name>
  95. <actionList>
  96. <action>PLC.RAILING_RISE_ON</action>
  97. <action>CENTER.TIMER_SLEEP(5000)</action>
  98. <action>PLC.RAILING_RISE_OFF</action>
  99. </actionList>
  100. </event>
  101. <event>
  102. <!--校验失败-->
  103. <name>PLC.SUBMIT_TIMEOUT</name>
  104. <actionList>
  105. <action>LED.LED_SHOW_CONTENT(04|提交数据请求失败,请联系管理人员)</action>
  106. </actionList>
  107. </event>
  108. <event>
  109. <!--通道重置-->
  110. <name>PLC.IDLE</name>
  111. <actionList>
  112. <action>CENTER.TIMER_SLEEP(5000)</action>
  113. <action>PLC.GREEN_LIGHT_ON</action>
  114. <action>LED.LED_SHOW_CONTENT(${channel})</action>
  115. <action>LED.LED_SHOW_CONTENT(${platNo})</action>
  116. <action>LED.LED_SHOW_CONTENT(${weight})</action>
  117. <action>LED.LED_SHOW_CONTENT(04|通道就绪,请通行)</action>
  118. <action>CENTER.TIMER_SLEEP(5000)</action>
  119. <action>PLC.GREEN_LIGHT_OFF</action>
  120. </actionList>
  121. </event>
  122. <event>
  123. <name>WEIGHBRIDGE.TIMEOUT</name>
  124. <actionList>
  125. <action>CENTER.TIMER_SLEEP(1000)</action>
  126. <action>LED.LED_SHOW_CONTENT(03|称重异常)</action>
  127. <action>LED.LED_SHOW_CONTENT(04|请退车并请联系管理人员)</action>
  128. </actionList>
  129. </event>
  130. <event>
  131. <name>WEIGHBRIDGE.POSITION_ERROR</name>
  132. <actionList>
  133. <action>LED.LED_SHOW_CONTENT(03|车辆位置异常或异常跟车)</action>
  134. <action>LED.LED_SHOW_CONTENT(04|请完全退出通道后再次进入通道)</action>
  135. </actionList>
  136. </event>
  137. <event>
  138. <name>CAPTURE.CAPTURE_FAILED</name>
  139. <actionList>
  140. <action>LED.LED_SHOW_CONTENT(02|车牌获取异常)</action>
  141. <action>LED.LED_SHOW_CONTENT(04|请退车并申请人工处理)</action>
  142. </actionList>
  143. </event>
  144. <event>
  145. <!--行政通道 识别到车牌-->
  146. <name>CAPTURE.CAPTURE_ADMIN</name>
  147. <actionList>
  148. <action>LED.LED_SHOW_CONTENT(${platNo})</action>
  149. <action>CENTER.TIMER_SLEEP(500)</action>
  150. <action>LED.LED_SHOW_CONTENT(04|后台验放通讯中)</action>
  151. <action>CENTER.SUBMIT</action>
  152. </actionList>
  153. </event>
  154. </eventList>
  155. </config>