Skip to content

ingeniamc/ingeniamotion

Repository files navigation

Ingeniamotion

GitHub branch status PyPi PyPI - Python Version

CC by-nc-sa

Ingeniamotion is a library that works over ingenialink and aims to simplify the interaction with Ingenia's drives.

Ingenia Servodrives

Requirements

  • Python 3.9 or higher
  • WinPcap 4.1.3

Installation

The recommended way to install is by using pip, i.e:

pip install ingeniamotion

Build Module

Install tox and run the following:

pip install "tox>4"
tox -e build

Generate documentation

To produce the documentation, run the following command:

tox -e docs

Run PyTest

Create tests/setups/tests_setup.py file with configuration file. This file is ignored by git and won't be uploaded to the repository Example of a setup:

from .descriptors import DriveEcatSetup

TESTS_SETUP = DriveEcatSetup(
    dictionary="//awe-srv-max-prd/distext/products/EVE-XCR/firmware/2.5.1/eve-xcr-e_eoe_2.5.1.xdf",
    identifier="eve-xcr-e",
    config_file="//azr-srv-ingfs1/dist/setups/setup_eve_ecat/1.2.0/config.xml",
    fw_file="//awe-srv-max-prd/distext/products/EVE-XCR/firmware/2.5.1/eve-xcr-e_2.5.1.sfu",
    ifname="\\Device\\NPF_{B24AA996-414A-4F95-95E6-2828D346209A}",
    slave=1,
    eoe_comm=True,
    boot_in_app=True,
    load_firmware_with_rack_service=False,
)

Run tests selecting the markers that you want and are appropriate for your setup. Beware that some tests may not be appropiate for the setup that you have and may fail.

tox -e py39 -- -m soem

About

Motion library for Ingenia servo drives

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages