readme.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. 所需驱动:
  2. 1.mysql-connector-net-6.9.8.msi
  3. 2.ZKFinger SDK 5.0.0.27(新指纹仪)
  4. 所需数据库:
  5. 1.mysql
  6. 2.数据适配器data-adapter
  7. 系统配置:
  8. 统一编码:conf/UniformCode.xml,主要配置风机参数等相关组态监控点
  9. 数据连接:GdxnyWindTurbineContorls.exe.config,需配置mysql数据库连接字符串,及其数据适配器restful接口地址
  10. 系统运行所需依赖dll:
  11. 1.uv.dll
  12. 2.gynet.dll
  13. 3.gymisc.dll
  14. 4.gycp.dll
  15. 将以上4个文件放在应用的根目录下
  16. 以上dll是系统创建风机控制句柄所需调用的的C++库
  17. 控制服务:
  18. 所需配置环境变量
  19. C:\Program Files (x86)\GYEE\gybase\bin
  20. C:\Program Files (x86)\GYEE\gybase\protocol
  21. C:\Program Files (x86)\GYEE\wormhole\addin
  22. C:\Program Files (x86)\GYEE\wormhole\bin
  23. C:\Program Files (x86)\GYEE\wormhole\plugin
  24. 所需安装:
  25. gybase-1.1.3-3.x86.msi
  26. wormhole-5.2.0-5.x86.msi
  27. vcredist_2010_x86.exe
  28. 服务搭建:
  29. bridge_service:
  30. 1.创建服务所在文件夹
  31. 2.创建文件夹config,log
  32. 3.config文件夹中创建文件bridge.json
  33. 4.log文件夹中创建文件log.log
  34. 创建服务命令:
  35. sc create GYEE_SBQ_CTRL_BRIDGED_5 binPath= "C:\Program Files (x86)\GYEE\wormhole\bin\bridged.exe -d \"GYEE_SBQ_CTRL_BRIDGED_5\" -c D:\Gyee_project\ControlService\SBQ_Control_5\config\bridged.json" start= auto
  36. modbus_service:
  37. 1.创建服务所在文件夹
  38. 2.创建文件夹addin,config,keytable,log
  39. 3.addin中创建libaddinmodbus.json
  40. 4.config中创建blackholed.json
  41. 5.keytable中创建keytable.sqlite3,该表为modbus地址映射表
  42. 6.log文件夹中创建log.log
  43. 创建服务命令:
  44. sc create GYEE_SBQ_CTRL_1 binPath= "C:\Program Files (x86)\GYEE\wormhole\bin\blackholed.exe -d \"GYEE_SBQ_CTRL_1\" -c D:\Gyee_project\ControlService\SBQ_COntrol_Service_1\config\blackholed.json" start= auto
  45. 创建sqlite3映射表命令:
  46. "C:\Program Files (x86)\GYEE\wormhole\tool\SQLite3\sqlite3.exe" D:\Gyee_project\ControlService\SBQ_COntrol_Service_1\keytable\keytable3.sqlite3 "drop table key_table;"
  47. "C:\Program Files (x86)\GYEE\wormhole\tool\SQLite3\sqlite3.exe" D:\Gyee_project\ControlService\SBQ_COntrol_Service_1\keytable\keytable3.sqlite3 "create table key_table(gycp_addr integer, modbus_uid integer, modbus_addr integer, modbus_fun integer, modbus_type integer, modbus_swap integer, switch_valid integer, switch_addr integer, switch_fun integer, switch_type integer, switch_swap integer, switch_value real);"
  48. "C:\Program Files (x86)\GYEE\wormhole\tool\SQLite3\sqlite3.exe" --csv D:\Gyee_project\ControlService\SBQ_COntrol_Service_1\keytable\keytable3.sqlite3 ".import D:\\Gyee_project\\ControlService\\SBQ_COntrol_Service_1\\keytable\\gyee_sbq_ctrl_3.csv key_table"
  49. ------------------------------配置文件示例-------------------------------
  50. bridge_service:
  51. ---bridged.json:
  52. {
  53. "engine": {
  54. "pwd": "D:\\Gyee_project\\ControlService\\SBQ_Control_1",//服务所在路径
  55. "stop_check": 100
  56. },
  57. "log": {
  58. "dir": "log",
  59. "file": "log.log",
  60. "level": 1
  61. },
  62. "mode": {
  63. "protocol": "tcp",
  64. "type": "loadbalancer"
  65. },
  66. "ci": {
  67. "t0": 30,
  68. "is_server": 1,
  69. "ip": "0.0.0.0",//本机ip
  70. "port": 9901,//服务端口
  71. "local_ip": "0.0.0.0",
  72. "local_port": 0
  73. },
  74. "fi": [
  75. {
  76. "t0": 30,
  77. "is_server": 0,
  78. "ip": "127.0.0.1",//modbus服务ip
  79. "port": 9911,//modbus服务端口
  80. "local_ip": "0.0.0.0",
  81. "local_port": 0
  82. }
  83. ]
  84. }
  85. modbus_service:
  86. ---libaddinmodbus.json:
  87. {
  88. "ip": "10.1.50.250",//modbus地址
  89. "port": 502,//modbus端口
  90. "is_server": 0,
  91. "local_ip": "10.1.50.222",//本机服务ip modbus地址和本机地址在同一网段
  92. "local_port": 0,
  93. "hton_register": 1,
  94. "hton_total": 0,
  95. "t0": 30,
  96. "t1": 30,
  97. "retries": 10,
  98. "hash_count": 256,
  99. "coils_quantity_max": 2000,
  100. "registers_quantity_max": 125,
  101. "timer_send": 1,
  102. "repeat": 1
  103. }
  104. 若服务器有多个同一网段不同ip时,需要配置 localIp
  105. ---blackholed.json:
  106. {
  107. "engine": {
  108. "pwd": "D:\\Gyee_project\\ControlService\\SBQ_Control_Service_1",
  109. "stop_check": 100
  110. },
  111. "log": {
  112. "dir": "log",
  113. "file": "log.log",
  114. "level": 0
  115. },
  116. "keytable": {
  117. "dir": "keytable",
  118. "file": "keytable.sqlite3"
  119. },
  120. "gycp": {
  121. "ip": "0.0.0.0", //本机ip
  122. "port": 9911, //对外提供服务端口
  123. "is_server": 1,
  124. "t0": 30,
  125. "t1": 20,
  126. "t2": 10
  127. },
  128. "addin": {
  129. "dir": "addin",
  130. "addin": "addinmodbus.dll",
  131. "config": "libaddinmodbus.json"
  132. }
  133. }
  134. -------------------------------------------------------------------------