Search found 90 matches

by Domoticx
Sunday 30 August 2020 21:29
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Ik did not notice any errors after installing. Is there a way to check if the installation was succesfull? have you used pip3 (not pip) for python 3? sudo pip3 install -U pymodbus pymodbusTCP to check.... you can see some examples here: https://www.google.com/search?&q=python+check+if+module+is ...
by Domoticx
Saturday 29 August 2020 19:11
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Huff002 wrote: Saturday 29 August 2020 15:22 The dependancies (pymodbus & pymodbusTCP) are installed.
Hmm the error:
2020-08-29 15:06:07.528 Error: (Modbus - SMA) Module Import failed: ' Name: pymodbus'

Have you installed pymodbus for python3 correctly?
by Domoticx
Saturday 29 August 2020 14:56
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: [RELEASED] Python plugin: Modbus RTU / ASCII / TCP/IP

Huff002 wrote: Saturday 29 August 2020 14:10 I have the exact same problem but but don't know which script is meant in the above solution.
Do I need to add this in plugin.py are some other script within Domoticz?
The name of module you are missing is stated in the error messaage, read it again 8-)

Have you installed the depenancies?
by Domoticx
Monday 10 August 2020 13:30
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

markh wrote: Wednesday 29 July 2020 18:49 ...I am not sure if we could add a separate field for the offset where the scale factor is located...
Sure, possible...when this request can be made into domoticz :roll: toherwise it would be chaotic in the modbus settings
https://github.com/domoticz/domoticz/issues/4137
by Domoticx
Wednesday 22 July 2020 22:19
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

@webrazor

What kind of wiring have you used?

Ps. Connection A+ to A+ and B- to B- is correct? and connected to the right connections on the meter?
(maybe by accident on the pulse connection mounted?)
by Domoticx
Wednesday 22 July 2020 20:11
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

forgot to install pip3 and modbus tcp :oops: now it works, at least i see th emodbus settings. got another thing now, the modbus device has a holding register and 8byte float. i dont see the 8byte float, do i have to change modbus ini file ? Hi, 8 byte float is very rare, can you post specs and pdf ...
by Domoticx
Wednesday 22 July 2020 20:10
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Hello Domoticx, Yes here is a download link for the manual. www.wms.nl/download_file/view/112/186&ved=2ahUKEwj0iPyP8tTqAhUNsaQKHYbmA7MQFjAEegQIAhAB&usg=AOvVaw36n_nSEr071RhE51d-Mfx9 From page 80 is about modbus protocol. Hi webrazor, seems the link is broken... Hmm if i click on the link i get the ...
by Domoticx
Friday 17 July 2020 20:34
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

webrazor wrote: Friday 17 July 2020 20:18 Hello Domoticx,

Yes here is a download link for the manual.
www.wms.nl/download_file/view/112/186&v ... hE51d-Mfx9

From page 80 is about modbus protocol.
Hi webrazor, seems the link is broken...
by Domoticx
Thursday 16 July 2020 20:09
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Hi Webrazor,

Reviewing th error, it seems not a plugin issue, so it could be config mismatch, hw error, driver issue or else...

Ps. is there any documentation PDF for this device available?
by Domoticx
Tuesday 26 May 2020 17:43
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

About modbus thingies...

Last week we have made a practical board to test all modbus stuff out for or new platform ConX, in wich you can create and add you own modbus devices easily!, stay tuned!
DomoticX ConX test board.jpg
DomoticX ConX test board.jpg (304.55 KiB) Viewed 3447 times
by Domoticx
Monday 18 May 2020 20:09
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Strange indeed! And if you try register address 83 or 85? That's the problem. When is use 83 then the right value. Normal i use with de sniffer 84 :roll: Yes, this is a common problem/thingy, there is no official modbus rule for register mapping, some manufactorers or software e.d. start with ...
by Domoticx
Monday 18 May 2020 18:28
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

Strange indeed!

And if you try register address 83 or 85?
by Domoticx
Monday 18 May 2020 16:53
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

@snooze7555,

The plugin reads "65535" wich is the actual value in the register from the device, it is read with pymodbusTCP before any data conversion done by the plugin...so no bug in the plugin atm...
by Domoticx
Monday 18 May 2020 13:11
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

snooze7555 wrote: Monday 18 May 2020 7:48 Hello Domoticx

I test it with a uint 16 and get only the value 65535.
No errors

It must be 19390.
Can you post the log?
by Domoticx
Sunday 17 May 2020 20:40
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

TCP/IP example @snooze7555 In your log there is NO data response, so i did some testing @home with a TCP/IP modbus simulator, and fixed a bug...all, seems fine though...maybe you have to play with some settings...(please try latest version) :roll: Setup the simulator Domoticz tcp-ip modbus example ...
by Domoticx
Sunday 17 May 2020 11:34
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: Python plugin: Modbus RTU / ASCII / TCP/IP

@snooze7555

Any specs on the hardware, type? manual? PDF? registers?

Ps. be aware...some solar inverters can have RS485 hw layer but it is not always modbus protocol, but some protocol the manufacturer cooked up...you have to view the manual.
by Domoticx
Tuesday 05 May 2020 22:33
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: [RELEASED] Python plugin: Modbus RTU / ASCII / TCP/IP

Hi All, Glad to hear you are using the modbus plugin!, after while it wasn't updated because we are focused on Node-Red... developing nice stuff for our upcoming domotica platform :roll: So...because we are releasing our new hardware domotica line-up for Q3-Q4 2020 called ConX....we also want to ...
by Domoticx
Saturday 08 September 2018 20:34
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: [RELEASED] Python plugin: Modbus RTU / ASCII / TCP/IP

@rusu3

To break down the command: 01 05 00 00 FF 00 8C 3A

SLAVE ID: 01
FUNCTION: 05 (write single coil)
REGISTER: 0 (00 00)
DATA: FF 00 (DEC = 65280)
CHECkSUM: info (8C 3A)
by Domoticx
Thursday 29 March 2018 18:49
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: [RELEASED] Python plugin: Modbus RTU / ASCII / TCP/IP

Domoticx, thank you for your answer. 1) it looks so. But I have no python programming skills or Modbus knodledges. I thought that the int32 would do the job of reading two registers. 2) I am using a RS232 Modbus RTU from the ventilation supplier. I didn't plug the 5V to my USB adaptor. I will check ...
by Domoticx
Wednesday 28 March 2018 19:43
Forum: Python
Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
Replies: 401
Views: 140695

Re: [RELEASED] Python plugin: Modbus RTU / ASCII / TCP/IP

Hello Domoticx Do you think that it would be possible to have only the device in the material list. The plugin is actualy listing a material for each registers. For my zwave dongle, I see the it in material and the device are listed in setting. I made some first trials with the plugin this morning ...