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

Problem with Micrologix1100 #37

Closed
A-Badkoubeh opened this issue Jan 20, 2018 · 12 comments
Closed

Problem with Micrologix1100 #37

A-Badkoubeh opened this issue Jan 20, 2018 · 12 comments

Comments

@A-Badkoubeh
Copy link

I tried the example "test_slc_only.py", but I am getting this error "Traceback (most recent call last):
File "test_slc_only.py", line 13, in
if c.open('192.168.0.9'):
File "/usr/local/lib/python2.7/dist-packages/pycomm/cip/cip_base.py", line 843 , in open
raise CommError(e)
pycomm.cip.cip_base.CommError: Socket timeout during connection."

I wonder if you tried this example on Micrologix 1100?

@ruscito
Copy link
Owner

ruscito commented Jan 20, 2018

Can you ping that IP address? Usually you get that error when address is not reachable

@A-Badkoubeh
Copy link
Author

That is what I am getting when I ping the IP address:
"PING 192.168.0.9 (192.168.0.9) 56(84) bytes of data."

@A-Badkoubeh
Copy link
Author

A-Badkoubeh commented Jan 20, 2018 via email

@ruscito
Copy link
Owner

ruscito commented Jan 20, 2018

That's the command you sent. What's the replay? You should see something like

Reply from 98.138.252.38: bytes=32 time=34ms TTL=52

@A-Badkoubeh
Copy link
Author

Sorry part of that didn't copied!!! Yes I am getting:
PING 192.168.0.9 (192.168.0.9) 56(84) bytes of data.
64 bytes from 192.168.0.9: icmp_seq=1 ttl=128 time=5.56 ms
64 bytes from 192.168.0.9: icmp_seq=2 ttl=128 time=1.82 ms
64 bytes from 192.168.0.9: icmp_seq=3 ttl=128 time=2.40 ms
64 bytes from 192.168.0.9: icmp_seq=4 ttl=128 time=1.35 ms
64 bytes from 192.168.0.9: icmp_seq=5 ttl=128 time=2.15 ms
64 bytes from 192.168.0.9: icmp_seq=6 ttl=128 time=0.799 ms
64 bytes from 192.168.0.9: icmp_seq=7 ttl=128 time=1.28 ms
64 bytes from 192.168.0.9: icmp_seq=8 ttl=128 time=1.25 ms
64 bytes from 192.168.0.9: icmp_seq=9 ttl=128 time=1.45 ms
64 bytes from 192.168.0.9: icmp_seq=10 ttl=128 time=2.32 ms
64 bytes from 192.168.0.9: icmp_seq=11 ttl=128 time=2.37 ms

@A-Badkoubeh
Copy link
Author

I fixed the problem with the Ip. Now I'm getting this error:
"Error parsing the tag passed to read_tag(N:1/5,1)"

@ruscito
Copy link
Owner

ruscito commented Jan 20, 2018

please review the examples provided that's not the right way to make the call. You should yuse something like

read_tag('N1:5',`` 1)

@A-Badkoubeh
Copy link
Author

A-Badkoubeh commented Jan 20, 2018 via email

@ruscito
Copy link
Owner

ruscito commented Jan 20, 2018

read_tag('N1:5',1)

@A-Badkoubeh
Copy link
Author

A-Badkoubeh commented Jan 20, 2018 via email

@ruscito
Copy link
Owner

ruscito commented Jan 20, 2018

no problem bud. It should be same for the write, just check the example from the main page. I think I covered all the possible option for pycomm. I'm out for now because is beer Friday :) Please close the issue if you have not more issues

ciao

@A-Badkoubeh
Copy link
Author

Works nicely! Thank you very much Agostion, ruscito.
The example from the main page covers all the possible options for Pycomm!
Cheers!

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