Modbus address problem

Dear All
I have recently bought a compact FieldPoint system that consist of a cFP-1808 and a cFP-AI-118. I'm getting the system to work in Windows by using express Fieldpoint vias, but I have a requirement to have a Linux version (a embedded computer will control the system) so I have started to looking at Modbus. I downloaded the NI library "nimodbus" and read the help file "Using the cFP-180x as a Modbus Device". From the "nimodbus" library I'm using "MB Ethernet master Query.vi". In this vi there is a control that consist of five controls: "Function Code", "Starting address", "Quantity", "Data" and "Discrete".
According the help file "Using the cFP-180x as a Modbus Device" and page "FieldPoint Modbus Addresses", the address should start with '0' for raw I/O data. Since my analog input module is at slot '1'and I want to read channel 1, the address should be '01001'. But when I try to type this address in "Starting address" control it gets 'converted' to '1001' and during the run of the program  I obtain the error code "MODBUS Exception code: 2." which means that my address is incorrect. But when I'm reading the attributes (according the help file It stats with '1', therefore my address is '11001'), I have no problems.
So please explain for me what I'm doing wrong with the address for reading the raw I/O data.
Best Regards
Magnus Svensson
Message Edited by Magnus Svensson on 03-30-2006 08:15 AM
Message Edited by Magnus Svensson on 03-30-2006 08:15 AM

Magnus,
No problem...  "Coils" is an old terminology; usually implying closing/opening of solenoid coils. 
Here's the Modbus standard -- a good overview:
http://modbus.org/docs/Modbus_Application_Protocol_V1_1a.pdf
The website www.modbus.org has other stuff as well.
Regards,
-Khalid 

