MIT License

项目介绍

fbarresi/SoftPlc 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,采用 MIT License 许可证,目前获得 154 个 Star、37 次 Fork。

仓库全名
fbarresi/SoftPlc
开源许可证
MIT License
Star 数
154
Fork 数
37
未关闭 Issue
2

README 摘要

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 Build and Start the software (don't forget to copy the native library you need) 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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

SoftPlc 用什么语言开发?

主要使用 C# 编写,采用 MIT License 许可证,目前有 154 个 Star。

SoftPlc 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 SoftPlc 的源码?

可以直接克隆仓库:git clone https://github.com/fbarresi/SoftPlc.git,默认分支为 master;安装与运行步骤见仓库 README。

SoftPlc 最近还在维护吗?

仓库最近一次更新为 2025年6月3日,当前有 2 个未关闭 Issue;Star 数为 154,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Software plc with docker support

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
234
价值分
103
活跃状态
活跃

语言占比

C#
Dockerfile
PowerShell

Release

README

SoftPlc Docker Image CI 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

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\x64\Debug\net6.0\snap7.dll
dotnet bin\Debug\net8.0\SoftPlc.dll --plcPort=102 --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 run -p 8080:8080 -p 8443:443 -p 102:102 --name softplc fbarresi/softplc:latest-linux

Now you have:

  • a Simulated PLC listening at port 102 (see ISO-over-TCP protocol)

    • by default, it starts without any data. If you need some preset data you can add -e DATA_PATH=/demodata to start with a single 2048 byte DataBlock. The data content is described here.
  • an API listening at http://localhost:8080/ (with Swagger included under http://localhost:8080/ ) in which you can add, read, modify and delete as many datablocks as you want

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

评论

暂无评论