Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read input register over 65535 ?

hi,

i have problem about read input register. i made program labview to monitoring Counter ( made by Autonics ),

my problem is when the counter is counting over 65534, suddenly on my program read 65535 = 1

for example

Autonics display | Labview display

65535                   | 1

65536                   | 2

65537                   | 3

65538                   | 4

etc

 

is that the maximum read input register ? or its a bug from modbus library ? i`ve changed the representation v16 to v64

ask.png

 

any solution ? please help me  to read input register over 65535

thanks

0 Kudos
Message 1 of 4
(4,799 Views)
Changing the indicator representation is a worthless step. You would have to change it internally. Are you sure about your device? I believe that the standard calls for 16 bit registers. You might need to read 2 registers. Please attach your manual.

p.s. It is U16 and U64, not V16 and V64.
0 Kudos
Message 2 of 4
(4,796 Views)

Through the ModBus protocol you can access 16bits registers. Not 8 , not 32 just 16 bits.

0 Kudos
Message 3 of 4
(4,792 Views)

The Modbus standard is 16 bits.  So from a single register, 65535 is the highest you will be able to read.  If the counter uses a second register, you will need to read it as well and then use Join Number to make a 32 bit number.  If not, then you will need to keep track of the rollover and add 65536 to your number (I would expect 65536 = 0 in the register).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(4,782 Views)