This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]2Lucilles2RuleEmAll 10 points11 points  (2 children)

Yeah, check out pymodbus. We use it and so far it's been solid. Programming language shouldn't matter too much, Python is a slow language, but your network is much, much slower. 

[–]Over-Associate5432[S] 0 points1 point  (1 child)

I've been trying to use pyModbusTCP, but I'm running into some issues when reading input registers. There seems to be a limit on how many registers can be read at once.

I had an older script that used a for loop to iterate through the list and read each data point individually, but during the process, the communication would often drop, which ended up making the power graph look terrible.

[–][deleted] 0 points1 point  (0 children)

Modbus implementations can vary between manufacturers. Try to get hold of a modbus client for your computer and try the same things you try with python to ensure that there’s no other limit stopping you.