-
Notifications
You must be signed in to change notification settings - Fork 181
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
How to discover devices in all Vlans? #111
Comments
There was a related discussion going on in issue #93 |
ok, thanks |
I recently added GetDeviceProperties() that will get the properties of a device a particular IP address:
It differs from GetModuleProperties() in that requesting module properties requires a slot (for getting properties of I/O modules in a chassis) and device properties will allow you to target things like PowerFlex drives or servo drives. |
Or for a list of addresses, you might have to do something like this:
|
OK, Thanks I will try it. Traceback (most recent call last): |
I'm guessing address in your code is a list. If you want help with your code, post it. |
OK It works. My fault in installation and venv settings. ================== RESTART: C:\MotorService\testpylogix.py ================== |
Okay, cool. Out of curiosity, what version of python and pylogix are you using?
|
Pytnon 3.7 |
@KaloyanR In regards to the timeout use a try catch. |
yes, 'except: pass' works, thanks. |
@KaloyanR np. Normally you'd want to handle the exception. Print to the console or log, or something else. I guess if the IP doesn't exist, there's nothing to do hence why pass might be acceptable in your case. |
Is there a way to discover devices in differents subnets?
or with a list of addresses not broadcaast msg?
The text was updated successfully, but these errors were encountered: