Open RafaelVieira-Coreflux opened 3 months ago
Besides the swap byte, in modbus there is the need to handle the swap word functionality.
.
32 bit swapping Without swapping Suppose the Modbus device has the following in its registers:
Register 40001: 41 45 Register 40002: 85 1F If no swapping is done the registers will be read as 41 45 85 1F
Word Swapping If we use word swapping then the words in the registers swap places as follows: Register 40001: 85 1F Register 40002: 41 45
Debian 10 (Buster)
Modbus
No response
AB#407
Bug Description 🐞
Besides the swap byte, in modbus there is the need to handle the swap word functionality.
Steps to Reproduce 🔄
.
Expected Behavior ✅
32 bit swapping Without swapping Suppose the Modbus device has the following in its registers:
Register 40001: 41 45 Register 40002: 85 1F If no swapping is done the registers will be read as 41 45 85 1F
Word Swapping If we use word swapping then the words in the registers swap places as follows: Register 40001: 85 1F Register 40002: 41 45
Environment 🌐
Debian 10 (Buster)
Asset Type 🧩
Modbus
Additional Information ➕
No response
Terms of Service
AB#407