Skip to main content

用于 PLCnext 的 RSC 客户端

项目描述

PyPLCnextRsc

执照 网络 社区

PyPLCnextRsc是一个简单但优雅的 RSC 客户端库。

PyPLCnextRsc 允许您非常轻松地使用 RSC 服务:

from PyPlcnextRsc import *
from PyPlcnextRsc.Arp.Plc.Domain.Services import IPlcManagerService, PlcStartKind

if __name__ == "__main__":
    with Device('192.168.1.10', secureInfoSupplier=GUISupplierExample) as device:
        plc_manager_service = IPlcManagerService(device)  # Get PlcManagerService
        plc_manager_service.Stop()
        plc_manager_service.Start(PlcStartKind.Cold)

资源

  • 文档全面的文档、教程和示例。

推荐使用 Python 3.9 构建文档

环境

该模块可以远程使用(PC、服务器、Raspberry Pi ...)或本地(在 PLCnext 设备上)

要求:Python>=3.7.6


安装 PyPLCnextRsc

$ pip install -U PyPlcnextRsc

请注意,当前 Pypi 仅用于测试目的,开发人员或用户应始终在https://gitlab.phoenixcontact.com/SongYantao/pyplcnextrsc获取最新版本

如何生成最新的文档?

$ pip install sphinx>=4.0.2
$ pip install sphinx_rtd_theme==0.5.1
$ cd docs
$ make html  

(for zh_CN version : python -m sphinx -T -E -b html -d build_zh_CN/doctrees -D language=zh_CH ./source build_zh_CN/html )

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

PyPlcnextRsc-0.1.13.tar.gz (92.8 kB 查看哈希

已上传 source

内置分布

PyPlcnextRsc-0.1.13-py3-none-any.whl (114.3 kB 查看哈希

已上传 py3