Skip to content
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 to understand tpdo #373

Open
superlogan72 opened this issue Apr 20, 2023 · 1 comment
Open

Problem to understand tpdo #373

superlogan72 opened this issue Apr 20, 2023 · 1 comment

Comments

@superlogan72
Copy link

Sorry if i ask again:
network = canopen.Network()
network.connect(bustype="socketcan", channel='can0',bitrate=1000000)
network.check()
node = BaseNode402(1, '/home/pi/Desktop/file.eds')
network.add_node(node)
network.sync.start(0.02)
sleep(1)
node.nmt.state = 'RESET'
node.nmt.wait_for_bootup(15)
node.load_configuration()
___Till here is all ok--
than as i undrstand i have to load the tpdo so i write at first:
node.tpdo[1].clear()
node.tpdo[1].add_variable(0x6041)
node.tpdo[1].trans_type = 1
node.tpdo[1].enabled = True
node.tpdo.save()
on the save i get this error:
Value 2147484033 is greater than max value 2047 That i don't understand

if i never load the tpdo i get
The object 0x6041 is not a configured TPDO, fallback to SDO
what i'm doing wrong
Thanks

@acolomb
Copy link
Collaborator

acolomb commented May 2, 2023

Can you show the backtrace of the error? What exactly is it trying to write via SDO when it fails?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants