Hello, i am trying to get an event log to update through a tag change script on the folder, this is fine but i cannot figure out how to extract the tag name and the state. Essentially what i want to do it this
rootPath = ‘[default]DTL_Ramps/Ramp PLC Connection Tags/Ramp1/Event’
tags = system.tag.browse(rootPath)
values = [i[‘value’].value for i in tags]
if (any(values)) != 0:
Parameters = system.tag.readBlocking(values.TagName+Value)
So if any event turns on i want to grab the name of it and run it through a query as a parameter,
would appreciate if anybody had the knowledge to share.