Similar Messages

  • Map Allen Bradley 1400 addresses to NI Modbus addresses

    Hi,
    How do I map Allen Bradley 1400 Micrologix addresses like (N7:0, B3:0/1, etc., etc.) to NIs modbus addresses? Can the NI DSC module access the PLC for read/write operations without using the NI OPC server?
    Is there any tutorial or URL  which specifically addresses the above queries?
    Thanks in advance.

    It's easier if you are using OPC ... you can map and bridge data between the two protocols quickly through tags (addresses).
    Here is what you need:
    Modbus << OPC Data Manager >> Allen Bradley
    Data Manager allows one-to-one, one-to-many, and many to many relationships between tags
    Let me know if you have any questions.
    Wassim Daoud
    Senior OPC Architect

  • Conversion from Modbus addressing to DNP3

    I am investigating the possibility of converting a Lookout 5.0 addressing protocol to DNP3.
    An example of the current addressing scheme is s40001-s40050 for example. What would these Modbus address convert to for DNP
    Can I just export the existing database into Excel, make changes, and then import the modified database?

    Wow. That's a lot of unnecessary stuff to digest. All you really need to do is focus on the root cause.
    ORABPEL-11800 Unimplemented object conversion. Conversion from JDBC type OTHER is not implemented.
    Refer to the documentation on supported datatypes.
    [http://download-east.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_db.htm#CHDDCFCB]
    The JDBC reference to java.sql.Types.OTHER means that you're using an unsupported data type.

  • Getting error code -1967353908 when trying to read a modbus address

    I'm using the Modbus I/O server in LabVIEW 2010 to communicate with a Kohler generator.  A vendor was able to supply with the the Modbus address mapping so that I'd know what addresses correspond to what IO points.  One of the addresses is 40126 which I create in the Modbus I/O server as 400126 since it requires six digit addressing.  Well, that worked but only temporarily.  Not too long after I begin trying to make sense of the values read, the shared variable begins showing error -1967353908.  The description for this error is "The specified data item address is not an allowable address for the Modbus slave device. Refer to the documentation of the Modbus slave device for information about supported addresses."
    What I don't understand is why it works one minute and stops working the next.  Also, I know that the Modbus server itself is not erroring b/c in my VI there are other boolean bit addresses that continue to report good data.  Can anyone assist in helping me figure this one out?  Thanks.
    Ryan R. 

    Ryan,
    This error may occur with certain Modbus slave devices, because the I/O actually queries for a range of addresses, some of which may not exist on the device.  To remedy this issues, reduce the number of Holding Registers in the Advanced Settings of the IO Server to 1.
    Let us know if you have further trouble!
    Drew T.
    NIC AE Specialist

  • Lookout 6.5 critical crash - writes to random modbus addresses

    Hello,
    We are experiencing a rather critical problem with Lookout 6.5. The proces file contains approximately 148 Modbus/TCP connections, some overview panels, a properties panel which uses a symbolic link to retrieve properties from a certain modbus object.
    Seemingly random, Lookout crashes during operation (with the Windows send/don't send window). When this happens, the second before the crash actually occurs Lookout starts writing seemingly random values to addresses to all the modbus devices. Some to addresses which are connected in Lookout, and to some that are not (even to addresses that actually don't exist on the device, which causes it to return an exception). The addresses do seem to be in an increasing sequence (i.e. it starts at 500, then starts writing further until about 850). Values I've seen are mostly 0, but also 256, 2308, 512, 2048, 3844.
    I've attached a packet capture log which shows the write commands Lookout is sending.
    Does anyone have any idea what could cause this crash or things I can check?
    Attachments:
    dump.txt ‏175 KB

    Also uploaded a second dump file as Randomwritecrash2.zip - I'll keep uploading dump files in sequence.
    Crash data from this dump:
    (1328.bd4): Access violation - code c0000005 (first chance)
    First chance exceptions are reported before any exception handling.
    This exception may be expected and handled.
    eax=01cbcd1a ebx=00f70000 ecx=3e720012 edx=3e720013 esi=00f70838 edi=00000009
    eip=7c902a9d esp=0013f4f4 ebp=00f70838 iopl=0         nv up ei pl nz na po nc
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010202
    ntdll!tan+0xcf:
    7c902a9d 8b18            mov     ebx,dword ptr [eax]  ds:0023:01cbcd1a=????????
    0:000> kb
    ChildEBP RetAddr  Args to Child              
    WARNING: Stack unwind information not available. Following frames may be wrong.
    0013f4f8 7c91020e 00000009 00f70838 00f70000 ntdll!tan+0xcf
    0013f510 7c9101db 0013f744 7c90e920 7c910228 ntdll!RtlAllocateHeap+0x14a
    0013f528 7c91019b 00f70838 00000013 0000003f ntdll!RtlAllocateHeap+0x117
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\WINDOWS\system32\MSVCR71.dll - 
    0013f754 7c3416b3 00f70000 00000000 0000003f ntdll!RtlAllocateHeap+0xd7
    0013f794 7c3416db 0000003f 7c3416f8 0000003f MSVCR71!_crtLCMapStringA+0x305
    00000000 00000000 00000000 00000000 00000000 MSVCR71!_crtLCMapStringA+0x32d

  • Read/Write a bit in a Modbus Address

    Greetings,
    I'm working on a project for a customer of mine. I'm working off of his I/O mapping list. We are using MODBUS to communicate to a Motorola MOSCAD FIU. According to the I/O Map, I need to read a bit from address 307682:01 which normal I would translate into 307682.1 but Lookout is not excepting this address as a valid Data Member. So I did some troubleshooting of my own and found that Modbus Data member (307682) is only used as "a 6-digit addresses of 16 bit input registers encoded as unsigned binary integers ranging from 0 - 65535." I guess an analog value.
    Is my thought process correct on this? Does my customer need to change his I/O mapping. Am I overlooking something?
    Attached is a copy of the I/
    O map.
    Oliver Scheurer
    Aegis Solutions, Inc.
    2660-T Yonkers Road
    Raleigh, NC 27604
    Phone: (919) 861-0103 Ext. 231
    Fax: (919) 861-0104
    www.aegis-solutions.com
    Attachments:
    IO_Map_for_lookout.xls ‏69 KB

    WOW!!.. I get to answer my own question. You all are slow... J/K...
    Anyway, the fine people at NI Tech Support Helped me out with this one. Seems that it is a problem related to Lookout and Modbus. After discussing this problem with a few engineers, I decided to call the customer and let him know of his mistake. Well, he proceeded to tell me that "Wonderware can do it with out a problem". So I called NI Support again, and they told me that further research showed that it is something that was not put into Lookout. The Support engineer started a "CARD?". But he also gave me a work around.
    1. create an expression
    2, enter getbit(3,1)
    This expression will return a ON status since the number 3 in binary is 1 1 and looking at the first bit is 1.
    So for my
    application I would use
    getbit(modbus1.307682,1)
    I hope this makes sense.
    Oliver Scheurer
    Aegis Solutions, Inc.
    2660-T Yonkers Road
    Raleigh, NC 27604
    Phone: (919) 861-0103 Ext. 231
    Fax: (919) 861-0104
    www.aegis-solutions.com

  • I just used the "find my apple id" and it has an id to my old email address problem is when i try to login to hotmail with that account it says the email address doesn't exist..and this is affecting my application updates and purchases.

    Please help!
    I dont know how the email address doesnt exist and how it can still be an apple id but not let my access my purchases or update old appplications
    thanks,
    Kiah.

    Hey Chris, thanks for your reply.
    The problem is that i have 2 apple Id's now and i used on to purchase my macbook pro a few years back and then i created a new one for my new macbook.. i was trying to update my iphoto and imovie but it kept saying i couldnt update it as it was purchased under a different id, and seeing though i cant get into my old account i cant update what i need to. i know the password for the old one as my brother still uses it but it wont work now as hotmail says the email doesnt exist.
    in saying that i dont think i can get into the old account and change the email address

  • Apple verify email address problem :(

    I have a bought a IPhone 4S and I wanted to sign up for itunes. I have done everything. A verification mail is sent by apple but when I linked to the web site given and write my ID (I think it is my mail) and password, I got a message "This email address is already in use or you may already have an Apple ID associated with this email address. Please try again or sign in using your existing Apple ID."
    I cannot install sth without it please help me what can I do for overcome this problem

    I have the same problem.
    And another people with me have the same problem to.
    We are wainting for a fix very fast!
    Thank you.

  • Self-assigned IP address problems

    I'm having a problem with my wireless router connection (my Airport card shows the network, but the "fan" is greyed out, and if I choose the network it still doesn't connect - When I check network status I get "AirPort connected to network, but has self-assigned IP address and may not be able to connect...)
    I can temporarily fix the problem by going into System Preferences to Network to Airport to Preferred Networks to Assist Me and THEN it will go to my network and turn on the path.
    I'm running Tiger 10.4.11 on a G5 iMac with the original AirPort Extreme card, and routing through a Linksys WRT54G attached to a cable modem.
    There are a lot of networks in my area, according to my wireless "fan".
    If changing channels on my router might fix this, I'd like to give it a try, but I don't know how, AND I don't want to ruin the signal to the other computers in the house, which, by the way, work just fine when the iMac loses the signal.
    If there's another way to tell the router to ignore the self-assigned IP address, or to get the AirPort to stop providing this ...
    The problem is obviously the self-assigned IP address. The question is what is causing this?
    Is it the AirPort Extreme Card?
    Is it the Linksys Wireless router?
    How do I test to see which it is, without losing the signal from the router to the other computers in the house?
    With so many people having the same problem, there must be an answer somewhere.
    Can some kind soul please point out the correct path? My tech support (teenager) will be home from college this week, and if I can prove to him that it won't ruin everything I think he'll be up to the challenge.

    Hi,
    Thank you Linc & dwb, I've had no issues with the router in the 14 months its been installed.  But tonight I've turned off the NAS and since then no drop off for wifi/ or assigning itself an IP address. 
    I will switch on the NAS once again and see what happens, would it be best to assign a static IP to the NAS?  One thing I have found when checking the homehub connection details, the mac air connects at the 5Gz Wireless as does the Kindle, which has also suffered from losing the wifi connection, where as my macbook pro only connects at 2.4Gz and like I said has not had any issue.  Not sure if this anything to do with the problem or not? 
    All I do know is that since the NAS was introduced then the problems began, so again not sure if its the NAS impacting on the router or a router setting? 
    thanks

  • Self-assigned IP address problem - My solution

    I am new to this board and created an ID just to write this post. When I searched for this self-assigned IP problem, I found almost 1 million results on Google so obviously I am not alone.
    I have this problem off and on on the wireless network at home with a Netgear router. It has never happened at my office with a D-Link router. Never happened at Starbucks or McDonalds (yes, they all offer WiFi here). But it happened at one Pizza Hut and it also at Christchurch airport about a week ago.
    Deleting one of the plist files worked once at home many months ago but this week nothing worked. My Mac usually goes back to normal by itself after I "****" it out at other WiFi networks but not this time. As a last resort, I asked my brother (our family's I.T. guy) to change the router as I had not tried that fix. He didn't do it but a day later, he gave me to oddest solution that worked in a blink of an eye.
    The solution? Key in a wrong password!!!
    1) Go to Keychain Access, delete the keychain for the problematic network.
    2) Connect back to the network
    3) Enter a WRONG password that is similar to the right one. For example, if your password is Apple123, try APPLE123. You should still connect to the network and get a self-assigned IP.
    4) Repeat Step 1. To be safe, you might want to re-boot now. I did but probably didn't have to!
    5) Repeat Step 2
    6) Enter the right password
    I'm not all that techie so all I understood from what he said was:
    1) It's probably a non-Apple router bug
    2) It's a hex key problem. The password wasn't being encoded/decoded properly so the router wasn't assigning the computer an IP address. Wasn't even reading the password which is why I could connect with a wrong one.
    He deduced that from reading a post from a guy in Spain who thought he had carelessly entered the wrong password and was wasting the community's time with his posting. I had read that post a couple of days ago too! But obviously I thought the Spaniard had just entered the wrong password and there was no fix for me to try out. My brother is a genius!
    I guess it then makes sense why fixes like:
    1) Disabling the firewall
    2) Deleting preference lists
    3) Deleting keychains
    4) Changing the router
    5) Renewing DHCP lease
    6) Resetting the router
    ...have worked for many people and not others. None of them actually fix the cause of the problem. Having searched for 3 days, I could not find the REAL reason why this happened. Personally from all I have read, I think it must be a hex key problem with Netgear and Linksys routers. I see those 2 names mentioned a **** of a lot. Maybe it's another one of those gadgets built more for PCs that don't work perfectly with Macs all the time. We used to have an Apple Airport Extreme base station but that got fried by lightning. It was not cheap.... So technically, it really isn't Apple's problem. I think if we used an Apple router, we wouldn't have a self-assigned IP address. Maybe that's why they haven't "fixed" the problem after so many years.
    Anyway, let me know if my brother's fix worked for you.
    This is my good deed for the weekend! Goodnight....!

    Hello, thanks for the tip/post, & a warm welcome to the forums!

  • IMessage contact address problems

    I am a little perplexed about how to set up iMessage correctly. 
    I have iMessage activated.  My settings are that "I can be reached by iMessage" at my phone number and email.  I "Start new conversations from" my email.
    The first problem I have is when I talk to my girlfriend (she has an iPhone).  I frequently have two different iMessage threads with her and it is very frustrating.  In one thread, if I click on her Contact info it highlights her phone number.  The other thread, it highlights her email.  Its annoying to not keep everything in one unified thread.  Is there anyway to do this? Is the problem on her end or my end?
    Keeping the above problem in mind, I would also like to unify my iMessage with my iPad messaging.  I get this to work sporatically, but I would like it if I could consistently see all my iMessage conversations in my iPad as if I were looking at my iPhone.  My girlfriend also has an iPad (although she hasn't been using it for messaging) so I would like to be able to set up the same for her.
    I just don't understand the need for separating iMessages into two threads depending on the address.  It would seem to be easier for everyone if you just kept it unified based on the name.
    Any help would be greatly appreciated.

    Hi, did you ever fix this problem? I'm having the same issue.

  • DHCP beginning address problem.

    Hi guys,
    I cannot understand how to configure my TC. I put exactly the same network settings as they were in the Airport Express to share the Internet connection. Everything works fine except the internet itself. The problem as I see it is that dhcp beginning address cannot be set far away from the static IP. In my case, the static IP is 213.170.70.** and I only can change these ** last figures in the dhcp range.
    But this conflicts with my provider and I have no internet while the TC itself works fine. If I set "share the only address" it doesn't help either.
    Anybody can help?
    Many thanks in advance.

    None really. These are the three IP Address ranges available for Private Networks. The Internet Engineering Task Force (IETF) has directed the Internet Assigned Numbers Authority (IANA) to reserve these IPv4 address ranges for private networks. This has been published in RFC 1918.
    More info: Wikipedia: Private network

  • Web server default address problem

    When I installed the new Xserve with Leopard Server to replace an old G4 running OSX 10.3 server my default Web address changed from: http://xxxx.xxxx.xxx to http://xxxx.xxxx.xxx/groups/workgroup/
    I just want it to go back to the original way it was. I'm living in a Windows world and I'm the only Mac person here.
    Any help would be appreciated.

    I had the same problem this morning with a clean install of 10.5 Leopard Server.
    I called apple and spoke to a really good guy who ran through a diagnosis with me and advised that under server admin you have your default site built in, what to do is click on that original site then there is a little box under it where you are able to duplicate the site, click this, then basically make everything the same and try through safari and it should work, mine works perfect now.
    I asked him why this happens and a easy answer was oh its a glitch we aim to fix it as soon as possible.
    Hope this helps

  • SG200-8 Static mac address problem

    Hi!
    My second problem with sg200-08 (firmware: SG200-08x_FW_1.0.6.2.stk) is when I try to add specific MAC address as secure:
    MAC Address Tables - Static Addresses - Add; insert vlan id, port, mac address and select "Secure":
    I get error message: "Error: Failed to Add 'Static Address' entry.
    Again, thanks for reply!
    Best regards,
    Boris Bahes.

    Moritz Lipfert wrote:I have the same problem using the current firmware 1.0.6.2. But even an upgrade by TFTP followed by a factory reset does not help. A downgrade to firmware 1.0.5.1 also does not fix this issue.Are there any other suggestions?
    Strange as it may sound, try playing with compatibility mode in Internet Explorer. I have found that these switches interface respond well only in IE.

  • Lookout 6.0.2 modbus rtu problem?

    One of our customers has Lookout 6.0.2 communicating with several CMI Scada Packs over wireless modems using Modbus RTU protocol. Suddenly last Friday night he got comm fail alarm pages on all but one site. The  Modbus statistics window revealed that Lookout had stopped polling all sites except the one site that stayed in communications. The only activity was the one site.
    He watched it poll this way for 2 hours, never returning to the normal polling cycle.
    I had him exit and re-launch Lookout and polling returned to normal and has been that way since late Friday night.
    This system has been in service for several years with very near 100% good communications sice we deployed it, up until now.
    It was obviously a Lookout failure, since the only action taken was to exit and re-launch Lookout.
    Isn't there a watchdog timer for this sort of error?
    Is this a failure of the Modbus cbx object? (We are using the plain vanilla Modbus driver)
    Roger Foote
    Foote Control Systems
    Solved!
    Go to Solution.

    Hey Mr Domer
    If it's the one I think it is, I designed and built the RTU system and repeater system after the "Packaged" system became obsolete.
    That was back when 1200 baud was fast! I guess it was compared to the 300 baud limit on the old stuff. Probably been re-built a couple of times since.
    Thanks for the sequencer suggestion. I will have to think on this since we are pushing the limits for polling... Some ScadaPacks in this syatem have to do up to 25 modbus transactions per site... We have serious I/O in this sytem lots of which is in floats. Haven't tried DNP yet but I am getting pressure from some distributors to go Clear SCADA and use DNP to thin out redundant polling. Thing is this system has worked flawlessly for years and now suddenly we have this issue, so I am not ready to throw in the towel yet and I doubt the board would go for the moneys to implement it. We are adding another 8 pump site this October after the canals are off line but before they are drained for winter. This is  so we can test the system before the frost protection season for the almond crop.
    If NI can't fix this I will probably just insist that my clients reboot every week. I am fortunate that these are not unmanned districts. Only problem is that each of them are at least a 2 hour drive from any one point so I need to keep callbacks to a minimum which would be zero callbacks if it weren't for software screwups.
    Best regards
    Roger 

Maybe you are looking for