| Name | aphyt JSON |
| Version |
0.1.22
JSON |
| download |
| home_page | https://github.com/aphyt/aphytcomm |
| Summary | A library to communicate with Omron NX and NJ PLC and motion controllers |
| upload_time | 2024-07-09 01:53:01 |
| maintainer | None |
| docs_url | None |
| author | Joseph Ryan |
| requires_python | >=3.7 |
| license | None |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# aphyt
This is a library for communicating with Omron NX and NJ industrial PLC and motion controllers using Ethernet/IP.
## Communicating with Omron Sysmac Controllers Using Ethernet/IP
This software implements the core functionality of reading and writing numeric, Boolean, string, structure and array variables to an Omron NX or NJ controller using symbolic names. The read_variable and write_variable methods allow the programmer to use Python based data types to write to variables, as well as properly format the data received when reading variables. The example code below demonstrates how to establish the explicit Ethernet/IP connection and then read and write variables to a test project in the NJ or NX controller.
## Example Use
### Installation
This package is on PyPI so the user can install using:
pip install aphyt
### Getting Started
In order to connect to an Omron N-Series controller for data exchange using Ethernet/IP, the programmer should import omron from the aphyt module and instantiate an instance from the NSeries or NSeriesThreadDispatcher object using a context manager or by assignment. If the program supplies the host to the object, it is not necessary to explicitly connect to the IP address of the controller, and register a session. If the object is created without a host, the connection and session registration must be done explicitly.
```python
import time
from aphyt import omron
if __name__ == '__main__':
with omron.NSeries('192.168.250.9') as eip_conn:
for i in range(10):
print(eip_conn.read_variable('TestInt'))
eip_conn.write_variable('TestInt', 24)
print(eip_conn.read_variable('TestInt'))
eip_conn.write_variable('TestInt', 7)
time.sleep(.5)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/aphyt/aphytcomm",
"name": "aphyt",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Joseph Ryan",
"author_email": "jr@aphyt.com",
"download_url": "https://files.pythonhosted.org/packages/53/b0/6088e6d7d01de52728133030a2863bbd30f43ddd895af3d8b705ee824075/aphyt-0.1.22.tar.gz",
"platform": null,
"description": "# aphyt\nThis is a library for communicating with Omron NX and NJ industrial PLC and motion controllers using Ethernet/IP.\n\n## Communicating with Omron Sysmac Controllers Using Ethernet/IP\n\nThis software implements the core functionality of reading and writing numeric, Boolean, string, structure and array variables to an Omron NX or NJ controller using symbolic names. The read_variable and write_variable methods allow the programmer to use Python based data types to write to variables, as well as properly format the data received when reading variables. The example code below demonstrates how to establish the explicit Ethernet/IP connection and then read and write variables to a test project in the NJ or NX controller.\n\n## Example Use\n\n### Installation\n\nThis package is on PyPI so the user can install using:\n\n pip install aphyt\n\n### Getting Started\n\nIn order to connect to an Omron N-Series controller for data exchange using Ethernet/IP, the programmer should import omron from the aphyt module and instantiate an instance from the NSeries or NSeriesThreadDispatcher object using a context manager or by assignment. If the program supplies the host to the object, it is not necessary to explicitly connect to the IP address of the controller, and register a session. If the object is created without a host, the connection and session registration must be done explicitly.\n\n```python\nimport time\nfrom aphyt import omron\n\n\nif __name__ == '__main__':\n with omron.NSeries('192.168.250.9') as eip_conn:\n for i in range(10):\n print(eip_conn.read_variable('TestInt'))\n eip_conn.write_variable('TestInt', 24)\n print(eip_conn.read_variable('TestInt'))\n eip_conn.write_variable('TestInt', 7)\n time.sleep(.5)\n\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "A library to communicate with Omron NX and NJ PLC and motion controllers",
"version": "0.1.22",
"project_urls": {
"Homepage": "https://github.com/aphyt/aphytcomm"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7e4e9594e932beec075782e13c6af0df35e1904c09f16557adad90d3a575b2b2",
"md5": "4f8f305274c8e25c98ca2861f93d4eb1",
"sha256": "059c00dcdad3b0a1dc784f19ab9bff59b8f0dabbac351ab15db78164ea665d1c"
},
"downloads": -1,
"filename": "aphyt-0.1.22-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4f8f305274c8e25c98ca2861f93d4eb1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 46971,
"upload_time": "2024-07-09T01:52:53",
"upload_time_iso_8601": "2024-07-09T01:52:53.944240Z",
"url": "https://files.pythonhosted.org/packages/7e/4e/9594e932beec075782e13c6af0df35e1904c09f16557adad90d3a575b2b2/aphyt-0.1.22-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "53b06088e6d7d01de52728133030a2863bbd30f43ddd895af3d8b705ee824075",
"md5": "9cc841558862abe800016f887d0ec3ed",
"sha256": "10e2ce0e42b910d3155c9aebc09c19b0d6a28797723e5dbc76e085b5550fbc4a"
},
"downloads": -1,
"filename": "aphyt-0.1.22.tar.gz",
"has_sig": false,
"md5_digest": "9cc841558862abe800016f887d0ec3ed",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 41663,
"upload_time": "2024-07-09T01:53:01",
"upload_time_iso_8601": "2024-07-09T01:53:01.825118Z",
"url": "https://files.pythonhosted.org/packages/53/b0/6088e6d7d01de52728133030a2863bbd30f43ddd895af3d8b705ee824075/aphyt-0.1.22.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-09 01:53:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "aphyt",
"github_project": "aphytcomm",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "aphyt"
}