Comments (17)
See this:
#221
from pylogix.
@dmroeder : Steps mentioned on issue#221 resolved it. Thanks..!!
from pylogix.
This will not work with Emulate since Emulate does not support Ethernet I/P communications. However SoftLogix does if you have access to it.
When you say that you are unable to discover devices, are you basing that on trying to discover Emulate? As I mentioned, it does not support Ethernet I/P. I have no problems discovering devices.
EDIT: Pylogix does work with emulate if you set ConnectionSize = 504
from pylogix.
I was indeed trying to discover Emulate.
Thank you very much for your careful explanation. I will try SoftLogix.
from pylogix.
Sure no problem. Keep in mind, with SoftLogix, you will have to specify the processor slot since RSLinx goes in slot 0 (for some dumb reason).
from pylogix.
Were you able to get it working with SoftLogix? I am able to discover the SoftLogix Ethernet module but returns 0.0.0.0 for the IP even though is set for 192.168.0.27
Anything special I should be looking for? I have slot 2 for the cpu.
from pylogix.
I would expect that you would use the IP address 192.168.0.27, then set .ProcessorSlot = 2 and it should work. We don't have a license for SoftLogix anymore so I cannot install and test this.
If it does not work and you can capture some wireshark packets of it, you can email them directly to me. I'd also like to see the packets when you discover and get the IP address 0.0.0.0. I suspect this is a problem with SoftLogix, but it would be nice to confirm.
from pylogix.
Strange, it works now. Don't know what exactly fixed it. I read on SoftLogix manual about disabling UDP packets in Rslinx, so I did that. Reboot and ran discover function, and it found SoftLogix this time with the correct IP. I ran getTagList and also pulled all tags. I went back and enable UDP again, reboot and tested again with no issues. Looks like I am good to go. Yeah definitely something got hung, either a service or a process.
from pylogix.
Classic Rockwell. Thanks for the update.
from pylogix.
While I know this is old, and not likely to reach anyone, I cannot let misinformation go. I found out recently that you can use pylogix with Emulate. A user confirmed that with 0.7.14, set ConnectionSize to 504 and the IP address will be your computer.
from pylogix.
@dmroeder I couldn't get a read with Studio 5000 Emulate V32, maybe it was successful with the old RS Emulate.
Do you have a version where it was known to work? I tried all local IPs, and also different slots, on the Emulator the CPU appears to be on slot 2.
= RESTART: C:\Users\Default.DESKTOP-GU2MB4F\Downloads\pylogix-master (2)\examples\01_read_simple.py
Traceback (most recent call last):
File "C:\Users\Default.DESKTOP-GU2MB4F\Downloads\pylogix-master (2)\examples\01_read_simple.py", line 21, in <module>
ret = comm.Read('BaseBOOL')
File "C:\Users\Default.DESKTOP-GU2MB4F\AppData\Roaming\Python\Python39\site-packages\pylogix-0.7.15-py3.9.egg\pylogix\eip.py", line 107, in Read
return self._readTag(tag, count, datatype)
File "C:\Users\Default.DESKTOP-GU2MB4F\AppData\Roaming\Python\Python39\site-packages\pylogix-0.7.15-py3.9.egg\pylogix\eip.py", line 252, in _readTag
resp = self._initial_read(tag, base_tag, data_type)
File "C:\Users\Default.DESKTOP-GU2MB4F\AppData\Roaming\Python\Python39\site-packages\pylogix-0.7.15-py3.9.egg\pylogix\eip.py", line 1366, in _initial_read
status, ret_data = self.conn.send(request)
File "C:\Users\Default.DESKTOP-GU2MB4F\AppData\Roaming\Python\Python39\site-packages\pylogix-0.7.15-py3.9.egg\pylogix\lgx_comm.py", line 65, in send
return self._getBytes(eip_header, connected)
File "C:\Users\Default.DESKTOP-GU2MB4F\AppData\Roaming\Python\Python39\site-packages\pylogix-0.7.15-py3.9.egg\pylogix\lgx_comm.py", line 150, in _getBytes
raise BufferError("ethernet/ip _getBytes output size exceeded: %d bytes" % len(data))
BufferError: ethernet/ip _getBytes output size exceeded: 64 bytes
from pylogix.
Hmm, I believe the version was 0.7.14, all they did was set ConnectionSize=504. Apparently using loopback address worked and "the address that shows up in RSLinx", which I assume was the computers address. The user called the software package "Emulate 5000" which leaves an opening to be ether the old or new.
I don't think that software is part of our toolkit, so I can't really test myself. Can you wireshark it?
from pylogix.
It works after locally changing connection to 504, I found the bug the ConnectionSize is now set to 50 in lgx_comm.py must have accidentally deleted the 4. Both loopback and computer ip worked. Nice!
from pylogix.
I am an idiot. looks like my 2nd commit, I accidentally changed the fall back connection size. I gotta be more careful than that. I was in a hurry, I usually check diff before committing.
from pylogix.
I am an idiot. looks like my 2nd commit, I accidentally changed the fall back connection size. I gotta be more careful than that. I was in a hurry, I usually check diff before committing.
no worries I am gettng fixed, and adding some notes to the docs as well. It only appears to work locally.
from pylogix.
I am an idiot. looks like my 2nd commit, I accidentally changed the fall back connection size. I gotta be more careful than that. I was in a hurry, I usually check diff before committing.
no worries I am gettng fixed, and adding some notes to the docs as well. It only appears to work locally.
Yeah I had heard that it only works on the machine that is actually running emulate.
from pylogix.
While trying this I am getting strange error Unknown error [WinError 10061] No connection could be made because the target machine actively refused it
Any suggestion on this?
from pylogix.
Related Issues (20)
- Unknown Error 255 on Multi-Write when including a string HOT 6
- read tag from 80 sets of plc HOT 22
- Double read packets? HOT 6
- cannot import name 'Adapter' from 'pylogix' HOT 23
- Tag Write falsely reports Success HOT 7
- "Forward open failed" when trying to read tags from Berghof PLC HOT 8
- .GetDeviceProperties always returns DeviceType of "None" HOT 5
- Issues connecting to emulate HOT 7
- micro850 connection HOT 5
- Return data gets jumbled up on a multi write when the tags don't exist. HOT 13
- The return value is different when using a multi write compared to a single write for a string. HOT 4
- cannot get a tag list HOT 3
- Is it possible to inhibit a periodic task? HOT 2
- pylogix - returning a tag list as a row of values HOT 7
- PLC REAL values HOT 5
- Pylogix - compare a previously acquired tag list with the current one HOT 5
- Discover does not work while running pylogix in docker HOT 10
- Invalid Continuation Byte HOT 5
- Abnormal code termination. HOT 8
- Do I need to use routing? HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylogix.