bnjmnp / pysoem

Cython wrapper for the Simple Open EtherCAT Master Library
MIT License
97 stars 38 forks source link

[HELP] Is there a redundancy function? #118

Open 8188 opened 1 year ago

8188 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

8188 commented 1 year ago

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