Modbus Protocol Communication using RS 485
Hi all,
I am facing one problem while communicating with Radix Instrument using Modbus RS 485 Interface.can anybody help me in this,
The instrument which i am going to communicate is Radix ISOSCAN(16 Channel Temperature Scanner).
The instrument is having Modbus RS 485 interface facility.
To that instrument,RS 485 Configuration is there.And I am using RS 485 to RS 232 Converter for communicating with my PC.
I downloaded Modbus VI Library from NI and I programmed using Modbus VIs.
I got the instrument Register Addresses also.From this instrument,I want to read 16 channel temperature values.For this,in Modbus terminology we will call as Process Variables(PV).
For this,I used Read Input Registers(Function Code 04) and I have doubt in configuring Starting Address terminal of "MB Serial Master Query.vi".Because,here if we see the datatype of this terminal,it is U16.But if we see the Instrument register addresses,it is of floating point type.
Actually first of all I am not getting any out put from "Registers" terminal of "Modbus Master Serial Query.vi"
Actually as i have to read(Read Only) 16 channel Data from the instrument,and as per the link mentioned in ni "Introduction to Modbus" topic,
http://zone.ni.com/d...a/tut/p/id/7675
I selected "Read Input Registers" with Function Code "04".
As per the link above,If starting address is 40008,we have to give 7,If it is 40009,we have to give 8 ...
So as per the instrument register addresses,what i got from the instrument design people,Addresses are starting from 40001,
So I tried in the following ways
Test 1:
Following as inputs for "Modbus Master Query.vi",
1.With Read Input Registers
2.With Starting address as "0",
Test 2:
Following as inputs for "Modbus Master Query.vi",
1.With Read Holding Registers
2.With Starting address as 1 also,
But in both the cases I am not getting any value from the Registers terminal of "Modbus Master Query.vi"
Also i have gone through the link which is in ni developer zone forums,i.e.
http://forums.ni.com...uireLogin=False
Also i observed one thing while running the code anna,
I am using RS 485 to RS 232 converter for communicating with the instrument.
From this converter,there are two output terminals(TXD) and (RXD) with boolean indicators(one for the TXD and one for RXD).I think these are send and receive commands for serial communication(RS 232)
Observation is that,whenever i am running the code,the boolean which correspond to TXD is blinking,
But there is no indication from boolean of RXD.
I think,the code which is running in my PC is sending command but because of some reasons there is no reply(as there is no indication from RXD boolean) from the instrument.
I am thinking that the with the starting address what i am giving in the VI,its not able to search for the registers...,
Regarding RS 485 to RS 232 Converter,
In front end,one side, two terminals(D+ and D-) are connected to Instrument D+ and D- Terminals.
Another side,three terminals(230 VAC,Neutral and Earth) given supply Line,Neutral and Earth Terminals.
And in front end,9 Pin Female(RS 232) Connector is there and i used one Serial Female to Male cable for connecting my PC to the Converter RS 232 port.
Can anybody support me so that i can solve this problem...,
Regards,
Bujjin
Attachments:
Modbus Communication RS 485(8.2).vi 31 KB
RS 485 to 232 Converter Front View.JPG 12 KB
MODBUS-RS485-STD.pdf 128 KB
If you have a 32bit Floating point number (Single Precision) in your register than you must read to U16 number, concanate them by using the "join Numbers.vi and then typecast them into a Single Precisio. See the image Below for more detailed information.
I'm not sure if you are still having problems with this if you are please re post and we will be glad to help you
thanks
Regards,
CharlesD
Digital MultimetersSchedule a Free 1 Hour LabVIEW Tutorial with an NI Applications Engineer
Similar Messages
-
Interface of Allen Bradley PLC with LabVIEW using TCP\IP modbus protocol
Hello.....
I want to connect a Allen Bradley PLC with LabVIEW using TCP\IP modbus protocol.
The PLC which I am using is a series of 1766BWA (Allen Bradley) please can you help me for the same or please give me suggestion.
Also I want to know the resistance values of this PLC.
Thank you.Hello
I was trying for connection of a Allen Bradley PLC with LabVIEW using TCP\IP modbus protocol.
Here I am attaching the snapshot of PLC interfacing and communication vi using modbus but it is not working
For reading we use setting shown in CHANNEL 1-modbus but it gives error regarding modbus addressing
and for writing it shows error illegal address please help me for the same.
Thank you.
Attachments:
PLC_SCREEN.zip 261 KB
Modbus_(Read-Write).zip 14 KB -
The requirements to use Modbus protocol
In my project,I have to use the MODBUS protocol to communicate between the devices via RS232 using labview.So,I would like to know, how I can do this in labview and what are requirements i need.Any examples and references are welcome.
"How I can do this in labview"
There are a lot of ways that it can be done. Besides the link that tst gave you, an excellent summary of the available LabVIEW/Modbus options was put together by Khalid awhile ago and can be found here.
"I am new to this concept. Can u explain some important things which i should know."
A lot depends on which option you go with and what your device(s) is/are. Searching this forum for previous Modbus discussions should help you learn things.
=====================================================
Fading out. " ... J. Arthur Rank on gong." -
Omega has a protocol manual to facilitate this on their web site
Jay,
Most folks use an OPC Server, such as Lookout Protocol Drivers (sold under package "IA OPC Servers") to communicate with devices using the Modbus protocol from LabVIEW. The KnowledgeBase below describes this method in detail.
Drivers for Communicating to PLCs, RTUs, and Other Industrial Hardware"
As for direct Modbus protocol VIs for LabVIEW - I have never personally used them, but I have seen many Developer Exchange posts in the past where folks have used and recommended them. Simply search this developer exchange for "modbus AND labview" and numberous discussion threads on this topic will be returned.
Regards,
Greg
Caesar
Applications Engineer
National Instruments -
Modbus protocol and NI DAQ Card
Hi,
I'm using an AC drive that supports the standard protocol Modbus RTU over RS485. I want to know if your data acquisition cards (eg. NI DAQCard-6036E for PCMCIA) are suitable to interface between this AC drive and a computer. Also, I will be using Labview to control and monitor the system.Hi what,
If your AC drive uses the Modbus protocol over RS-485 then you will probably want to use the serial port or an RS-485 port to communicate with your AC drive from LabVIEW. I believe Lookout also comes with an OPC server which can communicate Modbus. Anyway, I suppose you could use the digital lines of the DAQ card to control your drive but it sounds like an RS-485 port (serial) would be more effective and easier than programming the DAQ board.
Anyway, hope that helps. Have a good day.
R -
Modbus ethernet communications problem
We are having a lot of trouble with modbus ethernet communications. We are using Lookout 6.0.2. Communications is via a Lantronix UDP100 convertor to RS485. The protocol is MODBUS RTU. A number 6-8) instruments are daisy chained on the RS485 (2-wire) line and then connected to the Lantronix. I am using your Ethernet modbus driver.
If all the modbus instruments are connected then the system works fairly well. However if one gets powered off or disconnected we start getting random comm fails from all the other instruments on that RS485 link. This happens even if I stop polling the dead instrument. It only goes away and the network performs perfectly if I close the modbus driver for the dead instrument.
This behavior does not happen if we use RS485 to Lookout instead of the Lantronix+ethernet.
Need some ideas soon.
- VSDoes the convertor you said support Modbus? Because Modbus serial protocol is different from Modbus TCP protocol, if the convertor doesn't support Modbus, I think it won't work.
On the market, you can find Modbus/TCP to Modbus RTU gateway. But I'm not sure if your convertor has the same feature.
Ryan Shi
National Instruments -
HTTPS communication using HTTP receiver adapter URL address as Address Type
Hi All,
If some one who has tried HTTPS communication using HTTP receiver adapter using URL address as Address type can you please guide me what are the steps need to be done.
Note : Address type is a parameter in HTTP adapter setup .
Regards,
ReddyHi,
Check this,
Configurations in Integration Directory
The plain HTTP adapter gives the receiver system the following specifications:
— Specifications for addressing using a URL address:
Target host, service number, and path prefix including query string:
http://<hostname:port>/<path>?<query-string>
You can identify the target host (HTTP port) of a SAP Web Application Server using
the
ICM monitor
Host and port of the HTTP proxy (optional if there is a firewall between the plain
HTTP adapter and the receiver system)
Authentication data for the receiver system.
See also: transaction Display and Maintain RFC Destinations (SM59).
— Specifications for addressing using an HTTP destination:
HTTP destination
— Parameters from the communication channel for technical routing
Content type (the entry text/XML is expected as default)
Specifies the format that the message contents (the payload) should have.
Optional header fields for the receiver-specific protocol
Attributes for the query string
1. Sender party
2. Sender service
3. Receiver Interface
4. Message ID
5. Quality of service
6. Queue ID
All attributes are selected except for the queue ID. If you do not want a value to be
transferred to the receiver, deselect it. The queue ID is only required if the quality of
service is EOIO.
Specifications for payload manipulation
XML code (default UFT-8)
Specifies the character set.
URL escaping
Presents the XML in a URL-enabled format. Special characters that could be
interpreted as control characters are replaced with escape characters (masked).
Prolog
Enhances the payload for particular servers (optional, see below).
Epilog
Enhances the payload for particular servers (optional, see below).
Enhancing the Payload
Regards
Seshagiri -
I am using Labview to comunicate with ADAM modules, but I want to comunicate with them using Modbus protocol. I don´t want to use "ADAM protocol" ASCII comands that the modules can understand.
So I need a Modbus driver or Modbus libraries. The PROBLEM is that I am using LINUX!!!!!!!!!!!!!!!!
I am looking forward to your answer!!
GraciBichillo wrote:
> hi!!!I need your help!! Does anyone know if there is any Modbus lib or
> Modbus driver to use this en Labview BUT in LINUX?
>
> I am using Labview to comunicate with ADAM modules, but I want to
> comunicate with them using Modbus protocol. I don´t want to use "ADAM
> protocol" ASCII comands that the modules can understand.
> So I need a Modbus driver or Modbus libraries. The PROBLEM is that I
> am using LINUX!!!!!!!!!!!!!!!!
Please don't shout. It's deafening my ears!
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
What type of protocol is used in local Logging Framework?
If my standalone java application uses the logging APIs of Access Server, which is located on the same server as my application, to read/write logs from/to the Server, what type of call or protocol they use for communication between them? Is it RMI or XML over HTTP as Rome Logging?
The hard disk changes with each generation of drive.. the original series were 7200rpm drives.. but as green drives became more readily avaialble and cheaper.. especially cheaper.. Apple moved to them.. The Latest TC uses WD green drives exclusively now..
Standard ordinary green WD are 5400rpm but maybe variable.
It is a slowish drive although probably just as fast as the original 500GB Seagate.
Now the important point.. there is no speed advantage in using a faster drive.. these boxes are processor-controller bound.
You can replace the slow green drive with an SSD and there is no improvement in speed.
Read the review where they did just that.
http://www.anandtech.com/show/4577/airport-extreme-5th-gen-and-time-capsule-4th- gen-review-faster-wifi-/7
The SSD was marginally faster at writing.. the green drive did faster reads.. -
MODBUS protocol implementation
hey !
need help!!
i need help
i want to automate an equipment that support MODBUS RTU framing.So the commands written in the manual are so what like
IA FUNC count values CRC
01 02 02 00 20 FA2B
everything is in hex .
so should i convert it to ascii before sending everything????Hello,
You should keep the information to be send in hex format.
Google for the modbus RTU specification, the document give great insite in the modbus protocol, so it will be easier to spot a problem.
Modbus RTU framing requires timing to detect end of message.
http://www.modbus.org/specs.php
Its always a good plan to get specifications when you can.
Kind regards,
André Buurman
Regards,
André
Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl) -
Modbus protocol implementa​tion
Hello colleagues,
I need to use a PC with a LabVIEW application to serve as modbus master to talk to a single modbus slave that concentrates data from another modbus, where it is the master talking to around 30 instruments (slaves). I have no experience with implementing modbus protocol, and have downloaded the NI Modbus Toolkit. Does someone have experience with using this toolkit - there is no help/manual, and I'd appreciate an example diagram(s) showing me the typical implementation of the protocol (initiating modbus session, sending commands, reading data, ...).
Thanks in advance,See this thread for the protocol manual.
http://forums.ni.com/ni/board/message?board.id=170&message.id=197677&query.id=96682#M197677
Attached is a serial query.
Attachments:
my modbus serial query.llb 518 KB -
When I try to sign in to the support community using one of my e-mail addresses and I put in nothing or what I thought was my apple support community user name I can get one of several messages
Ie.1. Please specify a user name
2.An account using this e-mail address already exists; only one account per e-mail address is allowed on Apple Support Communities
How do I find out what my Apple Support Communities user name isGood luck with this!!!
EVEN USING what WAS my Username, this is the exact problem I am having having entered my correct ID and Password.
Rgds
Rod -
Correlation and Async/Sync Communication using JMS adapter without BPM
Hello
1. Pls explain with simple example docs/links --- Correlation
2. Async/Sync Communication using JMS adapter without BPM
If i see blog --- If I go with blog --- /people/sudheer.babu2/blog/2007/01/18/asyncsync-communication-using-jms-adapter-without-bpm-sp-19
Pls explain --- Correlation Settings, select JMSMessageID for the XI Conversation ID.
Pls explain -- Correlation Settings, select XI Conversation ID as jMSCorrelationID.
Can you pls explain me this example with JMSMessageID and JMSCorrelationID context
RegardsHi Henry,
For Correlation, please go through the below link.
/people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
Sync / Async Bridge communication using JMS : http://help.sap.com/saphelp_nw04s/helpdata/en/45/20d251c20a0732e10000000a155369/frameset.htm
Sync / Async communication without BPM in JMS : /people/venkataramanan.parameswaran/blog/2007/01/18/syncasync-communication-in-jms-adapter-without-bpm-sp19
/people/henrique.pinto/blog/2007/08/02/syncasync-scenarios-without-bpm
Hope these help
Regards
Kiran.. -
Async/Sync Communication using JMS adapter without BPM
Hello ,
Pls suggest how Async/Sync Communication using JMS adapter without BPM .
In my scenario I have JMS Sender and then RFC/JDBC as Sync and then again JMS receiver
Pls explain the concept of
JMSMessageID and JMSCorrelationID and how to use it by an example.
RegardsHi,
If you have selected JMSMessageID, JMSCorrelationID, or JMSProperty and entered a JMS message ID in these fields, you should see the Remove 'ID:' Marker from JMSMessageIDindicator. Set the indicator.
This is necessary because the JMS specification stipulates that each JMS message ID starts with 'ID'. However, this conflicts with ISO-11578.
- JMSMessageID (Uniqueness Is JMS-Provider-Dependent)
(String) The unique message ID. Note that this is not a required field and can be null. Since the JMS provider might not use your provided message ID, the Connector sets a special property called $jms.messageid after sending a message. This is to insure that the message ID always is available to the user. To retrieve this value use conn.getProperty("$jms.messageid") in your After Add hook.
- JMSCorrelationID (Uniqueness Is JMS-Sender-Dependent)
(String) This header is set by the application for use by other applications.
Hope this will help you.
Regards
Aashish Sinha
PS : reward points if helpful -
Troubles with the modbus protocol
Hello there, I have a trouble here with the Modbus protocol; I have already read the forums and saw that there are some issues with modbus tcp; I have the latest DSC 8.0 module and also Labview 8.0; I think that maybe this issues have been fixed.
There is a demo of Modbus in the examples and it work fine on my computer and and also on two different computer; But if I want to create my own simple application to see if it works , it doesn't work;
Attached you can see a zip file with the two projects; Please someone check it for me and let me know what the problems are; If I have this simple app. working then I will move on to my really application.
Thanks,
scorpio
Attachments:
Modbus testing.zip 36 KBDear Nick,
The master I/O server in my project is pointing to my local host 127.0.0.1; For the modbus slave you cannot configure the IP address;
A collegue is also trying to find the problem. Attached you can see a word document he made illustrating the problem.
Thanks,
scorpio
Attachments:
National Instuments.doc 223 KB
Maybe you are looking for
-
If I make a new Apple ID will I loose all my purchases on my old account?
My Apple ID isn't working as it keeps asking me for my security question and I have forgotten them so I go to send myself and email to reset them but i don't recieve the email. So if I make a new account will I loose my purchases on my old ID?
-
My phone completely discharged and is now completely dead and does not want to turn on
What can I do?
-
How do i change the name of my wireless network
how do i change the name of my wireless network?
-
Bdc is completed in background i have to sent email to the user how..?
hi could anybody tel me bdc is completed in background i have to sent email to the user how..?
-
Creating Links From Converted Word docs
i converted a Word docx document to HTML that is comprised of a set of docs that are linked together. Consequently each section in the complete doc, (except the Title and Table of contents), actually becomes a modifiable JPG text box. I have been try