batch-import-modbus-tcp-template.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. [
  2. {
  3. "serviceName": "dc3-driver-modbus-tcp",
  4. "profiles": [
  5. {
  6. "name": "Modbus-Tcp-Profile",
  7. "share": false,
  8. "driverConfig": {
  9. "host": "127.0.0.1",
  10. "port": "502"
  11. },
  12. "points": [
  13. {
  14. "name": "Modbus-Tcp-Point-String",
  15. "type": "string",
  16. "rw": 0,
  17. "base": 0,
  18. "minimum": -999999,
  19. "maximum": 999999,
  20. "multiple": 1,
  21. "format": "%.3f",
  22. "unit": "-"
  23. },
  24. {
  25. "name": "Modbus-Tcp-Point-Boolean",
  26. "type": "boolean",
  27. "rw": 0,
  28. "base": 0,
  29. "minimum": -999999,
  30. "maximum": 999999,
  31. "multiple": 1,
  32. "format": "%.3f",
  33. "unit": "-"
  34. },
  35. {
  36. "name": "Modbus-Tcp-Point-Int",
  37. "type": "int",
  38. "rw": 0,
  39. "base": 0,
  40. "minimum": -999999,
  41. "maximum": 999999,
  42. "multiple": 1,
  43. "format": "%.3f",
  44. "unit": "-"
  45. },
  46. {
  47. "name": "Modbus-Tcp-Point-Long",
  48. "type": "long",
  49. "rw": 0,
  50. "base": 0,
  51. "minimum": -999999,
  52. "maximum": 999999,
  53. "multiple": 1,
  54. "format": "%.3f",
  55. "unit": "-"
  56. },
  57. {
  58. "name": "Modbus-Tcp-Point-Float",
  59. "type": "float",
  60. "rw": 0,
  61. "base": 0,
  62. "minimum": -999999,
  63. "maximum": 999999,
  64. "multiple": 1,
  65. "format": "%.3f",
  66. "unit": "-"
  67. },
  68. {
  69. "name": "Modbus-Tcp-Point-Double",
  70. "type": "double",
  71. "rw": 0,
  72. "base": 0,
  73. "minimum": -999999,
  74. "maximum": 999999,
  75. "multiple": 1,
  76. "format": "%.3f",
  77. "unit": "-"
  78. }
  79. ],
  80. "groups": [
  81. {
  82. "name": "Modbus-Tcp-Group",
  83. "devices": [
  84. {
  85. "name": "Modbus-Tcp-Device",
  86. "multi": false,
  87. "pointConfig": {
  88. "Modbus-Tcp-Point-String": {
  89. "slaveId": "1",
  90. "functionCode": "3",
  91. "offset": "1"
  92. },
  93. "Modbus-Tcp-Point-Boolean": {
  94. "slaveId": "1",
  95. "functionCode": "3",
  96. "offset": "2"
  97. },
  98. "Modbus-Tcp-Point-Int": {
  99. "slaveId": "1",
  100. "functionCode": "3",
  101. "offset": "3"
  102. },
  103. "Modbus-Tcp-Point-Long": {
  104. "slaveId": "1",
  105. "functionCode": "3",
  106. "offset": "4"
  107. },
  108. "Modbus-Tcp-Point-Float": {
  109. "slaveId": "1",
  110. "functionCode": "3",
  111. "offset": "5"
  112. },
  113. "Modbus-Tcp-Point-Double": {
  114. "slaveId": "1",
  115. "functionCode": "3",
  116. "offset": "6"
  117. }
  118. }
  119. }
  120. ]
  121. }
  122. ]
  123. }
  124. ]
  125. }
  126. ]