config.xml 5.3 KB

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