chwiede / pyads

Beckhoff ADS implementation for python
MIT License
49 stars 14 forks source link

"Router interface is not available on Win32 systems." but im using 64bit #24

Open GoncaloDias98 opened 2 years ago

GoncaloDias98 commented 2 years ago

Hello, i get this error:

"RuntimeError: Router interface is not available on Win32 systems.
Configure AMS routes using the TwinCAT router service."

even though i'm on a 64bit windows system.

Does anyone know how to fix this?

Thank you

mflova commented 4 months ago

Same here still. Did you manage to find out something else?

mflova commented 3 months ago

For those who are struggling with this issue in Windows: The example in the docs is only compatible with Linux. If you want to run it in Windows, remove this section of the example:

# add a new route to the target plc
pyads.add_route_to_plc(
    CLIENT_NETID, CLIENT_IP, TARGET_IP, TARGET_USERNAME, TARGET_PASSWORD,
    route_name=ROUTE_NAME
)