Files
gateway_plc/readme.md

17 lines
1018 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 使用教程:
运行main.py或.exe文件在postman中通过相关端口进行api指令的发送详细查看api界面
# 还需添加的功能:
1. 写bool类型尝试不读取字节只修改位。如writedb,writearea
2. 博途怎么弄虚拟PLC仿真就是使用的虚拟PLC但是除了博途之外的外部设备等无法连接该虚拟PLC
3. 通过指令来修改网关的IP通过串口来接收一个指令
# 注意事项:
1. 现在程序使用的是html单独的文件该程序生成.exe会读取不到html文件因此如果要生成.exe文件
将main中的from api_server_html import APIServer 修改为from api_server import APIServer即可。
2. 网关添加开机自启程序:
打开网关的文件系统目录中的/etc/htset/autorun文件在最后一行添加需要运行的用户程序。
如 HelloWorld 程序,假设存放目录为/home/htnice/app则在 autorun 文
件的末尾新添加一行如下指令
/home/htnice/app/HelloWorld &