Good night. I’m new to ignition and have had some doubts about ignition project programming at the company I work for. I would like someone to give me just some idea of the line of code that I will share below.
if Execute == 1:
myNameLow = system.tag.read("[.]zMyNameLow")
myMachineNameLow = system.tag.read("[.]../zMyNameLow")
historyPath = "machines_dm/%s/%s" % (myMachineNameLow.value,myNameLow.value)
My question is about this line:
machines_dm/%s/%s" %
I know that machines_DM is a folder that contains all the tags of plant machines. but an expression /% s /% s% could not understand.
SecondValue = currentValue.value
Execute = 0
if SecondValue == 0: Execute = 0
if SecondValue == 10: Execute = 0
if SecondValue == 20: Execute = 0
if SecondValue == 30: Execute = 0
if SecondValue == 40: Execute = 1
if SecondValue == 50: Execute = 0
if initialChange == 1: Execute = 0
if Execute == 1:
myname = system.tag.read("[.]zMyName")
logger = system.util.getLogger(myname.value)
#get my rated speeds from parameter data.
Path = system.tag.read("[.]zMyRatedSpeedLookupPath")
Path2 = "[~]%s" % (Path.value)
Dataset = system.tag.read(Path2)
#write dataset into our own tag
system.tag.write("[.]zRatedSpeeds",Dataset)
and the second doubt is in the expression:
Path2 = “[~]%s” % (Path.value)
I didn’t understand what that row.
thanks!!!