wasnt putting the value anywhere
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user