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

sdo_read_timeout #117

Open
6022 opened this issue Sep 3, 2023 · 1 comment
Open

sdo_read_timeout #117

6022 opened this issue Sep 3, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@6022
Copy link

6022 commented Sep 3, 2023

How to use sdo_read_timeout

@bnjmnp
Copy link
Owner

bnjmnp commented Sep 10, 2023

After config_init() was called sdo_read_timeout can be used to change the SDO read timeout for SDO read request to all device. It is given in microseconds (µs).

Adding a timeout into the basic_example.py one would have something like this:

    def run(self):
        self._master.open(self._ifname)

        # Increase SDO read timeout to 5 seconds
        self._master.sdo_read_timeout = 5_000_000

        if not self._master.config_init() > 0:
            self._master.close()
            raise BasicExampleError("no slave found")

@bnjmnp bnjmnp added the help wanted Extra attention is needed label Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants