Hello! I have made a template that uses a tab strip to 'select' different views for the operator. The issue I am having though is that when I try to do a button press, my old "button script" code is failing to pull the motors number to navigate to the correct tag to write to.
I have added the "MotorNumber" data type to the "Home" container - but I believe the issue is that my script is going off inside of the "Home" tab and therefore it doesnt have the MotorNumber.Dynamictagtie passed to it. Should I write scripting on the tag script to pass parameters to these containers to resolve?
I am using the M_10500 motor as an example, which is a UDT of type PMTR - The tag browser hierarchy is shown in the screenshot.
Screenshot is the python console from the button press, along with the script itself.
value = 1 system.tag.writeBlocking([str(event.source.parent.MotorNumber.DynamicTagTie) + "/O/OCmd_Start1"], [value]) print str(event.source.parent.MotorNumber.DynamicTagTie) + "/O/OCmd_Start1"