Posts: 165
Threads: 29
Joined: May 2017
Reputation:
2
hi
in the json modbus, i would like to do divede (/10) the value .
is there fix?
{
"name": "load_output",
"bus_datatype": "14",
"type": "register",
"address": 175,
"writable": "true"
}
thanks
Posts: 1801
Threads: 7
Joined: Jul 2015
Reputation:
120
Hi,
Use this:
Code:
1
"value_multiplier" :
0.1 ,
BR,
Erwin
Posts: 165
Threads: 29
Joined: May 2017
Reputation:
2
(22.09.2019, 22:27) Erwin van der Zwart Wrote: Hi,
Use this:
Code:
1
"value_multiplier" :
0.1 ,
BR,
ErwinHI
Erwin not working.
Posts: 187
Threads: 43
Joined: Jul 2015
Reputation:
2
(23.09.2019, 04:47) balatis Wrote: (22.09.2019, 22:27) Erwin van der Zwart Wrote: Hi,
Use this:
Code:
1
"value_multiplier" :
0.1 ,
BR,
Erwin HI
Erwin not working.
Have you checked your commas?
Code:
1 2 3
{
"name" :
"load_output" ,
"bus_datatype" :
"14" ,
"type" :
"register" ,
"address" :
175 ,
"value_multiplier" :
0.1 ,
"writable" :
"true"
}
Posts: 165
Threads: 29
Joined: May 2017
Reputation:
2
(23.09.2019, 09:52) gtsamis Wrote: (23.09.2019, 04:47) balatis Wrote: (22.09.2019, 22:27) Erwin van der Zwart Wrote: Hi,
Use this:
Code:
1
"value_multiplier" :
0.1 ,
BR,
Erwin HI
Erwin not working.
Have you checked your commas?
Code:
1 2 3
{
"name" :
"load_output" ,
"bus_datatype" :
"14" ,
"type" :
"register" ,
"address" :
175 ,
"value_multiplier" :
0.1 ,
"writable" :
"true"
}
Hi Erwin Yes the command is ok .
Posts: 8159
Threads: 43
Joined: Jun 2015
Reputation:
472
Can you read raw value with RTU read test? Try setting bus datatype as a number without quotes:
Code:
1 2 3
{
"name" :
"load_output" ,
"bus_datatype" :
14 ,
"type" :
"register" ,
"address" :
175 ,
"value_multiplier" :
0.1 ,
"writable" :
true
}
Make sure to create new device from scratch when uploading new profile. Because existing devices will still use old profile data.