Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Datatypes for holding registers (UINT16)
January 4, 2017
18:04, EET
Avatar
Ibrahim
Member
Members
Forum Posts: 78
Member Since:
August 20, 2014
sp_UserOfflineSmall Offline

Hi,
is it possible to interpret the holding registers as uint16?

Thanks

January 5, 2017
10:23, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Not at the moment, unfortunately. Currently the Modbus data types are limited to INT, DINt and FLOAT, but I don’t actually see a reason why we should not allow other data types to be used as well. the Modbus specification does not really say much about interpreting the bytes that are read.

So, this will be improved in a future version. Hopefully, we can work on it in a short time frame.

January 5, 2017
11:32, EET
Avatar
Ibrahim
Member
Members
Forum Posts: 78
Member Since:
August 20, 2014
sp_UserOfflineSmall Offline

Hi Jouni,
thanks. That sounds great. I asked, because we had the case where a 16 bit register was filled with a uint16. For now we have a workaround, but it would be great to have more datatypes in future…

Ibrahim

February 15, 2017
17:08, EET
Avatar
Heikki Tahvanainen
Member
Members
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hello,

These unsigned types are now added in the version 1.1.4 of the Prosys OPC UA Modbus Server: https://prosysopc.com/news/prosys-opc-ua-modbus-server-114-released/

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 727

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1525

Posts: 6456

Newest Members:

ernestoportus31, martin123, rickie5305, shaylamaggard4, rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1028, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1