Different type of return with same configuration RTU over TCP #98
Unanswered
rosariok24
asked this question in
Q&A
Replies: 1 comment
-
When you use See this part how raw bytes can be transformed to different data types: modbus-tcp-client/examples/index.php Line 74 in c39a0e5 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Aldas,
i'm in conversion from a Client in Modbus TCP/ip with a Client in Modbus RTU over TCP.
Until i used another type of class " Modbus Master" whit Modbus TCP in FC4, i have all the register from the PLC in the correct way.
Now i'm attached with a converter that i have the only possibility with RTU over TCP.
Below there is che script modded to connect to the register "0" and turn back only 1 byte, just to realize if the result is what i expect.
At the execution i have some trouble, because i want a byte and in the print i have 2 element in out
the second element i expect was more greater like thousands not hundreds. In the image below there is the same call with modbus pool at the same register in FC4 to have the correct data in out.
There is something that is missing for my side.
Beta Was this translation helpful? Give feedback.
All reactions