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

can not searching slaves... #96

Open
Mrkeyn opened this issue Jan 19, 2023 · 2 comments
Open

can not searching slaves... #96

Mrkeyn opened this issue Jan 19, 2023 · 2 comments

Comments

@Mrkeyn
Copy link

Mrkeyn commented Jan 19, 2023

Hello, everyone. nice to meet you
I need some help.
my pc can not searching slaves...
os : windows 10
python : 3.11
pysoem : 1.0.0.7
Slave devices : fastech - Ezi-IO EtherCAT INPUT16


import sys
import pysoem

def get_adaptername():
adapters = pysoem.find_adapters()
for i, adapter in enumerate(adapters):
if(adapter.desc == 'TwinCAT-Intel PCI Ethernet Adapter (Gigabit)'):
adpt = adapter.name
return adpt

try:
master = pysoem.Master()
log(0, '<< master open started >>')
master.open(get_adaptername())
except Exception as e:
master.close()
log(0, e)

log(0, 'searching slave start')
if master.config_init() > 0:
device_foo = master.slaves[0]
device_bar = master.slaves[1]
else:
log(0, 'no device found')

master.close()

================================================================
17:52:10,205 - root [DEBUG] : searching slave start
17:52:10,206 - root [DEBUG] : no device found

================================================================

#x0FA00000 FASTECH ~~~~ Ezi-IO EtherCAT INPUT16 Ezi-IO EtherCAT INPUT16 Ezi-IO Controller Inputs Inputs
@bnjmnp
Copy link
Owner

bnjmnp commented Jan 21, 2023

Hi. That no device was found could be an issue with access rights, not sure. I never onderstood why on Windows sometimes one needs administrator rights.

@Mrkeyn
Copy link
Author

Mrkeyn commented Feb 15, 2023

Hi. That no device was found could be an issue with access rights, not sure. I never onderstood why on Windows sometimes one needs administrator rights.

thanks. i solved on ubuntu : )

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