Python-native implementation of LdcnLib
Project description
Python-native implementation of LdcnLib
This is a basic python-native implementation of LdcnLib. It implements some Ldcn and stepper methods. It solely relies on the package pyserial
.
Ldcn methods
The following Ldcn methods were implemented.
Method | Description |
---|---|
LdcnHardReset | Resets all devices (broadcast) |
LdcnSendCmd | Send command to device |
LdcnInit | Initialize network using default group 0xFF |
LdcnShutdown | Stop motor, delete devices (reinit necessary) |
LdcnGetDeviceId | Returns device, devid for addr |
LdcnGetDevice | Returns device for addr |
LdcnGetStat | Returns device status |
LdcnGetStatItems | Returns configured statusitems |
LdcnReadStatus | Reads local device status |
Stepper methods
The following Stepper methods were implemented.
Method | Description |
---|---|
GetSteppers | Returns addresses of discovered stepper devices |
StepStopMotor | Setup stop behaviour |
StepSetParam | Sets motor operation parameters |
StepLoadTraj | Set-up and start movement |
StepResetPos | Reset motor position to 0 |
Usage
To find out how the methods are used, either check LdcnLib documentation or example given in demo.py
.
Disclaimer
Usage at your own risk, the implementation is neither complete nor well tested.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyldcn-0.4.tar.gz
(5.9 kB
view hashes)
Built Distribution
pyldcn-0.4-py3-none-any.whl
(6.2 kB
view hashes)