python-snap7: missing functiondb_upload / function not available

Hi,

I’m missing in client.py the function “db_upload” as addressed by function make_item_db(dbnumber) in example.py.

When changed all_data = client.db_upload(db_number) into all_data = client.upload(db_number) the following error occurs:

File “c:\python\anac2\lib\site-packages\snap7\client.py”, line 194, in upload check_error(result, context=“client”) File “c:\python\anac2\lib\site-packages\snap7\common.py”, line 65, in check_error raise Snap7Exception(error) snap7.snap7exceptions.Snap7Exception: CPU : Function not available

What to do next?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (3 by maintainers)

Most upvoted comments

this is not an error in the python API. I guess the problem is what the error says the ‘function is not availble’ for your PLC.