Skip to main content

EC-Master-Python

The wrapper provides a Python interface to use the acontis EtherCAT Master stack (EC-Master), acontis EtherCAT Simulator (EC-Simulator) and RAS Client/Server.

Introduction

Similar to the other demos the EcMasterDemoPython shows how to call the EtherCAT Master API. There is also a Python demo for the EC-Simulator. The python demos can also run in interactive mode e.g. to set an output of the EtherCAT network or something else. This is very useful to quickly test different behaviors of the EtherCAT network e.g. with the EC-Simulator.

For more information please refer the user manual: https://public.acontis.com/manuals/EC-Master/3.1/html/ec-master-python/index.html

The binaries are not included into the package.

Please contact our support to request an EVAL version: https://www.acontis.com/

Operating systems and tools

  • Supported Operating Systems: Windows (Python 3.7), Linux (Python 3.7)
  • Supported IDE: Python IDLE Shell, Microsoft Visual Studio 2019, Microsoft Visual Studio Code

Example

After installation, the demo can be used e.g. by creating a new file "demo.py" and insert the following code:

::

from EcMasterPython import *
demo = EcMasterDemoPython()
demo.pAppParms.tRunMode = RunMode.Master
demo.pAppParms.dwBusCycleTimeUsec = 4000
demo.pAppParms.szENIFilename = "ENI.xml"
demo.pAppParms.szLinkLayer = "winpcap 127.0.0.1 1"
demo.pAppParms.nVerbose = 3
demo.startDemo()
print("EcMasterDemoPython is running.")
print("Type demo.help() for interactive help.")
#demo.processImage.variables.Slave_1005__EL2008_.Channel_1.Output.set(1)
#demo.processImage.variables.Slave_1005__EL2008_.Channel_1.Output.get()
#demo.processImage.variables.Slave_1005__EL2008_.Channel_1.Output.dmp()
#demo.stopDemo()

Release files for EcMasterPython 3.1.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for EcMasterPython 3.1.4.4
File Size Uploaded
EcMasterPython-3.1.4.4.tar.gz 109.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for EcMasterPython 3.1.4.4
File Interpreter ABI Platform
EcMasterPython-3.1.4.4-py3-none-any.whl Python 3 none any Details

Total release size: 221.7 kB

Release files / EcMasterPython-3.1.4.4.tar.gz

Download URL EcMasterPython-3.1.4.4.tar.gz
Size 109.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3670a6f432cd89df86876139bdfd0a4725cd14316ec067ed321c083994a11fd1
BLAKE2b-256 checksum
How to use checksums
5c9e971ae0687fef89b58e9744d95c6544c50b0bee147000c06c58e3d8362cc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.8

Release files / EcMasterPython-3.1.4.4-py3-none-any.whl

Download URL EcMasterPython-3.1.4.4-py3-none-any.whl
Size 112.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3414aa8a87829ebdd6d3411e0d406ba9fd064d9298686163e512e81bf0ddc58e
BLAKE2b-256 checksum
How to use checksums
3fde146d9454673b142b1762e98421573ee2777c048d26c49a1ba14f561b4efe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.8

Release history Release notifications | RSS feed

This release

3.1.4.4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page