This is the official Snap7 repository starting with release 1.4.3.
Previous releases are available in the SourceForge repository.
The official site is still here.
To make downloading and compiling more efficient on different operating systems, the package has been split.
You will find the old folders as separate repositories, so you can download only what you are interested in.
This is the list:
| Folder | Repository |
|---|---|
| /snap7/examples | snap7.examples |
| /snap7/LabVIEW | snap7.LabVIEW |
| /snap7/rich-demos | snap7.rich-demos |
| /snap7/utility | snap7.utility |
in snap7.utility you will also find HMITracer, clientdemo, serverdemo and partnerdemo, already compiled for Windows, useful for testing the connection to a CPU/CP or trace what an external HMI is requesting to a PLC.
You can find further info in History.txt
The /build/bin/win32 and /build/bin/win64 folders already contain the latest Windows DLLs (and .lib), ready to be used. For other (*nix) operating systems you need to compile snap7 to match your architecture, libc version, etc.
To do this you need the C++ toolchain, which is usually already included in the distribution.
Otherwise, for example on Linux, you can install it with:
sudo apt install build-essential
Download and unpack this repository in your home, or use git:
git clone https://github.com/davenardella/snap7.git
Enter in the OS folder (snap7/build/< your OS >/), then:
make [clean | all | install]
gmake [clean | all | install]
gmake -f i386_solaris_cc.mk [clean | all | install]
gmake -f x86_64_solaris_cc.mk [clean | all | install]
gmake -f i386_solaris_gcc.mk [clean | all | install]
gmake -f x86_64_solaris_gcc.mk [clean | all | install]
Note: install switch requires sudo
Open the Solution file (/build/windows/VSXXXX/VSXXXX.sln) with Visual Studio (Community Edition is free and fine) then build it.