No project description provided
Project description
pydevmgr package dedicated for generic client communication with OPC-UA.
The documentation is in progress.
One may be interested to higher level package such as
Python package to by used as substitute of a real device manager running in a ELT-Software environment when the full ELT-Software environment cannot be used.
Sources are here
Install
> pip install pydevmgr_ua
Basic Usage
from pydevmgr_ua import UaRpc, UaNode, UaCom
from pydevmgr_core.nodes import InsideInterval
import time
com = UaCom(address="opc.tcp://192.168.1.11:4840", prefix="MAIN")
target = 7.0
move = UaRpc( com=com, suffix="Motor1.RPC_MoveAbs", arg_parsers=[float, float])
pos = UaNode( com=com, suffix="Motor1.stat.lrPosActual" )
test = InsideInterval( node = pos, min=target-0.1, max=target+0.1 )
try:
com.connect()
move.call( 7.0, 1 )
while not test.get():
time.sleep(0.1)
print( "posisiotn is", pos.get() )
finally:
com.disconnect()
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
pydevmgr_ua-0.5.2.tar.gz
(11.9 kB
view details)
File details
Details for the file pydevmgr_ua-0.5.2.tar.gz
.
File metadata
- Download URL: pydevmgr_ua-0.5.2.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4969e796feacc6628a6bbdc76dac71a27f3fead87fdb59b2e6f21c170fbad58b |
|
MD5 | f1ebc8761105a693130c4d41d1fb1553 |
|
BLAKE2b-256 | fd6f6e78f5606aca985129d9f55de8f9108013419f1b5f02957a33784bca3957 |