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

read and write PDOS question #136

Open
GoesWithoutSaying opened this issue Apr 19, 2024 · 1 comment
Open

read and write PDOS question #136

GoesWithoutSaying opened this issue Apr 19, 2024 · 1 comment

Comments

@GoesWithoutSaying
Copy link

i have read the basic.py and minimal.py. based on my coding level, i'm still confusing, hers is some question hope someone can help
1.for master.config_map() , slave.input and slave.output are the pdo data that mapped?
2.for master.send_processdata() and master.receive_processdata(), is slave.input and slave.output are the data that sending and receiving?
3. to write a PDO mapping, is it correct that using SDO?

@GoesWithoutSaying
Copy link
Author

GoesWithoutSaying commented May 9, 2024

problem solved.
slave.input represent input data from slave
slave.output represent output data to slave
to send processdata,
slave.output = bytes([data1, data2])
master.send_processdata()
to read received process data
master.receive_processdata()
input_from_slave = slave.input
print(input_from_slave)

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

1 participant