Skip to content

Is there a method to get the DataType of a tag? #226

Closed Answered by dmroeder
Destination2Unknown asked this question in Q&A
Discussion options

You must be logged in to vote

If it is a UDT, then you have to get the tag list.

If it is one of the base data types:

import pylogix

with pylogix.PLC("192.168.1.10") as comm:

    ret = comm.Read("BaseDINT")

    print(comm.KnownTags["BaseDINT"][0])

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Destination2Unknown
Comment options

Answer selected by Destination2Unknown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants