Modbus Device Error "transformed value out of its original type" #127
Unanswered
MatteoMariano
asked this question in
Q&A
Replies: 1 comment
-
Use rawType and set Float32 to value type |
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
-
Hi all,
I'm trying to read values from a Modbus device based on a Modbus profile where a resource is created like this:
{"name":"R106","description":"","attributes":{"primaryTable":"INPUT_REGISTERS","startingAddress":106},"properties":{"valueType":"Int16","readWrite":"R","defaultValue":"0","scale":"0.1"}}
When i read from that register it returns this error:
level=ERROR ts=2023-06-14T13:16:11.52765054Z app=device-modbus source=transform.go:66 msg="failed to transform CommandValue (DeviceResource: R106, Int16: -888): transformed value out of its original type (int16) range"
How can I resolve this issue?
Beta Was this translation helpful? Give feedback.
All reactions