-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem in profile positioning #372
Comments
This comment was marked as outdated.
This comment was marked as outdated.
That is a lot of info to parse, please cut it down to what you see that's going wrong. Some general thoughts: Are you setting the device to OPERATIONAL state after configuring PDOs? Have you started the PDO transmission? You seem to be using only a very small part of the DS402 profile API. There are properties implemented on the node class to switch e.g. the operation mode and the DS402 power state machine. You should probably look at the relevant docs again or the p402.py file to understand the intended usage. Fiddling around with object index numbers in hex shouldn't be necessary at all, that's what this library tries to abstract away. |
Hello again, sorry but i'm old (74 y.o.) |
Have you tried observing the CAN traffic? What do the PDOs actually contain? Does the device accept the PDO configuration and is it really responding to the SYNC objects? The error messages are normal if you comment out the PDO mapping. Oh and please format your posts properly, there are various ways to mark text as code so it renders correctly on GitHub. Otherwise your comments in between get lost easily and the code cannot be copied in working state. |
DEBUG:can.interfaces.socketcan.socketcan:Reading properties of (cyclic) transmission task id=1 |
Hello this is my short script, but actually the servo never move, he goes in run ( i can't turn in but it never move), did you have some ideas?
import canopen
import sys
import os
import traceback
import time
import logging
logging.basicConfig(level=logging.DEBUG)
try:
except:
pass
finally:
print('going to exit... stopping...')
if network:
Here is the debug:
The text was updated successfully, but these errors were encountered: