This project uses the PiCAN2 board to control a Nanotec CL3-E-1-0F stepping motor controller using CANopen in Python3. You would also need the CL3.eds file to be in the same directory as the pican2_canopen_test.py file.
Nanotec Nanotec CL3-E-1-0F
Install the driver for the PiCAN2 board:
Then install python3-can and canopen
pip install python-can
pip3 install canopen
Download example Python code from GitHub:
Run the code by: