Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Modbus TCP Problems with string reading
Modbus TCP Problems with string reading [message #1791150] Mon, 25 June 2018 08:14 Go to next message
Vito Scornavacche is currently offline Vito ScornavaccheFriend
Messages: 14
Registered: February 2018
Junior Member
Hi all,
I'm having troubles with the reading of strings with the Modbus driver. Modbus works with memory cells of 16 bits, so there are 2 chars each cell.
The problem is that chars in the string readed are swapped: if the original string is ABCD, I read BADC. I have read that the protocol works in this way and the slave have to swap the chars while reading. Obviously i noticed the data.order field, but it doesn't works; i tried all the orders (LSB, LSW, MSB, MSW) but nothing changes.
How can i solve this? Have i to swap manually chars on my own?
Re: Modbus TCP Problems with string reading [message #1801301 is a reply to message #1791150] Wed, 16 January 2019 10:51 Go to previous message
Pedro de Arquer is currently offline Pedro de ArquerFriend
Messages: 34
Registered: December 2018
Could you provide the configuration you are using to get the BADC string?
Previous Topic:How to create customized kura components and use them in Wire graph
Next Topic:MQTT Request/Response in camel
Goto Forum:

Current Time: Sun Jul 12 14:13:11 GMT 2020

Powered by FUDForum. Page generated in 0.01605 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top