How to use the pylogix.eip.LgxTag function in pylogix

To help you get started, we’ve selected a few pylogix examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dmroeder / pylogix / tests / PylogixTests.py View on Github external
def test_lgx_tag_class(self):
        tags = comm.GetTagList()
        self.assertEqual(
            isinstance(
                tags.Value[0], LgxTag), True, "LgxTag not found in GetTagList")
github dmroeder / pylogix / tests / PylogixTests.py View on Github external
def test_program_tag_list(self):
        program_tags = comm.GetProgramTagList('Program:MainProgram')
        self.assertEqual(program_tags.Status, 'Success', program_tags.Status)
        self.assertEqual(
            isinstance(program_tags, Response),
            True, "Reponse class not found in GetProgramTagList")
        self.assertEqual(
            isinstance(program_tags.Value[0], LgxTag),
            True, "LgxTag class not found in GetProgramTagList Value")
github dmroeder / pylogix / pylogix / eip.py View on Github external
def parseLgxTag(packet, programName):

    t = LgxTag()
    length = unpack_from('> 13
    t.Struct = (val & 0x8000) >> 15

    if t.Array:

pylogix

Read/Write Rockwell Automation Logix based PLC's

Apache-2.0
Latest version published 1 month ago

Package Health Score

78 / 100
Full package analysis

Similar packages