How do we edit below script to include a third tag battery, for example /PLC/5155-Battery voltage
tag='/PLC/5070-Battery Voltage'
tagPath = tagProv+location+tag
if system.tag.exists(tagPath):
self.position.display = 1
return tagPath
else:
tagPath = tagProv+location+'/PLC/5059-Battery Voltage'
if system.tag.exists(tagPath):
self.position.display = 1
return tagPath
else:
self.position.display = 0
return ''''
Thanks for the help!
Tim
2
tagPath1 = tagProv+location+'/PLC/5070-Battery Voltage'
tagPath2 = tagProv+location+'/PLC/5059-Battery Voltage'
tagPath3 = tagProv+location+'/PLC/5155-Battery voltage'
if system.tag.exists(tagPath1):
self.position.display = 1
return tagPath1
elif system.tag.exists(tagPath2):
self.position.display = 1
return tagPath2
elif system.tag.exists(tagPath3):
self.position.display = 1
return tagPath3
else:
self.position.display = 0
return ''''