Menu

Cli_DBRead failed with err 665420

maxgrandi
2015-07-10
2015-07-15
  • maxgrandi

    maxgrandi - 2015-07-10

    I'm using the snap7 library with Siemens 1500 CPU, in my application I have a loop that continuosly read DB from PLC.

    The process works for 24 hours continuosly, but this morning it crash.

    The return value from DBRead funcion is 665420 (formatted in %d)

    I check the "Client Errors Table" but i don't find it. What this value means?

     
  • Davide Nardella

    Davide Nardella - 2015-07-10

    Hi,
    In accord to pag.252 of the Snap7 manual, your error is 0x000A274C,
    i.e. an error reported during recv (0x000A0000) and a tcp error 0x0000274C (10060)

    The 10060 TCP error is : Winsock Connection timeout.

    It means that the PLC closed the connection (maybe due too many concurrent connections)

     
  • maxgrandi

    maxgrandi - 2015-07-13

    Thanks,
    now I got how to interpretate the error codes.

    In my scenario I have only one connection from PC to 1500PLC.
    So can be something running on the PC the cause of this issue? Is it possible some socket port conflicts between Snap7 and something other running on the PC?

    I read carefully the Snap7 manual and I cannot find anything about the port policy usage.

     
  • Davide Nardella

    Davide Nardella - 2015-07-13

    No, it's normal that sometime the connection goes out :(
    All Siemens equipments and all HMI perform a re-connection if a TCP error occurred.

    TCPError = (Return_value & 0x0000FFFF)!=0

    Look also at a discussion "Client connected issue" in Bugs reporting.

     
  • maxgrandi

    maxgrandi - 2015-07-15

    Thanks for the support.

    I'll try to implement some "auto-reconnect" mechanism on my application

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.