Support Forums
OEM Tag structure reference a driver thru Parameter Expression
oem

I would like to set a property on a context tag, say "PLCDriver", and it's value be "[PLCPORT01\PLANTPLC01]", which I can do.

In the children tags, that need to access the i/o, I'd like to use that value to get a driver.

If I enter \PLCDriver in the Edit Parameter Expression, it retrieves the value, but says --Missing--

If I select the same through the tag browser, it works as expected.

Or any other combination where I can "point" to the driver one time in the tag type instance once it is created.

Sorry if this is already documented or discussed, but I did not find it yet.

note: i haven't actually created a tag type from the structure yet to test, so I might do that also.

I would like to set a property on a context tag, say "PLCDriver", and it's value be "[PLCPORT01\PLANTPLC01]", which I can do. In the children tags, that need to access the i/o, I'd like to use that value to get a driver. If I enter \PLCDriver in the Edit Parameter Expression, it retrieves the value, but says --Missing-- If I select the same through the tag browser, it works as expected. Or any other combination where I can "point" to the driver one time in the tag type instance once it is created. Sorry if this is already documented or discussed, but I did not find it yet. note: i haven't actually created a tag type from the structure yet to test, so I might do that also.

Thank you jcnaquin! I revisited that again, unfortunately had not any luck

For clarity, here is my tag structure:
\Root
---PLCPort01 (Port)
-------PLANTPLC01 (
Driver)
---Templates
-------MyContext (With property "PLCDriver" = [PLCPort01\PLANTPLC01]
---------IO_1 (*I/O and Calculations)
---------IO_2

Expression in I/O Device in Tag IO_1
\PLCDriver =====> [PLCPort01\PLANTPLC01] --Missing--

\PLCDriver\Root =====> No Tag Selected

\PLCDriver\Driver =====> No Tag Selected

[PLCPort01\PLANTPLC01]\Root =====> WORKS!

Scope(Self, "PLCDriver" ) =====> [PLCPort01\PLANTPLC01] --Missing--

Can't find the right config to get the object while using a parent's property value.

Thanks for looking.

gene

Thank you jcnaquin! I revisited that again, unfortunately had not any luck For clarity, here is my tag structure: \Root ---PLCPort01 (*Port) -------PLANTPLC01 (*Driver) ---Templates -------MyContext (With property "PLCDriver" = [PLCPort01\PLANTPLC01] ---------IO_1 (*I/O and Calculations) ---------IO_2 Expression in I/O Device in Tag IO_1 \PLCDriver =====> [PLCPort01\PLANTPLC01] --Missing-- \PLCDriver\Root =====> No Tag Selected \PLCDriver\Driver =====> No Tag Selected [PLCPort01\PLANTPLC01]\Root =====> WORKS! Scope(Self, "PLCDriver" ) =====> [PLCPort01\PLANTPLC01] --Missing-- Can't find the right config to get the object while using a parent's property value. Thanks for looking. gene
edited Oct 8 at 10:23 pm

jcnaquin! That did it! Simply had to remove the square brackets from the parent's property.

So for clarity:
Parent Property: "PLCDriver" = PLCPort01\PLANTPLC01

AND
I/O Tag Expressioin for Driver:
\PLCDriver

Scope gets handled and actually don't even need \Root

Thank you again jcnaquin!

jcnaquin! That did it! Simply had to remove the square brackets from the parent's property. So for clarity: Parent Property: "PLCDriver" = PLCPort01\PLANTPLC01 AND I/O Tag Expressioin for Driver: \PLCDriver Scope gets handled and actually don't even need \Root Thank you again jcnaquin!
81
2
1
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft