ARTICLE AD BOX
I am new to the PLC world. I am a Computer Systems Engineer focused on application development, but I’ve been asked to learn PLCs for a project. I need to access tags from a ControlLogix 1756-L7SP/B LogixSafety PLC using Python.
I have successfully established a connection and retrieved general PLC information via code, but when I try to list the tags, the output shows zero results:
Total de tags encontrados: 0 (Total tags found: 0)
Here is the code I am using:
from pycomm3 import LogixDriver with LogixDriver('192.168.1.5/1', init_program_tags=True) as plc: tags = plc.tags print(f'Total de tags encontrados: {len(tags)}') for name, info in list(tags.items())[:40]: print(name, info)Explore related questions
See similar questions with these tags.
