I have created a read/write DateTime memory tag ‘[default]ping/LastPingStartTime’. It’s reading 1970-01-01 in the tag browser.
I’m trying to update it with the following test script.
import datetime
now = datetime.datetime.now()
print now
system.tag.writeToTag('[default]ping/LastPingStartTime', now)
print system.tag.read("[default]BAPL_ping/LastPingStartTime")
- The print command reports the correct timestamp.
- The tag.read reports the tag value correctly.
- The tag doesn’t update.
Can anyone find my error?