forked from sfera-labs/exo-sense-py-modbus
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathexample.json
126 lines (126 loc) · 3.83 KB
/
example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"COILS": {
"RESET_REGISTER_DATA_COIL": {
"register": 42,
"len": 1,
"val": 0,
"description": "Set this COIL to true to reset all register values back to the default state/value",
"range": "",
"unit": ""
},
"EXAMPLE_COIL": {
"register": 123,
"len": 1,
"val": 1,
"description": "Example COILS register, Coils (setter+getter) [0, 1]",
"range": "",
"unit": ""
},
"EXAMPLE_COIL_OFF": {
"register": 124,
"len": 1,
"val": 0,
"description": "Example COILS register, Coils (setter+getter) [0, 1]",
"range": "",
"unit": ""
},
"EXAMPLE_COIL_MIXED": {
"register": 125,
"len": 2,
"val": [1, 0],
"description": "Example COILS registers with length of 2, Coils (setter+getter) [0, 1]",
"range": "",
"unit": ""
},
"ANOTHER_EXAMPLE_COIL": {
"register": 127,
"len": 3,
"val": [0, 1, 0],
"description": "Example COILS registers with length of 3, Coils (setter+getter) [0, 1]",
"range": "",
"unit": ""
},
"MANY_COILS": {
"register": 150,
"len": 19,
"val": [
1, 0, 1, 1, 0, 0, 1, 1,
1, 1, 0, 1, 0, 1, 1, 0,
1, 0, 1
],
"description": "Example COILS registers with length of 19, representing Modbus_Application_Protocol_V1_1b3 Read Coils example, Coils (setter+getter) [0, 1]",
"range": "",
"unit": ""
}
},
"HREGS": {
"EXAMPLE_HREG_NEGATIVE": {
"register": 92,
"len": 1,
"val": -29,
"description": "Example HREGS register, Hregs (setter+getter) [0, 65535]",
"range": "",
"unit": ""
},
"EXAMPLE_HREG": {
"register": 93,
"len": 1,
"val": 19,
"description": "Example HREGS register, Hregs (setter+getter) [0, 65535]",
"range": "",
"unit": ""
},
"ANOTHER_EXAMPLE_HREG": {
"register": 94,
"len": 3,
"val": [29, 38, 0],
"description": "Example HREGS registers with length of 3, Hregs (setter+getter) [0, 65535]",
"range": "",
"unit": ""
}
},
"ISTS": {
"EXAMPLE_ISTS": {
"register": 67,
"len": 1,
"val": 0,
"description": "Example ISTS register, Ists (only getter) [0, 1]",
"range": "",
"unit": ""
},
"EXAMPLE_ISTS_MIXED": {
"register": 68,
"len": 2,
"val": [1, 0],
"description": "Example ISTS registers with length of 2, Ists (only getter) [0, 1]",
"range": "",
"unit": ""
},
"ANOTHER_EXAMPLE_ISTS": {
"register": 70,
"len": 3,
"val": [0, 1, 0],
"description": "Example ISTS registers with length of 3, Ists (only getter) [0, 1]",
"range": "",
"unit": ""
}
},
"IREGS": {
"EXAMPLE_IREG": {
"register": 10,
"len": 1,
"val": 60001,
"description": "Example IREGS register, Iregs (only getter) [0, 65535]",
"range": "",
"unit": ""
},
"ANOTHER_EXAMPLE_IREG": {
"register": 11,
"len": 3,
"val": [59123, 0, 390],
"description": "Example IREGS registers with length of 3, Iregs (only getter) [0, 65535]",
"range": "",
"unit": ""
}
}
}