Skip to main content

Cython wrapper for the SOEM Library

Project description

PySOEM is a Cython wrapper for the Simple Open EtherCAT Master Library (https://github.com/OpenEtherCATsociety/SOEM).

Introduction

PySOEM enables basic system testing of EtherCAT slave devices with Python.

Features

  • input process data read and output process data write

  • SDO read and write

  • EEPROM read and write

  • FoE read and write

Todo

  • EoE

Beware that real-time applications need some special considerations.

Requirements

Linux

  • Python 3

  • GCC (installed on your machine)

  • Python scripts that use PySOEM must be executed under administrator privileges

Windows

Installation

python -m pip install pysoem

or

pip install pysoem

Consider using a virtualenv.

Usage

Although there are some pieces missing, the documentation is hosted on “Read the Docs” at: pysoem.readthedocs.io.

Please also have a look at the examples on GitHub.

Contribution

Any contributions are welcome and highly appreciated. Let’s discuss any (major) API change, or large piles of new code first. Using this pysoem chat room on gitter is one communication channel option.

Changes

v1.0.7

  • Fix issues with timeouts at amend_mbx and set_watchdog.

v1.0.6

  • Introduces amend_mbx and set_watchdog, though this is rather experimental

  • New example firmware_update.py.

v1.0.5

  • Introduces the manual_state_change property

v1.0.4

  • Proper logging

  • Introduces mbx_receive

v1.0.3

  • Fix the FoE password issue

v1.0.2

  • Licence change to MIT licence

  • Introduces configurable timeouts for SDO read and SDO write

  • Improved API docs

v1.0.1

  • API change: remove the size parameter for foe_write

  • Introduces overlap map support

v1.0.0

  • No Cython required to install the package from the source distribution

v0.1.1

  • Introduces FoE

v0.1.0

  • Update of the underlying SOEM

v0.0.18

  • Fixes bug when Ibytes = 0 and Ibits > 0

v0.0.17

  • Exposes ec_DCtime (dc_time) for DC synchronization

v0.0.16

  • Improvement on SDO Aborts

v0.0.15

  • SDO info read

v0.0.14

  • Readme update only

v0.0.13

  • Initial publication

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

pysoem-1.0.7.tar.gz (358.6 kB view details)

Uploaded Source

Built Distributions

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

pysoem-1.0.7-cp310-cp310-win_amd64.whl (118.1 kB view details)

Uploaded CPython 3.10Windows x86-64

pysoem-1.0.7-cp39-cp39-win_amd64.whl (121.9 kB view details)

Uploaded CPython 3.9Windows x86-64

pysoem-1.0.7-cp38-cp38-win_amd64.whl (137.2 kB view details)

Uploaded CPython 3.8Windows x86-64

pysoem-1.0.7-cp37-cp37m-win_amd64.whl (133.3 kB view details)

Uploaded CPython 3.7mWindows x86-64

pysoem-1.0.7-cp36-cp36m-win_amd64.whl (133.3 kB view details)

Uploaded CPython 3.6mWindows x86-64

File details

Details for the file pysoem-1.0.7.tar.gz.

File metadata

  • Download URL: pysoem-1.0.7.tar.gz
  • Upload date:
  • Size: 358.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for pysoem-1.0.7.tar.gz
Algorithm Hash digest
SHA256 691cd9546cf762faa121b479aea7851a16c086063b397a211a347d291046bca3
MD5 36db854d4cc3242a8f9506d6c2d193f9
BLAKE2b-256 fb279068635af05144026c2af4f7027dc8d014b750436d00b3968a4df67913f3

See more details on using hashes here.

File details

Details for the file pysoem-1.0.7-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pysoem-1.0.7-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 118.1 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for pysoem-1.0.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d1a1fe4b2e5d83e6fe48c3c794ad608234bded1a7e244da90d9afcb731480a90
MD5 5aed238620e6ac043151a3039759beb1
BLAKE2b-256 549c9a0c90e4a806a9cfe1334aed029241c8ca57530700658d0da926e63f4a3b

See more details on using hashes here.

File details

Details for the file pysoem-1.0.7-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pysoem-1.0.7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 121.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for pysoem-1.0.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a85f7c9deb338f521d1481a91514cacf1dbe1e1dc37f0c6557dbc0cc62f01865
MD5 08a86619fd1e546f75ed438ca680fd7f
BLAKE2b-256 019f8e407516418278b68b1cda9e304171949d7056ca2796ce39a7ff601c612e

See more details on using hashes here.

File details

Details for the file pysoem-1.0.7-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pysoem-1.0.7-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 137.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for pysoem-1.0.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9576e2bf663bfcd5b1252166201b87c72b6db27207244b49eb1636dbaa2aa53e
MD5 bd6aa2954db5df2495239b7e5d80fc66
BLAKE2b-256 5d4683a181d6bb4ef3cef074db246d32db52a6777e5b948ee462d7c34e68c847

See more details on using hashes here.

File details

Details for the file pysoem-1.0.7-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pysoem-1.0.7-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 133.3 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for pysoem-1.0.7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 c9a8e690ab6cd390663fafc2bc61ae8d29f3a24b96aed32ccb40fa7aa5c7bd30
MD5 d5b81e3c9bda87d5d0d1d59314200190
BLAKE2b-256 a7affbaa273fd1e5a58ba7a38f0158a7954a829dfac46cfbdbf3272a22e42ac7

See more details on using hashes here.

File details

Details for the file pysoem-1.0.7-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pysoem-1.0.7-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 133.3 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for pysoem-1.0.7-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 eb91a02fb64a42193220f537da44b08da6a8dfd9122e1abf3be7527d94ca77ca
MD5 9da47df1aa9f0d09bf6418a6b3db3433
BLAKE2b-256 f1edaeda14a05ac1427a23f14a298b498760e8c2484d31f0fc1e66a6d4f42cef

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