opc_da.http 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. #
  2. # Copyright 2016-present the original author or authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # https://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. ### 读取指定设备位号值
  17. #driver/command/read
  18. POST http://{{dc3-driver-opc-da}}/driver/command/read
  19. Accept: */*
  20. Content-Type: application/json
  21. Cache-Control: no-cache
  22. [
  23. {
  24. "deviceId": -4,
  25. "pointId": -17
  26. },
  27. {
  28. "deviceId": -4,
  29. "pointId": -18
  30. },
  31. {
  32. "deviceId": -4,
  33. "pointId": -19
  34. },
  35. {
  36. "deviceId": -4,
  37. "pointId": -20
  38. },
  39. {
  40. "deviceId": -4,
  41. "pointId": -21
  42. },
  43. {
  44. "deviceId": -4,
  45. "pointId": -22
  46. }
  47. ]
  48. ### 写入指定设备位号值
  49. #driver/command/write
  50. POST http://{{dc3-driver-opc-da}}/driver/command/write
  51. Accept: */*
  52. Content-Type: application/json
  53. Cache-Control: no-cache
  54. [
  55. {
  56. "deviceId": -4,
  57. "pointId": -17,
  58. "value": "3"
  59. },
  60. {
  61. "deviceId": -4,
  62. "pointId": -18,
  63. "value": "45"
  64. },
  65. {
  66. "deviceId": -4,
  67. "pointId": -19,
  68. "value": "87"
  69. },
  70. {
  71. "deviceId": -4,
  72. "pointId": -20,
  73. "value": "56.78"
  74. },
  75. {
  76. "deviceId": -4,
  77. "pointId": -21,
  78. "value": "false"
  79. },
  80. {
  81. "deviceId": -4,
  82. "pointId": -22,
  83. "value": "DC3"
  84. }
  85. ]
  86. ###