{"library":"pysoem","title":"pysoem","description":"Cython wrapper for the SOEM (Simple Open EtherCAT Master) library. Provides Python bindings to control EtherCAT networks. Current version 1.1.13. Release cadence: irregular, several minor releases per year.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install pysoem"],"cli":null},"imports":["from pysoem import Master","from pysoem import settings","from pysoem import EMERGENCY"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import time\nfrom pysoem import Master\n\nmaster = Master()\nmaster.open(os.environ.get('ETHERCAT_INTERFACE', 'eth0'))\nmaster.config_init()\n\n# Map PDOs (example)\nfor slave in master.slaves:\n    print(slave.name)\n\nmaster.config_map()\nmaster.state = 'OP'\nmaster.write_state()\nmaster.receive_processdata()\ntime.sleep(0.1)\n\nmaster.close()","lang":"python","description":"Basic EtherCAT master setup: open interface, configure slaves, map PDOs, set operational state.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}