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.8

  • Version bump only to re-upload to PyPI with windows-wheel for Python 3.11

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-nt15-0.0.2.tar.gz (369.2 kB view details)

Uploaded Source

Built Distribution

pysoem_nt15-0.0.2-cp310-cp310-win_amd64.whl (119.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

File details

Details for the file pysoem-nt15-0.0.2.tar.gz.

File metadata

  • Download URL: pysoem-nt15-0.0.2.tar.gz
  • Upload date:
  • Size: 369.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for pysoem-nt15-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6f93fdd42a9abdeab2e579725e85e8b2951cc20eca3aa753aefdb856a1b5b7bd
MD5 df46bd03ec168690271f977bf0f6a65b
BLAKE2b-256 d4fdbdb3569ef94f4a63e407bbc2e06e3fabd430712530db44ab15e0ac0df8eb

See more details on using hashes here.

File details

Details for the file pysoem_nt15-0.0.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pysoem_nt15-0.0.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 38710cfdba53557f97a5fd2fa2c229acd6e431651dd9f44f8b8a9044e007c496
MD5 17b6ca57c32458c2b75eca4c669d074d
BLAKE2b-256 538ff048c6fcbf1e09e598b370dec0580f39c3967612a76fcff5d1fe8f81ecbe

See more details on using hashes here.

Supported by

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