pysoem icon indicating copy to clipboard operation
pysoem copied to clipboard

[HELP] Is there a redundancy function?

Open 8188 opened this issue 1 year ago • 3 comments

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()

8188 avatar Sep 05 '23 09:09 8188

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 avatar Sep 10 '23 18:09 bnjmnp

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

bnjmnp avatar Sep 10 '23 19:09 bnjmnp

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

8188 avatar Sep 11 '23 00:09 8188