No project description provided
Project description
libximc
This is a python binding for libximc - cross-platform library for Standa 8SMC5-USB motor controllers.
Libximc manages hardware using interfaces: USB 2.0, RS232 and Ethernet, also uses a common and proven virtual serial port interface, so you can work with motor control modules through this library under Windows and Linux. MacOS X isn't supported yet.
This library also supports virtual devices. So you can make some tests without real hardware.
Installation
pip install libximc
Minimal example
import time
import libximc.highlevel as ximc
# Virtual device will be used by default.
# In case you have real hardware set correct device URI here
device_uri = r"xi-emu:///ABS_PATH/virtual_controller.bin" # Virtual device
# device_uri = r"xi-com:\\.\COM111" # Serial port
# device_uri = "xi-tcp://172.16.130.155:1820" # Raw TCP connection
# device_uri = "xi-net://192.168.1.120/abcd" # XiNet connection
axis = ximc.Axis(device_uri)
axis.open_device()
print("Launch movement...")
axis.command_right()
time.sleep(3)
print("Stop movement")
axis.command_stop()
print("Disconnect device")
axis.close_device() # It's also called automatically by garbage collector, so explicit closing is optional
print("Done")
More information
-
Libximc library documentation: https://libximc.xisupport.com/doc-en/index.html
-
Standa 8SMC5 motor controller user manual: https://doc.xisupport.com/en/8smc5-usb/
-
Standa website: https://www.standa.lt/
If you have faced any issues while using the library and you have no idea how to solve them contact technical support via:
- Website: en.xisupport.com
- E-mail: 8smc4@standa.lt
- Telegram: @SMC5TechSupport
- WhatsApp: +1 (530) 584 4117
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
Built Distribution
Hashes for libximc-2.14.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa8afb2ca47c931967e805a82d55f05cc61dc41ebad431a83a7b20c59e0a492d |
|
MD5 | f9fb0e97df6215124215c463ecbb6e84 |
|
BLAKE2b-256 | a1b3412f0c452af874ff7d1c73b7fba1522caab598192cb33bdb3c64d2066126 |