Troubleshooting Error "Mech-Center 1.6.0 Siemens PLC Client Standard Interface: Can't find snap7 library. If installed, try running ldconfig"

Error

Mech-Center1.6.0: can‘t find snap7 library. If installed, try running ldconfig.
73d6cc550297825767d5f9ac540fb7ebd131fbcb

Cause

When Python reads Siemens S7 series PLC information, it uses the snap7 library. If the project can’t find the required DLL and LIB files, it will prompt this error message. Subsequent versions of Mech-Center have optimized this issue. If it’s not convenient to upgrade the software version on-site, follow the steps below to resolve the problem.

Troubleshooting steps

  1. Choose appropriate DLL and LIB files based on the operating system (this article uses Windows 64-bit system as an example):
    snap7.dll (238.5 KB)
    snap7.lib (25.6 KB)

  2. Download the two communication library files, snap7.dll and snap7.lib, from Siemens Snap7.

  3. Copy these two files to the C:\Windows\System32 folder on your computer, then rerun the program.