Skip to content
forked from fbarresi/SoftPlc

Software plc with docker support

License

Notifications You must be signed in to change notification settings

evopro-ag/SoftPlc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoftPlc Build Status Build status Docker Pulls

Software PLC controlled over Web API

How often did you need a PLC for testing, but you had none?

This project aim to end you pain with test against PLC!

How does it works

Use it from source code or binary

Build and Start the software (don't forget to copy the native library you need)

cd SoftPlc
dotnet restore
dotnet build
cp native\win\snap7.dll bin\Debug\netcoreapp2.0\snap7.dll
dotnet bin\Debug\netcoreapp2.0\SoftPlc.dll --plcPort=103 --urls="http://localhost:8080/"

Otherwise you can download and start the latest release (i.e. with Powershell).

Expand-Archive softplc1.0.41-amd64.zip.zip -DestinationPath c:/temp/softplc
cd c:/temp/softplc/
dotnet SoftPlc.dll --plcPort=103 --urls="http://localhost:8080/"

Use it with docker

Pull the actual docker image for your platform see available tags and run it with the correct port binding. (Brand new MOBY support is included! Just select latest-win1809 tag.)

docker pull fbarresi/softplc:latest-linux
docker run -p 8080:80 -p 102:102 --name softplc fbarresi/softplc:latest-linux

Now you have:

SoftPlc API

Do you also need a PLC Client in your application?

Check my other repository Sharp7 or Sharp7Reactive

Contribute

Whould you like to contribute? YES, Please! Just fork/star/watch this repo and submit a pull request!

Credits

This software uses Snap7 as PLC server implementation. For info please visit the official page: http://snap7.sourceforge.net

About

Software plc with docker support

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.1%
  • Other 0.9%