ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus libraries for LabView 8.0

I can only talk about Modbus TCP/IP. Hardware communication works fine. Slave simulation is faulty.
I modified "MB Ethernet Example Slave.vi" and simulation works fine on TCP/IP.

See attached file

Manfred




0 Kudos
Message 11 of 81
(3,965 Views)

As you have probably realized by now, I'm not an expert in modbus. I have another question..

In the Modbus command you have some parameters called quantity and discrete, can someone explain these for me?

Btw, I think this is actually working, I just have to understand how... Smiley Happy

Thnx

0 Kudos
Message 12 of 81
(3,938 Views)

Click on the modbus speciications button at this page.

http://www.modbus.org/tech.php

0 Kudos
Message 13 of 81
(3,923 Views)

Hi,

Need some help, again.. Smiley Happy  I'm loading measured values from my module, but when these values are negative, I get forexample 65522. Which should imply that I receive a hex number FFF2. But I want this to be represented as the negative number it is, refer to 2's complement. How can I fix this?

Thnx!

0 Kudos
Message 14 of 81
(3,894 Views)
BTW. The received number is 16 bit binary.
0 Kudos
Message 15 of 81
(3,892 Views)
I guess the .vi that needs modification is the: MB decode data.vi. I think I know how to convert a 16 bit number represented with 2's complement into decimal numbers, but where do I find the correct 16 bit number to translate..? And how do I convert a unsigned word of 16 bit
0 Kudos
Message 16 of 81
(3,878 Views)
I guess the .vi that needs modification is the: MB decode data.vi. I think I know how to convert a 16 bit number represented with 2's complement into decimal numbers, but where do I find the correct 16 bit number to translate..? How do I convert a unsigned word of 16 bit integer (0 to 65535) to bits I can work with. Is it possible to convert it to signed or something, so LV understands that it's dealing with a negative number.

Message Edited by Christian_nor on 11-25-2005 07:55 AM

0 Kudos
Message 17 of 81
(3,876 Views)


@Christian  wrote:
 How do I convert a unsigned word of 16 bit integer (0 to 65535) to bits I can work with. Is it possible to convert it to signed or something, so LV understands that it's dealing with a negative number.


Apologies if I'm misunderstanding, but are you looking for something as shown in the attached?
=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 18 of 81
(3,874 Views)
Super!! I was hoping it could be that simple! Thanks alot.
 
 
rgrds.
Labview amateur..
0 Kudos
Message 19 of 81
(3,873 Views)
Hi Christian_nor,

I have similar the same problem. Did it work in your case?

best regards
Wolfgang
0 Kudos
Message 20 of 81
(3,823 Views)