This python package is used to handle ELT standard devices directly from python objects and through OPC-UA.
The package is intended to be used when a full instrument ELT software is not available but scripting needs to be done on devices and using the Low Level ELT software (Running on Beckhoff PLC). A good exemple of the use case is making sequences of initialisation and movement of motors for AIT purposes without the need to buil a high level ELT software.
The documentation (for version >=0.3) is here
Sources are here
Install
> pip install pydevmgr_elt
From sources :
> git clone https://github.com/efisoft-elt/pydevmgr_elt
> cd pydevmgr_elt
> python setup.py install
Basic Usage
(since v0.5)
from pydevmgr_elt import Motor, wait
with Motor('motor1', address="opc.tcp://192.168.1.11:4840", prefix="MAIN.Motor1") as m1:
wait(m1.move_abs(7.0,1.0), lag=0.1)
print( "position is", m1.stat.pos_actual.get() )
Can also be done in the old way:
from pydevmgr_elt import Motor, wait
m1 = Motor('motor1', address="opc.tcp://192.168.1.11:4840", prefix="MAIN.Motor1")
try:
m1.connect()
wait(m1.move_abs(7.0,1.0), lag=0.1)
print( "position is", m1.stat.pos_actual.get() )
finally:
m1.disconnect()
from pydevmgr_elt import Motor, DataLink
m1 = Motor('motor1', address="opc.tcp://152.77.134.95:4840", prefix="MAIN.Motor1")
m1_data = Motor.Data() # m1_data is a structure built with default value
m1_dl = DataLink(m1, m1_data) # create a data link use to fill m1_data to real hw values
with m1: # with conexte manager open/close a connection
m1_dl.download()
print( m1_data.stat.pos_actual, m1_data.stat.pos_error )
Open from an elt yaml configuration file as defined in ELT IFW v3
from pydevmgr_elt import open_elt_device
motor1 = open_elt_device( "tins/motor1.yml" )
Release files for pydevmgr-elt 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pydevmgr_elt-0.6.0.tar.gz | 78.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydevmgr_elt-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 213.7 kB
Release files / pydevmgr_elt-0.6.0.tar.gz
| Download URL | pydevmgr_elt-0.6.0.tar.gz |
|---|---|
| Size | 78.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
146387b488458d5725cfef05b193d31a8d7affa8446f70864c4cbfa6ad8175a6
|
|
BLAKE2b-256 checksum How to use checksums |
3a7fe0085525ecc0bdbad82f9d28ce774012dae7b6be8e77ab126a7e37c9e47d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.5
|
Release files / pydevmgr_elt-0.6.0-py3-none-any.whl
| Download URL | pydevmgr_elt-0.6.0-py3-none-any.whl |
|---|---|
| Size | 135.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d9774ba641f5f79d270d1f1b0e0e1729a786eed3363cd32ec152b74732b971b
|
|
BLAKE2b-256 checksum How to use checksums |
c39e007edd2dede5dfacd3e104d3a430ca1af9c42b93685ab1f027d285b5c06b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.5
|