Project home: https://bues.ch/a/awlsim Original repository at: https://git.bues.ch/git/awlsim.git https://bues.ch/a/awlsim

Michael Buesch 19c10892af gui/fup: Fix crash, if all elements are removed from the grid 5 hours ago
awlsim 19c10892af gui/fup: Fix crash, if all elements are removed from the grid 5 hours ago
awlsim_loader 4b7768ca93 core: Move parser to awlcompiler submodule 4 months ago
awlsimhw_debug 8b9d372a9b hwmods: Add import of awlsim.common.exceptions 2 weeks ago
awlsimhw_dummy 8b9d372a9b hwmods: Add import of awlsim.common.exceptions 2 weeks ago
awlsimhw_linuxcnc 8b9d372a9b hwmods: Add import of awlsim.common.exceptions 2 weeks ago
awlsimhw_pyprofibus 8b9d372a9b hwmods: Add import of awlsim.common.exceptions 2 weeks ago
awlsimhw_rpigpio 8b9d372a9b hwmods: Add import of awlsim.common.exceptions 2 weeks ago
debian aeef420c98 Bump version 2 weeks ago
doc 564319e8b2 Add awlsim-proupgrade to setup 2 months ago
examples 1fc1a873d9 example: Add FUP move box 1 day ago
libs 91fa5d0095 Fix min-int constants on 32 bit Cython 1 month ago
maintenance 6e4480c373 Add helper script to set environment variables 6 days ago
pilc 9a4a312ae1 pilc: Isolate CPUs 2 and 3 6 days ago
progs 5bcb65a617 Add PuTTY 10 months ago
submodules ac8b991997 Update pyprofibus 2 months ago
tests a5f2faa8fd tests: Clean up more environment variables before running 6 days ago
.gitignore 7cde4e890c Add generated doc files to gitignore 5 months ago
.gitmodules a5559035f8 Move all git submodules to "submodules" directory. 11 months ago
COMPATIBILITY.md c4e79739bc doc: Fix typo 5 months ago
COPYING.txt 193467d27e Clarify license conditions (GPL2+) 3 years ago
MANIFEST.in 9433b1f5e7 Move setup_cython.py to maintenance directory 3 months ago
QUICK-START.md 4058500794 Add QUICK-START documentation 5 months ago
README.md 11ad359339 README: Add reference to examples 5 months ago
TODO.md 54c4e5a5b0 symtab: Support ASC files with trailing white space stripped 2 weeks ago
awlsim-client 2d76736f0d Move cython logic to separate awlsim_loader module 7 months ago
awlsim-gui 250f25803b Update copyright 1 year ago
awlsim-linuxcnc-hal 9cab2bcaa0 Add CpuConfig to store CPU configuration values 2 months ago
awlsim-proupgrade 91d08301c6 proupgrade: Add info message 1 month ago
awlsim-server 164c250f7f awlsim-server: Fix cython helper check 6 months ago
awlsim-server.service.in 74d8702854 service unit: Disable hash randomization and set CPU affinity 6 days ago
awlsim-symtab 21e6cad1f8 ASC: Strip white space in ASC files 2 weeks ago
awlsim-test 1b4f18580d core: Add support for setting CPU affinity via AWLSIM_AFFINITY 6 days ago
awlsim-win.cmd bbaa7ed08d Update windows build scripts 3 months ago
awlsimhw_pyprofibus.conf a2825f0256 hw/pyprofibus/conf: Fix py2 compatibility 1 year ago
setup.py 8a3fbb55f9 Enable profiling via environment variable AWLSIM_PROFILE 1 month ago

README.md

Awlsim - S7 compatible Soft-PLC

Awlsim is a free Step 7 compatible AWL/STL Soft-PLC written in Python.

The latest version of awlsim can be downloaded from the official awlsim site.

Awlsim - Soft-PLC

Awlsim is a free Step 7 compatible AWL/STL Soft-PLC written in Python. Depending on the host machine and the Python interpreter used, it achieves good performance of several thousand to millions of AWL/STL instructions per second. German and English S7 AWL/STL mnemonics are supported.

AWL/STL programs on PLCs are used for automation of industrial processes. However Awlsim is very flexible, so it can be used for other purposes beyond industrial applications, too. Awlsim aims to be compatible with the industry standard S7 software on the AWL/STL level.

Awlsim can emulate CPUs with two and four accumulator registers (S7-3xx and S7-4xx). Compatibility to S7 hardware is a task taken seriously by the awlsim project. We want to be as close as possible to the real PLC hardware with our AWL/STL code execution. For this reason awlsim ships an extensive selftest suite. Missing features and differences between awlsim and Step 7 are documented in the COMPATIBILITY documentation and TODO documentation files.

Quick start tutorial

See the quick start tutorial for a simple example on how to use Awlsim in simulator mode. Simulator mode does not require any special hardware to run.

Example project

If you don't know where to start, you can find an example project in the examples directory as EXAMPLE.awlpro. You can easily run this example in simulation mode without the need for special hardware.

License / Copyright

Copyright (C) Michael Büsch / et al.

Awlsim is Open Source Free Software licensed under the GNU General Public License v2+. That means it's available in full source code and you are encouraged to improve it and contribute your changes back to the community. Awlsim is free of charge, too.