I am new to modbus rtu device. I could not read registers value ( error shown in picture ). I have tried so many times but could not get the values.
Also could not understand above error. Could anyone please explain what wrong with me.
Another problem is writing to register. Here is my write.py code.
But using sscom serial debug tool i am able to write holding registers successfully.
Manufacture company gives me limited documentation. I present some of them bellow.
If i want to read current value it shows me above error (picture 1)
I could not found it's solution by searching my errors.
Thanks in advance and I apologize for my English writing.
Also could not understand above error. Could anyone please explain what wrong with me.
Another problem is writing to register. Here is my write.py code.
Python:
from pymodbus.client.sync import ModbusSerialClient as ModbusClient
import logging
logging.basicConfig()
log = logging.getLogger()
log.setLevel(logging.DEBUG)
client = ModbusClient(method='rtu', port='COM3',bytesize=8, stopbits=1, parity='N', baudrate=9600, timeout=1)
client.connect()
print('Çonnected')
write=client.write_register(address=0x8000,value=0x13A, unit=0x11)
#read=client.read_holding_registers(address=0x8000,count=4, unit=0x11)
if(write):
print(write)
client.close()
Manufacture company gives me limited documentation. I present some of them bellow.
If i want to read current value it shows me above error (picture 1)
I could not found it's solution by searching my errors.
Thanks in advance and I apologize for my English writing.