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

[HELP] Is there a redundancy function? #118

Open
8188 opened this issue Sep 5, 2023 · 3 comments
Open

[HELP] Is there a redundancy function? #118

8188 opened this issue Sep 5, 2023 · 3 comments

Comments

@8188
Copy link

8188 commented Sep 5, 2023

I want to read device names. Below is my codes. But when using redundancy, it can find nothing.

adapters = pysoem.find_adapters()
adpt = [x.name for x in adapters]
master = pysoem.Master()
for net in adpt:
    master.open(net)
    if master.config_init() > 0:
        for device in master.slaves:
            print(f"{net} : {device.name}")
master.close()
@bnjmnp
Copy link
Owner

bnjmnp commented Sep 10, 2023

You are looking for the equivalent of the ec_init_redundant() function? So far I don't have it exposed by the PySOEM. Should not be too complicated to add this, let's see if I can do that soon.

@bnjmnp
Copy link
Owner

bnjmnp commented Sep 10, 2023

@8188 Do you actually know what the "redport" parameter is used for?

@8188
Copy link
Author

8188 commented Sep 11, 2023

@bnjmnp Sorry, I don't actually know that.

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