Replies: 4 comments 1 reply
-
You miss something fundamentally, you do not read bytes you read registers and a register is 16 bit which is the same as a word. |
Beta Was this translation helpful? Give feedback.
-
In respect of reading the address, you do not show what you try to do, so it's impossible to tel you what's wrong! Did you read our documentation, that tells clearly how to use the function calls, we also provide ready to go examples, like simple_sync_client.py. |
Beta Was this translation helpful? Give feedback.
-
I partially solved the problem. I was making a mistake in the byte sequence (it should be Big Endian) and I wasn't sending them correctly (minimal code) : Write Float`
def write_float(self, address: int, value: float) :
` Read Float`
` The code works, reads, and writes correctly. The only issue, but I'm not sure if it's related to the program, is that I can't read from the address in the second column. For example, on page 6-4: I can read and write with register 0536, but with the same code, I can't read from the adjacent register 30537 (read-only). |
Beta Was this translation helpful? Give feedback.
-
Sure , thank you for your help |
Beta Was this translation helpful? Give feedback.
-
Hello
I have managed to read and write within these devices (please see links). I am able to read bytes characters (2 address)
I would like to ask two questions:
I need to write a float point value ( 2 byte register or word)
Function codes Tables : page 1-1
Data Format : page 2-2 and 2-4
I am unable to read a word register; the system responds with 'illegal address' . I suspect the address is being sent incorrectly.
For example, on the same page mentioned earlier, 6-4, how can I read register '30503'?"
Thank so much for any help
Beta Was this translation helpful? Give feedback.
All reactions