This library is used for communication between Hawk script and hz team's GUI PLC driver
Project description
My myHawkScriptLib Library
This is a sample Python library that demonstrates how to create and publish your own library to PyPI.
Installation
pip install myHawkScriptLib
Usage
from hawkScriptLib import myHawkGUI_PLC_API
with myHawkGUI_PLC_API() as client:
if client.client_socket:
#读取PLC 地址 250 和 251 上的值
print(client.read_value(250,2)) # 100,101 (成功:假如250 251 寄存器值里面的值分别是 100,101);err (失败)
#写入PLC 地址 250 和 251 分别为200,201
print(client.write_value(250, [200,201])) # 200,201 (成功); err (失败)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hawkscriptlib-0.1.2.tar.gz.
File metadata
- Download URL: hawkscriptlib-0.1.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab22f93ed468faed2c8b098d9594dd8e49a1f148a9d698b724a404bcb3e95e94
|
|
| MD5 |
1001752f3a46823dbdc6377288280882
|
|
| BLAKE2b-256 |
58e6db070146a83e380976d4590b315f14149c5dfb49b24268c09581a70086ca
|
File details
Details for the file hawkscriptlib-0.1.2-py3-none-any.whl.
File metadata
- Download URL: hawkscriptlib-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce5aff654e3b0cdcb453728414d0a16808d596039ba1e080babb0492b252c586
|
|
| MD5 |
8fc47f31efa8c13238ee0399b2b67498
|
|
| BLAKE2b-256 |
84e6bec71a29ac8b98aa9355a68163ce118b7df782f369e35fd05860f9a71755
|