config.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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>false</enable>
  8. <port>4005</port>
  9. <brand></brand>
  10. <minKg>5000</minKg>
  11. </weighbridge>
  12. <car>
  13. <enable>false</enable>
  14. <port>4002</port>
  15. <brand>1000</brand>
  16. </car>
  17. <led>
  18. <enable>true</enable>
  19. <port>4003</port>
  20. <brand>2000</brand>
  21. </led>
  22. <electron>
  23. <enable>true</enable>
  24. <port>4002</port>
  25. <brand>2000</brand>
  26. </electron>
  27. <plc>
  28. <enable>true</enable>
  29. <port>4001</port>
  30. <!--输出-->
  31. <out>
  32. <signalRedPoint>02</signalRedPoint>
  33. <signalGreenPoint>03</signalGreenPoint>
  34. <gatePoint>00</gatePoint>
  35. </out>
  36. <!--状态信号-->
  37. <status>
  38. <!--上到位-->
  39. <upPoint>0</upPoint>
  40. <!--下到位-->
  41. <downPoint>1</downPoint>
  42. <!--雷达-->
  43. <radarPoint>2</radarPoint>
  44. <!--前红外-->
  45. <fRedPoint>3</fRedPoint>
  46. <!--后红外-->
  47. <bRedPoint>4</bRedPoint>
  48. </status>
  49. </plc>
  50. </serialSetting>
  51. </sysConfig>
  52. <eventList>
  53. <event>
  54. <name>WEIGHBRIDGE.READ</name>
  55. <!--动作格式 模块.命令-->
  56. <actionList>
  57. <action>LED.LED_SHOW_CONTENT(地磅初始化)</action>
  58. <action>CENTER.TIMER_SLEEP(1500)</action>
  59. <action>LED.LED_SHOW_CONTENT(即将称重,请停稳车辆)</action>
  60. <action>CENTER.TIMER_SLEEP(3000)</action>
  61. <action>LED.LED_SHOW_CONTENT(地磅称重中)</action>
  62. <action>WEIGHBRIDGE.START_READ</action>
  63. <action>LED.LED_SHOW_CONTENT(${weight})</action>
  64. <action>CENTER.SUBMIT</action>
  65. </actionList>
  66. </event>
  67. <event>
  68. <name>LED.READ</name>
  69. <actionList>
  70. <action>LED.LED_SHOW_CONTENT(红外初始化=======)</action>
  71. <action>CENTER.TIMER_SLEEP(10000)</action>
  72. <action>LED.LED_SHOW_CONTENT(欢迎使用红外)</action>
  73. </actionList>
  74. </event>
  75. <event>
  76. <!--识别到车牌-->
  77. <name>CAPTURE.CAPTURE_CAR_NO</name>
  78. <actionList>
  79. <action>LED.LED_SHOW_CONTENT(${platNo})</action>
  80. <action>PLC.RED_LIGHT_ON</action>
  81. <action>CENTER.TIMER_SLEEP(5000)</action>
  82. <action>PLC.RED_LIGHT_OFF</action>
  83. </actionList>
  84. </event>
  85. <event>
  86. <!--通过校验,抬杆-->
  87. <name>PLC.RAILING_RISE</name>
  88. <actionList>
  89. <action>LED.LED_SHOW_CONTENT(校验已通过)</action>
  90. <action>PLC.RAILING_RISE_ON</action>
  91. <action>CENTER.TIMER_SLEEP(5000)</action>
  92. <action>PLC.RAILING_RISE_OFF</action>
  93. </actionList>
  94. </event>
  95. <event>
  96. <!--校验失败-->
  97. <name>PLC.CHECK_FAILED</name>
  98. <actionList>
  99. <action>LED.LED_SHOW_CONTENT(校验失败,请退出通道)</action>
  100. </actionList>
  101. </event>
  102. <event>
  103. <!--通道重置-->
  104. <name>PLC.IDLE</name>
  105. <actionList>
  106. <action>PLC.GREEN_LIGHT_ON</action>
  107. <action>LED.LED_SHOW_CONTENT(${platNo})</action>
  108. <action>LED.LED_SHOW_CONTENT(通道就绪,请通行)</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>LED.LED_SHOW_CONTENT(地磅称重数据异常,请联系管理人员)</action>
  117. </actionList>
  118. </event>
  119. </eventList>
  120. </config>