CorefluxCommunity / Coreflux-fluxassets

Support and issue tracking for every coreflux flux assets!
4 stars 0 forks source link

MODBUS Asset -> missing swap word functionality #17

Open RafaelVieira-Coreflux opened 3 months ago

RafaelVieira-Coreflux commented 3 months ago

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