GetObjectReference
This method can be used to determine the reference path of an object instance of the TwinCAT IEC 61850 data model. The query of the server object instance (IEDs) returns the name of the server. In all other object instances above the server, the server name is not included in the reference path. The name of the functional group is not included in the reference path of the object instances above the logical nodes (LN).
METHOD GetObjectReference : T_AcsiObjectReference
Return parameter: String containing the reference path of the object instance.
Example:
Extract from a fictitious TwinCAT IEC 61850 data model:
MA2C03 {IED}
-MA2C03Relay {LD}
-LLN0 {LN}
-Mod {DO}
stVal {DA}
q {DA}
t {DA}
+Beh {DO}
+Health {DO}
+NamPlt {DO}
+LPHD1 {LN}
...
Declaration part:
PROGRAM MAIN
VAR
sRef : T_AcsiObjectReference;
END_VAR
Implementation:
sRef := MA2C03.GetObjectReference(); (*'MA2C03'*)
sRef := MA2C03.MA2C03Relay.GetObjectReference(); (*'MA2C03Relay'*)
sRef := MA2C03.MA2C03Relay.LLN0.GetObjectReference(); (*'MA2C03Relay/LLN0'*)
sRef := MA2C03.MA2C03Relay.LLN0.Mod_.GetObjectReference(); (*'MA2C03Relay/LLN0.Mod'*)
sRef := MA2C03.MA2C03Relay.LLN0.Mod_.stVal.GetObjectReference();(*'MA2C03Relay/LLN0.Mod.stVal'*)
sRef := MA2C03.MA2C03Relay.LLN0.Mod_.q.GetObjectReference(); (*'MA2C03Relay/LLN0.Mod.q'*)
sRef := MA2C03.MA2C03Relay.LLN0.Mod_.t.GetObjectReference(); (*'MA2C03Relay/LLN0.Mod.t'*)
sRef := MA2C03.MA2C03Relay.LLN0.Beh.GetObjectReference(); (*'MA2C03Relay/LLN0.Beh'*)
sRef := MA2C03.MA2C03Relay.LLN0.Health.GetObjectReference(); (*'MA2C03Relay/LLN0.Health'*)
sRef := MA2C03.MA2C03Relay.LLN0.NamPlt.GetObjectReference(); (*'MA2C03Relay/LLN0.NamPlt'*)
sRef := MA2C03.MA2C03Relay.LPHD1.GetObjectReference(); (*'MA2C03Relay/LPHD1'*)