Menu

Getting "CLI : function refused by CPU (Unknown error)" on calling DBRead

2018-06-30
2018-07-01
  • Werner Putzhuber

    Hello!

    I've used Snap7 for c++ on previous projects. Now I have a new one using a Simatic S71500.
    First I'm trying some basic tasks such as connecting and reading the status. Works fine.
    I have followed he " S7 1200/1500 Notes" and therefore I've checked "get/put" within the plc and selected the second possibility on the security-settings of the plc using TIA-Portal (full access without password). The DB is public accessible.

    Nevertheless trying to read some data using Client->DBRead from snap7-library results in the error "CLI : function refused by CPU (Unknown error)".
    Are there any advices?
    Thanks in advance ...

    Additionally:
    Is there any ongoing work on supporting the extended interface of theses PLCs?

     
  • Davide Nardella

    Davide Nardella - 2018-07-01

    The DB must be unoptimized (did you recompiled the program ? )
    You checked "get/put" but you didn't download the hardware configuration...

     
    • Werner Putzhuber

      Thanks a lot. The settings had been ok. But: It seemed as if it had been recompiled. But it wasn't. So that had been the problem. You are my hero!
      And again: Thanks for this great lib!

       

      Last edit: Werner Putzhuber 2018-07-01

Log in to post a comment.