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: 74
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: 914
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: 74
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
Moderator
Members

Moderators
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: 267

Currently Online:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 111

pramanj: 86

ibrahim: 74

kapsl: 57

gjevremovic: 49

Xavier: 42

TimK: 41

fred: 41

Fransua33: 39

rocket science: 36

Member Stats:

Guest Posters: 0

Members: 1590

Moderators: 17

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1192

Posts: 5057

Newest Members:

warnerfleming, Raymond23Freex, Charles1UsadY, Robertvem, albertinaduff53, wilbertrignall, Rogerbeedo, letamunn4183992, Lizazooda, Hectorner

Moderators: Jouni Aro: 914, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 695, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 24, Teppo Uimonen: 21, Markus Johansson: 36, Niklas Nurminen: 0, Matti Siponen: 161, Lusetti: 0

Administrators: admin: 1