pycomm can't read unicode string tag names

This commit is contained in:
Patrick McDonagh
2016-01-24 14:51:51 -06:00
parent 00029e27ac
commit ef1d40c0f4

View File

@@ -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: