Error 56 occurred at TCP Read in MB Ethernet Receive.vi

My sensor uses MODBUS TCP and operates as a slave device.  Currently I'm using Labview 7.1 on my PC and would like to communicate w/ sensor as a Master.  I downloaded MODBUS library from ni developer zone.  I want to read 14 discrete outputs (coils).  I believe MB Ethernet Master Query.vi is most appropriate to use for my application.  I put this block into my *.vi inside of a while loop, hooked up the connection ID, configured it with address start/quantity, and ran.  The error I got says: "Error 56 occurred at TCP Read in MB Ethernet Receive.vi->MB Ethernet Master Query.vi->...*.vi".  I have confirmed that TCP is working with Labview because I can receive other non-MODBUS sensor data from my device via TCP/IP using a different *.vi I created.  However this data is received though a different port than the typical 502 MODBUS port.  I have also confirmed MODBUS is working on my device using a 3rd party Polling Utility that reports register status.
I currently do not have NI-VISA 3.0.1, VISA Server 3.0.0, or Measurement & Automation Explorer (MAX) version 3.1.1 installed on my PC.  Do I absolutely need these products to do what I need to do?
Any thoughts why I am not able to get this setup working?
Also, I am embarking on developing several MODBUS applications after this.  Would it be a good idea to upgrade my version of Labview to gain more MODBUS functionality w/ Labview?  I'm somewhat new to Labview and am a little confused on which products would really help me for working on MODBUS applications and if those products are compatible with my 7.1 version.

Hi cwallis2,
If you  can use  TCP/IP in Labview then you should be okay as far as that is concerned.  The Ethernet Modbus VIs use LabVIEW TCP VIs underneath; the Serial Modbus VIs use VISA underneath.  So unless you want to try the serial VIs if that's a possibility, then you should be okay without VISA.
The error 56 is a time-out error and is generated when an operation
exceeds the user-specified time limit. This error is caused by the
LabVIEW code not receiving a network response in the defined time
limit. The default time-out limit is 5 seconds, which should be enough,
although you can increase this time-out value as an input for the MB
Ethernet Master Query.vi. Since you get the time-out when you are
reading instead of the initialization lets us know that you are able to
open the TCP port correctly.
What is the address you entering into the MB Ethernet Master Query.vi in the Modbus Command constant?  You may need to use relative addressing instead of absolute addressing, or vice versa. 
Hope this helps!
Adam W
Applications Engineering
National Instruments 

