DaqConfig.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. [
  2. {
  3. "DType": "OpcDa",
  4. "InstanceParam": {
  5. "SN": "OPCDA采集",
  6. "ServiceName": "Knight.OPC.Server.Demo",
  7. "SpecificationVer": {
  8. "ID": "63D5F432-CFE4-11d1-B2C8-0060083BA1FB",
  9. "Description": "Data Access 2.XX"
  10. }
  11. },
  12. "SN": "OPCDA采集",
  13. "AddressArray": [
  14. {
  15. "SN": null,
  16. "AddressName": "a.a.a",
  17. "AddressAnotherName": "test",
  18. "AddressPropertyName": "aaa",
  19. "AddressDescribe": "一个动态的布尔类型",
  20. "AddressParseParam": null,
  21. "AddressExtendParam": null,
  22. "IsEnable": true,
  23. "AddressDataType": "Bool",
  24. "AddressType": "Reality",
  25. "MqttRelay": {
  26. "Topic": "Test/aaa",
  27. "Retain": true,
  28. "QoSLevel": 0,
  29. "ReflectionSN": "YSAI.Mqtt.MqttClientOperate[Instance][PublishSubscribe]"
  30. },
  31. "KafkaRelay": null,
  32. "RabbitMQRelay": null
  33. },
  34. {
  35. "SN": null,
  36. "AddressName": "a.a.h",
  37. "AddressAnotherName": "test",
  38. "AddressPropertyName": "aah",
  39. "AddressDescribe": "一个动态的字符串类型",
  40. "AddressParseParam": {
  41. "ParseType": "ScriptAnalysis",
  42. "ReflectionSN": null,
  43. "Script": {
  44. "ScriptType": "JavaScript",
  45. "ScriptCode": "function Convert(value) \r\n {\r\n return '这是脚本测试,传入的参数是:' + value;\r\n }",
  46. "ScriptFunction": "Convert"
  47. }
  48. },
  49. "AddressExtendParam": null,
  50. "IsEnable": true,
  51. "AddressDataType": "String",
  52. "AddressType": "Reality",
  53. "MqttRelay": {
  54. "Topic": "Test/aah",
  55. "Retain": true,
  56. "QoSLevel": 0,
  57. "ReflectionSN": "YSAI.Mqtt.MqttClientOperate[Instance][PublishSubscribe]"
  58. },
  59. "KafkaRelay": null,
  60. "RabbitMQRelay": null
  61. },
  62. {
  63. "SN": null,
  64. "AddressName": "a.a.g",
  65. "AddressAnotherName": "test",
  66. "AddressPropertyName": "aag",
  67. "AddressDescribe": "一个动态的浮点类型",
  68. "AddressParseParam": {
  69. "ParseType": "ScriptAnalysis",
  70. "ReflectionSN": null,
  71. "Script": {
  72. "ScriptType": "JavaScript",
  73. "ScriptCode": "function Convert(value) \r\n {\r\n return value*1000;\r\n }",
  74. "ScriptFunction": "Convert"
  75. }
  76. },
  77. "AddressExtendParam": null,
  78. "IsEnable": true,
  79. "AddressDataType": "Double",
  80. "AddressType": "Reality",
  81. "MqttRelay": {
  82. "Topic": "Test/aag",
  83. "Retain": true,
  84. "QoSLevel": 0,
  85. "ReflectionSN": "YSAI.Mqtt.MqttClientOperate[Instance][PublishSubscribe]"
  86. },
  87. "KafkaRelay": null,
  88. "RabbitMQRelay": null
  89. },
  90. {
  91. "SN": null,
  92. "AddressName": "OPCDA_VirtualAddress",
  93. "AddressAnotherName": "test",
  94. "AddressPropertyName": "OPCDA_VirtualAddress",
  95. "AddressDescribe": "虚拟地址",
  96. "AddressParseParam": null,
  97. "AddressExtendParam": null,
  98. "IsEnable": true,
  99. "AddressDataType": "String",
  100. "AddressType": "Virtual",
  101. "MqttRelay": {
  102. "Topic": "Test/OPCDA_VirtualAddress",
  103. "Retain": true,
  104. "QoSLevel": 0,
  105. "ReflectionSN": "YSAI.Mqtt.MqttClientOperate[Instance][PublishSubscribe]"
  106. },
  107. "KafkaRelay": null,
  108. "RabbitMQRelay": null
  109. },
  110. {
  111. "SN": null,
  112. "AddressName": "OPCDA_VirtualDynamicAddress",
  113. "AddressAnotherName": "test",
  114. "AddressPropertyName": "OPCDA_VirtualDynamicAddress",
  115. "AddressDescribe": "虚拟动态地址",
  116. "AddressParseParam": null,
  117. "AddressExtendParam": null,
  118. "IsEnable": true,
  119. "AddressDataType": "String",
  120. "AddressType": "VirtualDynamic",
  121. "MqttRelay": {
  122. "Topic": "Test/OPCDA_VirtualDynamicAddress",
  123. "Retain": true,
  124. "QoSLevel": 0,
  125. "ReflectionSN": "YSAI.Mqtt.MqttClientOperate[Instance][PublishSubscribe]"
  126. },
  127. "KafkaRelay": null,
  128. "RabbitMQRelay": null
  129. }
  130. ],
  131. "CreationTime": "2023-08-03T15:28:07.7863533+08:00"
  132. },
  133. {
  134. "DType": "OpcUa",
  135. "InstanceParam": {
  136. "SN": "OPCUA采集",
  137. "UserName": "ysai",
  138. "Password": "ysai",
  139. "Cer": null,
  140. "SecreKey": null,
  141. "ServerUrl": "opc.tcp://192.168.2.38:8866/Opc.Ua.Service",
  142. "Name": "TEST",
  143. "SamplingInterval": 100
  144. },
  145. "SN": "OPCUA采集",
  146. "AddressArray": [
  147. {
  148. "SN": null,
  149. "AddressName": "ns=2;s=Boolean_Dynamic",
  150. "AddressAnotherName": "test",
  151. "AddressPropertyName": "Boolean_Dynamic",
  152. "AddressDescribe": "一个动态的布尔类型",
  153. "AddressParseParam": null,
  154. "AddressExtendParam": null,
  155. "IsEnable": true,
  156. "AddressDataType": "Bool",
  157. "AddressType": "Reality",
  158. "MqttRelay": {
  159. "Topic": "Test/Boolean_Dynamic",
  160. "Retain": true,
  161. "QoSLevel": 0,
  162. "ReflectionSN": "YSAI.Mqtt.MqttClientOperate[Instance][PublishSubscribe]"
  163. },
  164. "KafkaRelay": null,
  165. "RabbitMQRelay": null
  166. },
  167. {
  168. "SN": null,
  169. "AddressName": "ns=2;s=String_Dynamic",
  170. "AddressAnotherName": "test",
  171. "AddressPropertyName": "String_Dynamic",
  172. "AddressDescribe": "一个动态的字符串类型",
  173. "AddressParseParam": {
  174. "ParseType": "ScriptAnalysis",
  175. "ReflectionSN": null,
  176. "Script": {
  177. "ScriptType": "JavaScript",
  178. "ScriptCode": "function Convert(value) \r\n {\r\n return '这是脚本测试,传入的参数是:' + value;\r\n }",
  179. "ScriptFunction": "Convert"
  180. }
  181. },
  182. "AddressExtendParam": null,
  183. "IsEnable": true,
  184. "AddressDataType": "String",
  185. "AddressType": "Reality",
  186. "MqttRelay": {
  187. "Topic": "Test/String_Dynamic",
  188. "Retain": true,
  189. "QoSLevel": 0,
  190. "ReflectionSN": "YSAI.Mqtt.MqttClientOperate[Instance][PublishSubscribe]"
  191. },
  192. "KafkaRelay": null,
  193. "RabbitMQRelay": null
  194. },
  195. {
  196. "SN": null,
  197. "AddressName": "ns=2;s=Double_Dynamic",
  198. "AddressAnotherName": "test",
  199. "AddressPropertyName": "Double_Dynamic",
  200. "AddressDescribe": "一个动态的浮点类型",
  201. "AddressParseParam": {
  202. "ParseType": "ScriptAnalysis",
  203. "ReflectionSN": null,
  204. "Script": {
  205. "ScriptType": "JavaScript",
  206. "ScriptCode": "function Convert(value) \r\n {\r\n return value*1000;\r\n }",
  207. "ScriptFunction": "Convert"
  208. }
  209. },
  210. "AddressExtendParam": null,
  211. "IsEnable": true,
  212. "AddressDataType": "Double",
  213. "AddressType": "Reality",
  214. "MqttRelay": {
  215. "Topic": "Test/Double_Dynamic",
  216. "Retain": true,
  217. "QoSLevel": 0,
  218. "ReflectionSN": "YSAI.Mqtt.MqttClientOperate[Instance][PublishSubscribe]"
  219. },
  220. "KafkaRelay": null,
  221. "RabbitMQRelay": null
  222. },
  223. {
  224. "SN": null,
  225. "AddressName": "OPCUA_VirtualAddress",
  226. "AddressAnotherName": "test",
  227. "AddressPropertyName": "OPCUA_VirtualAddress",
  228. "AddressDescribe": "虚拟地址",
  229. "AddressParseParam": null,
  230. "AddressExtendParam": null,
  231. "IsEnable": true,
  232. "AddressDataType": "String",
  233. "AddressType": "Virtual",
  234. "MqttRelay": {
  235. "Topic": "Test/OPCUA_VirtualAddress",
  236. "Retain": true,
  237. "QoSLevel": 0,
  238. "ReflectionSN": "YSAI.Mqtt.MqttClientOperate[Instance][PublishSubscribe]"
  239. },
  240. "KafkaRelay": null,
  241. "RabbitMQRelay": null
  242. },
  243. {
  244. "SN": null,
  245. "AddressName": "OPCUA_VirtualDynamicAddress",
  246. "AddressAnotherName": "test",
  247. "AddressPropertyName": "OPCUA_VirtualDynamicAddress",
  248. "AddressDescribe": "虚拟动态地址",
  249. "AddressParseParam": null,
  250. "AddressExtendParam": null,
  251. "IsEnable": true,
  252. "AddressDataType": "String",
  253. "AddressType": "VirtualDynamic",
  254. "MqttRelay": {
  255. "Topic": "Test/OPCUA_VirtualDynamicAddress",
  256. "Retain": true,
  257. "QoSLevel": 0,
  258. "ReflectionSN": "YSAI.Mqtt.MqttClientOperate[Instance][PublishSubscribe]"
  259. },
  260. "KafkaRelay": null,
  261. "RabbitMQRelay": null
  262. }
  263. ],
  264. "CreationTime": "2023-08-03T15:28:07.7899927+08:00"
  265. }
  266. ]