dmroeder / pylogix

Read/Write data from Allen Bradley Compact/Control Logix PLC's
Apache License 2.0
583 stars 181 forks source link

cannot get a tag list #228

Closed bartmch closed 1 year ago

bartmch commented 1 year ago

Preflight checks

Before you post an issue, ensure you have tried the minimal examples within the repo, or tried the pylogix-tester.

Type of issue

Delete items that do not apply below.

Description of issue

I'm trying to run example 28. Unfortunately, it already throws an error at line 9.

image

I'm running this script because I wasn't able to discover any tags using:

image

None None Forward open failed

dmroeder commented 1 year ago

What PLC model (and Ethernet module if CLX)?

bartmch commented 1 year ago

The PLC is Rockwell Allen Bradley CompactLogix L24 ER QBB1B. Thanks @dmroeder !

bartmch commented 1 year ago

It works no. I was using the wrong IP address facepalm

comm = PLC()
comm.IPAddress = '192.168.0.50'

comm.Read('E_TC')
tags = comm.GetTagList()