Skip to content

Commit 9fcfc8a

Browse files
committed
test protocol for testing / simulating
1 parent 68e3fd4 commit 9fcfc8a

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

protocols/test.csv

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
variable name,data type,writable,register,documented name,description,values,unit,notes
2+
,,,0,version,Version number (628 - representing V6.2.8),600~700,,
3+
,,,1,channel a-h current,Current A-H (01-08) channel range - unsigned number (value 40, representing 40A),40~120,
4+
,,,2,channel i-p current,Current I-P (09-16) channel range, unsigned number (value 40, representing 40A),40~120
5+
,byte,WD,3,address,Low byte is setThe standby address (01H-FFH) 00 is the broadcast address.,1~255,,
6+
,4bit,WD,3.b8,buad rate, the high byte has a low four-bit baud rate (0-8),"{""0"": ""9600"", ""1"": ""1200"", ""2"": ""2400"", ""3"": ""4800"", ""4"": ""9600"", ""5"": ""19200"", ""6"": ""38400"", ""7"": ""57600"", ""8"": ""115200""}",,
7+
,4bit,WD,3.b12,check bit, and the high byte has a high four-bit check bit (0-3).,"{""0"" : ""N, 8, 1"", ""1"" : ""E, 8, 1"", ""2"" : ""O, 8, 1"", ""3"": ""N, 8, 2""}",,
8+
,8bit,,4,factory date month,Factory date ( low byte month),1~12,,
9+
,8bit,,4.b8,factory date year,Factory date (high byte year),,,gives me 36 instead of 24.
10+
,,,5,Reserved,Reserved,0,,
11+
,,WD,6,frequency division coefficient,Default 0005H, frequency division coefficient (value 1-5). Working frequency range=[10Hz*5/frequency dividing coefficient]-400Hz,1~5,
12+
,byte,WD,7,selection factor,The low byte is the selection factor and the default is 30. Actual frequency selection factor = (1 + frequency selection coefficient / 10) do not modify in non-special circumstances.,30,,
13+
,byte,WD,7.b8,measurement result threshold,High byte measurement result threshold (directly set to 0 when the original measurement result is less than this value). ,0~120,,
14+
,8bit,W,12,Time_Year,,17-255,,
15+
,8bit,W,12.b8,Time_Month,,1-12,,
16+
,8bit,W,13,Time_Date,,1-31,,
17+
,8bit,W,13.b8,Time_Hour,,0-23,,
18+
,8bit,W,14,Time_Minute,,0-59,,
19+
,8bit,W,14.b8,Time_Second,,0-59,,

protocols/test.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"transport" : "modbus_tcp",
3+
"batch_size": 7,
4+
"send_holding_register": true,
5+
"send_input_register" : false
6+
}

0 commit comments

Comments
 (0)