Similar Messages

  • An internal error occurred in adobe reader

    an internal error occurred in adobe reader.

    I was frustrated by this problem as well. I even uninstalled and then resinstalled a fresh download: SAME Problem.
    Now the problem seems to have been RESOLVED on my Windows Vista Laptop.
    Instead of trying to open by double-clicking on file icons, I opened the Adobe Reader from the Windows Explorer. On the first screen appeared the usual Adobe Licence & Terms that I had to ACCEPT. This screen NEVER showed up before after either upgrading to the Adobe Reader X or after reinstalling. After accepting the License and TERMS. this problem does NO longer reproduce.
    I have successfully opened fewer than 10 PDF files without the annoying error so far. I hope others will reproduce this "FIX" before claiming this was the root cause of the problem.
    Hopefully Adobe will display a more meaningfull error message for such a problem.

  • An error occured attempting to read properties for 'Cluster Group' group. The remote procedure call failed. Error ID:1726 (000006be).

    Hi All,
    I have a two node 2003 cluster, When any one of the cluster node holding resources goes down, the resources are not failing over to the running node.
    In the running node I receive the pop-up error message
    ""An error occured attempting to read properties for 'Cluster Group' group. The remote procedure call failed. Error ID:1726 (000006be).""
    After I click on ok on the pop-up error message the resources are coming online on the running node. If I dont click ok the pop-up error message. The Cluadmin screen is not responding and the resources are not coming online.
    In the cluster log i see the below messages realted to Error ID 1726
    00000874.00000b10::2014/03/17-23:38:58.276 WARN [EVT] EvtBroadcaster: EvPropEvents for node 2 failed. status 1726
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: ProcessId= 2164
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: SystemTime= 3/17/2014 23:38:58:276
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: GeneratingComponent= 2
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: Status= 0xc002100b
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: Detection Location= 641
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: Flags= 0x0
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: Number of Parameters= 2
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: Long Val= 32000
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: Long Val= 32000
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: ProcessId= 2164
    How to FIX this issue?
    Regards,
    Stunner.

    Hi,
    Unfortunately, the available information is not enough to have a clear view of the occurred behavior. Base on my experience, it may cause by some of one resource abnormal
    failure, I suggest that please schedule a down time to run “Repair Active Directory object” in “Simulate Failue of this resource” status. And the operation “Repair Active Directory Object” will force to update the object’s attributes.
    More information:
    Understanding the Repair Active Directory Object Recovery Action
    http://blogs.msdn.com/b/clustering/archive/2013/12/13/9067582.aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • An error occurred attempting to read DynamicList

    Hi!
    I have a Netiq Sentinel 7.1.1.2 when I try make an dynamic list on the
    WEB Interface or in the control center, I see the next message error on
    the log:
    Tue Jun 03 11:45:54 CDT 2014|INFO|qtp209445166-14189476 -
    /SentinelRESTServices/objects/dyn-list/count?query=name.eddd|esecurity.ccs.comp.audit.Aud itLogger.execute
    Audit High:: Action by user javila via Sentinel service Server
    object ZLists method ReadDynamicList client 172.22.3.136 failed : An
    error occurred attempting to read DynamicList: null, with XDAS taxonomy
    name: XDAS_AE_QUERY_DATA_ITEM_CONTENTS
    And the next message error on the interface:
    com.novell.sentinel.client.http.HttpException: 500: 500: Server:
    Internal: java.lang.NullPointerException
    and I see the server internal error on the
    https://<sentinelip>:8443/SentinelRESTServices/objects/dyn-list/
    <WrapperNcacFault>
    <Fault>
    <Code>
    <Value>Server</Value>
    <Subcode>
    <Value>Internal</Value>
    </Subcode>
    </Code>
    <Reason>
    <Text>java.lang.NullPointerException</Text>
    </Reason>
    </Fault>
    </WrapperNcacFault>
    What can I do tu fix this?
    Thanks.
    javilam
    javilam's Profile: https://forums.netiq.com/member.php?userid=6183
    View this thread: https://forums.netiq.com/showthread.php?t=51013

    Hi javilam,
    Was this an upgrade, or a new install? Either way, it looks like one of
    your DL files got corrupted or something. Can you create a Service
    Request with our Tech Support? We will definitely want to track this
    down and fix it.
    DCorlette
    DCorlette's Profile: https://forums.netiq.com/member.php?userid=323
    View this thread: https://forums.netiq.com/showthread.php?t=51013

  • Error 56 in TCP Read

    Hi,
    I have TCP Read in a loop  expecting data from some Micropchip boards connected to it. The problem I have is the boards do not send data all the time, hence I cannot wire in a specific constant to the number of bytes to read in, in the TCP read block.
    Am I right in saying the only option is to clear the error 56 when it occurs?
    Thanks,
    Harshil

    That should solve the problem.  See this post...
    There is a VI that you can use to clear this error.  look fo rexamples\comm\UDP.llb\no timeout error.vi
    The VI is located in an LLB named UDP, but the function only checks the error code, it has nothing to do with the connection.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Internal error occured...Reader XI

    I’ve been getting the message “an internal error occurred” the last few times I’ve tried using Reader XI on my Windows 8.1 laptop.   I’ve even gone as far as using Revo Uninstaller AND the tool at http://labs.adobe.com/downloads/acrobatcleaner.html with no luck.  It's obvious that the Acrobat cleaner doesn't work.
    Even if I press okay to clear the message, the program closes down. 
    This is very frustrating as most State Employment Applications are in PDF format and I’ve used Adobe for years.  What is the problem with Reader XI and Windows 8.1…and reformatting my machine is NOT a good answer since every other program works??
    TIA

    Pat,
    I went back and uninstalled Reader X as somethings were working for it and then ran Revo and the Adobe tool.
    I downloaded XI, disabled AVG and let it install, rebooted and and ran the program, only to get the same error message "an internal error occured".  The only thing I haven't done was uninstall the app "Reader" I downloaded from the Windows store that would also allow pdf viewing.
    I've switched back to Adobe Reader X and allowed it to update to 10.1.10 but it seems to run sluggish on Win8.1 even with using the Win7 compatibility mode.

  • Internal Error Occurred With Adobe Reader 9.3 (Vista)

    I have Vista.  I had Adobe installed on the computer and it had been working fine for 6 mths.  Recently was prompted by the computer that Adobe needed an update.  I ran the install for 9.3 and it appeared to work, but when launching program get an error: "An internal error occurred".  I've uninstalled and reinstalled Adobe Reader 9.3, but still can't get it to work.  Please help!  I need to use Adobe!

    How do you install Adobe Reader 9.3.3?  Please give details.
    Are you installing it as an Administrator user?
    What is the full 1406 error message?

  • 0x803d0013 Error occured sending encryption status (A fault was received from the remote endpoint)

    Alright, I am stumped. I have looked at nearly every article on this error here at Technet and other sites:
    An error occurred while sending encryption status data.
    Error code:
    0x803d0013 
    Details:
    A message containing a fault was received from the remote endpoint.
    First, I am testing this. I have copied the MDOP ADMX/ADML files directly to the client I am testing this on, and I am applying the policy via the Group Policy Management on the local machine. I am not deploying this via the domain. I wouldn't think that
    would make a difference, but please let me know if I am wrong.
    I have performed the following:
    1. (DisableMachineVerification)
    in MBAM registry as
    is in this article  http://support.microsoft.com/kb/2612822
    2.  On the MDOP group policy I have enabled: 
          I. Client Management
              A. Configure MBAM Services
              B. Configure user exemption policy
         II. Fixed Drive
              A. Fixed data drive encryption settings
              B. Choose how BitLocker-protected fixed drives can be recovered
         III. Operating System Drive
              A. Operating system drive encryption settings
              B. Choose how BitLocker-protected operating system drives can be recovered
         IV. Removable Drive
              A. Control use of BitLocker on removable drives
    3.
    On the MBAM Administration Server AD object, enable the “Trust for delegation for any service (Kerberos Only) option”, under the Delegation tab. Also,
    the user has been granted delegation privileges for all of the services on the server.
    4. SPN Records have been created for the server
    5. HKLM\Software\Policies\Microsoft\FVE\MDOPBitLockerManagement
    Change the ClientWakeUpFrequency = 1 and StatusReportingFrequency=1 
    Create a dword value “NoStartupDelay” under HKLM\Software\Microsoft\MBAM and set its value to 1.
    Also, I did not encrypt my drive with MBAM. It was encrypted before hand. Is there anything I can check or do? The event logs on the MBAM server under MBAM-Web don't show anything under Admin or Operational.
    I think my KeyRecoveryServiceEndPoint and StatusReportingServiceEndpoint URLs are correct:
    https://mbam01.domainname.com:443/MBAMRecoveryAndHardwareService/CoreService.svc
    https://mbam01.domainname.com:443/MBAMComplianceStatusService/StatusReportingService.svc
    I even think there was a registry key to make the hardware compatible, but I don't remember which key it was, as I uninstalled and reinstalled, and don't remember where I found that on the forums.
    Any suggestions?

    If you have made changes to the web.config files to accommodate the SSL settings, you will not be able to browse the URLs with the http protocols. The URLs will then only work with the https protocols.
    Could you please confirm the login created for the particular local groups with the following permission:-
    For MBAM Compliance Auditing DB Access:-
    User Mapping – MBAM Compliance Status
    DB Role Membership – ComplianceWriteRole
    Server Roles – Public
    For MBAM
    Recovery and Hardware DB access:-
    User Mapping – MBAM Recovery and Hardware
    DB Role Membership – RecoveryandHardwareReadRole, RecoveryandHardwareWriteRole
    Server Roles – Public
    Make sure the MBAM Computer account (MBAM Web Server) is a member of these two groups.
    Gaurav Ranjan

  • Error occurs with Adobe Reader on romanian Systems

    I have encountered an error in the Version 11.0.10 of "Adobe Reader XI - Romanian" running on a Windows 7, Service pack 1, 32-bit Operating System with a romanian language pack. In Detail the issue appears on opening a pdf-file, showing that there is a Problem with "Arial, Bold", but showing the exact pdf-file as it is supposed to be. The error-message occurs every time and get's pretty annoying. Even mutated vowels that aren't supposed to be in the romanian language are shown without further Problems.
    I have tested the pdf-file on other operating Systems with different language packs and another known pdf-reader. In every case except the explained above there are no Errors at all.
    How to fix that Problem?
    With best regards,
    Julian.

    Sorry for my delayed answer.
    I tried several versions:
    Adobe Reader XI - Romanian on Windows 7 - Romanian
    Adobe Reader X - Romanian on Windows 7 - Romanian
    Adobe Reader XI - Romanian on Windows 7 - German
    Adobe Reader X - Romanian on Windows 7 - German
    All resulting in the same Error mentioned above.
    I also noticed, that Windows 7 with the Romanian Language Pack contains 5 different Arial-Font versions, while the German Language Pack contains 9. I expanded the Arial Fonts on the Romanian Windows 7 from five to nine and created a new pdf file (on the same way the Initial file was created) resulting in the same error.

  • Parity error occurs in VISA read when building an executable

    Hi,
    I am doing some serial communication in LabVIEW and have battled for a long time with parity error where it appeared as a lot of 0's were added to the data I read through VISA read. I fixed my problem according to this description:
    Can I Do 9-bit Serial Communication Instead of 7 or 8 bits?
    Where i modified the visa ini file to disable error replacement. This seemed to help out the problem - at least i got the data i expected, until i built an application.
    When i build and EXE the problem occurs again when i run the application on another computer - not the computer on which it is built. I have made sure to include a customed configuration file, i.e. to include the modified visa.ini file to make sure that the error replacement is disabled in the application as well. When i look in the configuration file that follows the application it also appears as if the error replacement is disabled, however, it seems not to work since a lot of 0's are once again filled into my dataset.
    I have of course made sure that the serial port setting are set up correctly.
    I am using LV2013.
    Anyone tried this before or is able to help somehow?
    Thank you
    Nicolai

    Sure, I have attached my VI - however i'm not sure it provides any useful information in this case. What I am doing is simply reading a serial port every 750 ms, accessing specific data in it and plotting in graphs. The VI works perfectly fine on the development computer.
    I don't think the VI or the serial port are what's preventing me. It seems like the configurations in my visaconf.ini file are not transferred to the deployment computer. I have tried the following from the knowledge base:
    How to Include VISA Settings in a LabVIEW Installer
    Why Does Serial Communication Not Work on my LabVIEW Deployed Executable?
    Storing VISA Aliases and Moving Them to Another Machine
    I can also see that the 'DisableErrorReplacement' parameter is set in the .ini file that comes along with the application, but it seems like it is not applied since I keep receiving all these annoying 0's that ruin my data.
    As you can see in the VI i configure my serial port in the 'false'-state, and then on the development machine I have just added 'DisableReplacementError=1' to the visaconf.ini file which solved my problem before trying to distribute the app.
    Hope some of you guys can help.
    Best regards
    Nicolai
    Attachments:
    Read datablock.vi ‏55 KB

  • TCP Read Error 1

    Hello!
    I would like to create a server - multi clients program. When i want to run that, the second iteration (top while loop, when listen a client) give the Error 1 error in the TCP Read.vi.
    Somebody could help me? 
    (Sorry about my english, it isn't the best)
    Thanks
    Attachments:
    MCP.zip ‏54 KB

    Dear tibtobi!
    Welcome on NI Discussion Forums! 
    In my opinion for such kind of projects it is better to use an already working solution.
    Please allow me to recommend You a woking  Multiple TCP Clients to One Server implementation:
    Managing Multiple Clients from One Server Using TCP/IP in LabVIEW
    There are also some articles about this topic like this:
    Connecting Multiple TCP Clients to One Server in LabVIEW
    There is also a reference library made by NI:
    LabVIEW Simple Messaging Reference Library (STM)
    In my opinion You could save a lot of time by using these already existing resources an implementations.
    Please let me know, if my suggestion helped, or if You have any other questions.
    Best Regards,
    Balazs Nagy

  • When I try to activate my home sharing on iTune I get this error message."home sharing could not be activated because an error occurred(-2146762487)"  .How can I solve this problem?

    When I try to activate my home sharing on iTune I get this error message."home sharing could not be activated because an error occurred(-2146762487)"  .How can I solve this problem?

    I have a brand new iMac with all the newest updates etc etc, Safari logs me in without any problem but iTunes etc is just not working.. and I have the same message...Any ideas how to resolve this?
    "Home Sharing could not be activated because an error occurred (5506)."

  • Error Occured in BUILD_DRIVER

    I am facing following error in cube maintenance while submitting maintenance job to oracle queue.
    ***Error Occured in BUILD_DRIVER:
    It doesnt gave any other reason. I deployed everything on another machine with same patches, it works fine there.. but on second machine it doesnt. Also, when i manually maintain the cube from AWM , it works fine. I copied exact maintenance script generated by everytime it gave me above error.
    Can any1 help me out ?

    Let me elaborate further.
    I have two different environments.
    Environment 1
    Oracle Database 10.2.0.2.0
    1 Interim Patch :
    5612127
    The scheduled cube maintenance script is working fine in this environment. The cube is built in MY_OWNER shema. And this scheduler will run by METADATA_OWNER user. However, the scheduled job is run under the ownership of "SYS" which is quite weird. In end, this scheduled job is ran successfully without any error and cube is maintained properly.
    Environment 2:
    Oracle Database 10.2.0.2.0
    5 Interim Patches :
    5612127, 4939157, 5225799, 4639977, 5033476
    The scheduled cube maintenance script is not working in this environment. However, if i manually maintain the cube in AWM, it works absolutely fine. The exact error it says in XML_LOG is:
    11:30:49 Failed to Submit a Job to Build(Refresh) Analytic Workspace MY_OWNER.MY_ANALYTICAL_WORKSPACE.
    11:30:49 ***Error Occured in BUILD_DRIVER:

  • ITunes could not back up the iPad "iPad Name" because an error occured

    Hello. I have been backing up my iPad to the cloud since I got my iPad just over a year ago, but whenever I try and back up to a computer it comes up with the error 'iTunes could not back up the iPad "iPad Name" because an error occurred'. After reading MANY posts on the internet about this issue I am still not any closer to figuring out why it is not backing up and has never been able to back up to a computer. I am running Windows 8 Enterprise 64bit on a HP laptop. My iPad is a 3rd Gen 16GB iPad.
    Here are the things I have tried:
    1. Update iTunes and iPad to latest software.
    2. Delete all previous backups by trying two methods (I have been unable to backup the iPad at all so there were no previous ones. Here are the two methods:
    a) iTunes -> Edit -> Preferences -> Devices -> Device Backups (none there)
    b) C:\Users\James\AppData\Roaming\Apple Computer\MobileSync -> delete backup folder.
    3. Turned off Windows Firewall. I am not running any other security software apart from the built-in Windows Defender.
    4. Uninstalled the entire Apple suite (iTunes, Quicktime, etc.) and reinstalled.
    5. Deleted the lockdown folder from C:\ProgramData\Apple.
    6. Disconnected all USB devices and removed CD from disk drive.
    7. Removed local backup encryption password.
    8. Tried a fresh user account.
    9. Tried a fresh user account on a different computer (Win 7)
    10. Tried a different cable (original from Apple)
    11. Run diagnostics on iTunes (all reported OK. Connectivity to iPad was fine)
    I have probably missed some things that I have tried because I have tried ALOT but this is most that I can remember. Just to re-iterate, the iPad has always been able to backup to iCloud fine and syncs perfectly well with iTunes. The only problem is when I try to backup to a computer. Any help or suggestions will be much appreciated. Thanks

    I have a similar problem.  My iPad is barely a month old and it backed up/synced fine at first.  Now I get this same error.  I've tried the same things Jalex mentioned plus several more.  Nothing worked. 
    Then something odd happened.  Last night I was on my laptop and opened itunes.  It looked for, found my iPad and synced with it all by its self.  I thought "thank goodness something must have worked"!!   Now today, same thing...get the error everytime. 
    I think it is fairly common Jalex, as I've found several posts and followed all the directions trying to find a fix.  I haven't however found a post where anyone found a specific fix.

  • TCP Read blocks remote Port

    HI,
    I want to read a NMEA string(update rate 1 Hz) from a server. The original NMEA(serial, 4800 Baud) is converted by a MOXA to TCP.
    Here is my minimal program, I have normally a "wait until 1000ms" timer inside.
    The problem is that the MOXA closes its port every other minute. I still can read but every one else is blocked.
    Other terminal programs work. The network guy tells me that he sees a lot of traffic coming from my adress and he thinks that at some point the MOXA is confused and closes its ports.
    Is there a possibility that TCP read sends a status or failure string?
    Solved!
    Go to Solution.

    azavarsky wrote:
    HI,
    I want to read a NMEA string(update rate 1 Hz) from a server. The original NMEA(serial, 4800 Baud) is converted by a MOXA to TCP.
    Here is my minimal program, I have normally a "wait until 1000ms" timer inside.
    The problem is that the MOXA closes its port every other minute. I still can read but every one else is blocked.
    Other terminal programs work. The network guy tells me that he sees a lot of traffic coming from my adress and he thinks that at some point the MOXA is confused and closes its ports.
    Is there a possibility that TCP read sends a status or failure string?
    How fast does this device send its strings? Does it simply spew data without any query command having to be send? If so your Moxa may have a problem too, as it may not know what to do with the data if there is no client connected to read it. Also your Moxa converter may have trouble to serve more than one TCP client on the same port anyhow. What should it do if several clients try to access the same port? Send the same message to each? Or send the incoming message randomly to one of them?
    Do you get errors from your TCP Read once Moxa "closes" the port as you say? If so you should terminate your loop on any error except possibly a timeout error and reopen the port in a second outer loop until your program wants to exit. Your loop never stopping on errors will prevent the TCP Close to execute which will keep the socket open and prevent the Moxa from seeing the proper handshaking that the connection has been properly closed by the client, which will likely prevent the Moxa device from being able to accept new connections. Network communication can be tricky and one of the first things you have to learn is proper error handling. Just about any error anywhere in the network connection, except usually a timeout error on read, should be handled by closing the connection and trying to reconnect.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for