wasnt putting the value anywhere

This commit is contained in:
Patrick McDonagh
2016-03-01 13:49:16 -06:00
parent cd760216e6
commit b5ede3c29b

View File

@@ -107,10 +107,10 @@ def main():
for r in tagList:
r['val'] = 0
if configProperties['plc_type'] == "u800":
u800.readMicroTag(configProperties['PLC_IP_ADDRESS'], str(r['name']))[0]
r["val"] = u800.readMicroTag(configProperties['PLC_IP_ADDRESS'], str(r['name']))[0]
else:
r["val"] = readTag(configProperties['PLC_IP_ADDRESS'], str(r['name']))[0]
print("{0} - {1}".format(r["name"], r["val"]))
if (not configProperties['save_all'] and not r["val"] == r["lastVal"]) or configProperties['save_all']:
with con: