diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..3fbaf4e --- /dev/null +++ b/readme.md @@ -0,0 +1,13 @@ +# 使用教程: +运行main.py或.exe文件,在postman中通过相关端口,进行api指令的发送(详细查看api界面) + +# 还需添加的功能: +1. 写bool类型,尝试不读取字节,只修改位。如writedb,writearea +2. 多线程轮询,多个PLC的数据同步 +3. 博途怎么弄虚拟PLC,仿真就是使用的虚拟PLC,但是除了博途之外的外部设备等无法连接该虚拟PLC +4. 现在只完成了读写,批量读写int和bool类型的功能,完善其他类型的功能 +5. 通过指令来修改网关的IP,通过串口来接收一个指令 + +# 注意事项: +1.现在程序使用的是html单独的文件,该程序生成.exe会读取不到html文件,因此如果要生成.exe文件, +将main中的from api_server_html import APIServer 修改为from api_server import APIServer即可。 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..aa335bb --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +snap7>=1.3.0 +Flask>=2.0.0 +werkzeung==2.0.3 +jsonchema