pycomm can't read unicode string tag names
This commit is contained in:
@@ -54,7 +54,7 @@ def main():
|
||||
|
||||
while True:
|
||||
for r in tagList:
|
||||
r["val"] = readTag(PLC_IP_ADDRESS, r['name'])
|
||||
r["val"] = readTag(PLC_IP_ADDRESS, str(r['name']))
|
||||
print("{0} - {1}".format(r["name"], r["val"]))
|
||||
if not r["val"] == r["lastVal"]:
|
||||
with con:
|
||||
|
||||
Reference in New Issue
Block a user