Instructions said to make a new post when I went to add more help I needed on a thread.
I am trying to get a string location from a dictionary to be set as the value for a tag.
I attempted the following in the tag scripting.
temp = system.tag.readBlocking(["[.]../../Equipment_State"])[0]
temp2=machine1.get_errorlocation(temp)
system.tag.writeBlocking(["[.]Machine1 Error Location"],[temp2])
I am able to write the correct equipment state to the tag using this code below.
I verified this code works:
temp = system.tag.readBlocking(["[.]../../Equipment_State"])[0]
system.tag.writeBlocking(["[.]Machine1 Error Location"],[temp])
I verified in a binding script that the below code works in the binding section of an object on perspective
value=machine1.get_errorlocation(value)
return value
For some reason though, I can’t get the value from the dictionary to become the value of the tag value.
for reference, here is what I had been working on
Mapping a tag output from 1000 input values - Ignition - Inductive Automation Forum