eterey / pymodbus3

A full Modbus protocol written in Python 3.
http://uzumaxy.github.io/pymodbus3/
BSD 3-Clause "New" or "Revised" License
39 stars 11 forks source link

Documentation of Project #1

Open ckdanny opened 8 years ago

ckdanny commented 8 years ago

The Document is not found.

bgulla commented 7 years ago

seconded. Any idea where we can find this?

eterey commented 7 years ago

@ckdanny @bgulla Thanks. I'll fix the problem with missing documentation. Right now you can use docs in PDF format: https://github.com/uzumaxy/pymodbus3/blob/master/doc/pymodbus3.pdf

bgulla commented 7 years ago

thanks, this is exactly what I needed.

On Tue, Jul 26, 2016 at 3:11 PM, Maxim notifications@github.com wrote:

@ckdanny https://github.com/ckdanny @bgulla https://github.com/bgulla Thanks. I'll fix the problem with missing documentation. Right now you can use docs in PDF format: https://github.com/uzumaxy/pymodbus3/blob/master/doc/pymodbus3.pdf

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/uzumaxy/pymodbus3/issues/1#issuecomment-235373541, or mute the thread https://github.com/notifications/unsubscribe-auth/ACkoMzqN_bKVv4cuSWnJIaE3dSXAzkP_ks5qZlv_gaJpZM4ItKi7 .

Brandon

CabritoIncognito commented 7 years ago

@uzumaxy I'm working from that documentation and I must be missing a small detail since the package isn't returning successful results. Pasted below is what I'm attempting. Do you have recommendations on what I need to do to get this to successfully return the value from the specified register?

@ckdanny or @bgulla, do either of you have any recommendations on where I might be going wrong? I'm able to successfully return values in Python v2.7 with pymodbus (github package from mesias).

from pymodbus3.client.sync import ModbusTcpClient as ModbusClient from pymodbus3.transaction import ModbusRtuFramer import logging

logging.basicConfig() log = logging.getLogger() log.setLevel(logging.DEBUG)

client = ModbusClient('10.x.x.x', port=7001, framer=ModbusRtuFramer)

client.connect()

rr = client.read_input_registers(5748, 1, unit=0x01) print(rr.registers)

client.close()