I can't get this to work as described. I finally figured out what's documented in the Quick Start html under 618217: "If variables are defined and initialized in included files that are already defined in the base file, the values will be overridden with the last encountered declaration." I wrote a Body Script to read the present-value of an instance with parameters being "instance" and "present-value". I wrote a Parameter Script to configure "instance" and "present-value" for each instance I need...
It turns out my problem was it was a paired tag for Date and Time and I wasn't supplying an expected result for Time. Thank you for the help.
I can't seem to get anywere using DATE = 1, ? or DATE = ? If I use DATE = [(,-*-2018)], I get "Date comparison failure ((,--))=((,-*-2018)) " which is expected. If I use DATE = [(,--)], I get "Mismatched context tag value". Replacing the * with ? doesn't change anything there.
I have a body script that reads an Instance of an analog-input like present-value. I need to run this body script many times and the only change is the Instance and the expected present-value. Is there an efficient way to do this? Master Scripts described in the User Guide seems like what I'm looking for but it doesn't seem to work the way I need it to work. If I create 2 parameter scripts that include the body script described above and include them in a master script and run it. The parameter settings...
Is there a way to test if an object can be read without testing the what the actual value is? I'm specifically trying to read a Date field with the following: [(,--)] which results in a mismatched context tag value error. If I put at least one thing in the date it gives me a data mismatch (which is expected) but then the test fails [(,-*-2018)]. I've read in the docs that ? replaces * for don't care but I can't get anywhere trying to use that.