Skip to main content

pydevmgr pluggin for Elt devices

Project description

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" )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydevmgr_elt-0.6a1.tar.gz (57.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydevmgr_elt-0.6a1-py3-none-any.whl (94.6 kB view details)

Uploaded Python 3

File details

Details for the file pydevmgr_elt-0.6a1.tar.gz.

File metadata

  • Download URL: pydevmgr_elt-0.6a1.tar.gz
  • Upload date:
  • Size: 57.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.7.1 Darwin/21.6.0

File hashes

Hashes for pydevmgr_elt-0.6a1.tar.gz
Algorithm Hash digest
SHA256 2ec868171d5363f3e86a07d41a3d78ad19630be9816ae471e862b3c6795a5884
MD5 926f383e23326fa80e4eab55ed06b720
BLAKE2b-256 3b30c54c1158be183e2225f4aa983c42c44bcfb2f7cef8cdce959ef143b67194

See more details on using hashes here.

File details

Details for the file pydevmgr_elt-0.6a1-py3-none-any.whl.

File metadata

  • Download URL: pydevmgr_elt-0.6a1-py3-none-any.whl
  • Upload date:
  • Size: 94.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.7.1 Darwin/21.6.0

File hashes

Hashes for pydevmgr_elt-0.6a1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c2a217949694e99c2bbd68426d7a60c56e6d62a2b75e75fa01041b74331f844
MD5 ea2c5c7c3f5bb11ffa06cdc69b2ada66
BLAKE2b-256 dcbfc680da0de2268c4f77709d6a7f581c9fa4e1478e5f5f80242f18f9b257ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page