ruscito / pycomm

pycomm is a package that includes a collection of modules used to communicate with PLCs
MIT License
139 stars 85 forks source link

Connecting to Productivity PLC via pycomm #46

Open benhuckell opened 6 years ago

benhuckell commented 6 years ago

I'm trying to connect to a productivity plc with pycomm using the TCP/IP Protocol using the following code:

from pycomm.ab_comm.slc import Driver as SlcDriver c = SlcDriver() c.open("[MY IP ADDRESS]")

I keep getting "[Errno 111] Connection Refused".

My first question is whether or not I can use pycomm for the productivity PLC. Is the pycomm library only good for Alley Bradley PLC's? If it is only good for AB PLC's, is there another module such as cpppo or pymodbus that would be better suited for this application?

ruscito commented 6 years ago

Is productivity PLC Ethernet/IP based?

benhuckell commented 6 years ago

Yes it is ethernet/ip based. I am currently able to ping the plc and I have solved the "connection refused" problem, however I am still unable to access any of the tags for reading/writing.