Skip to content

Dynamic Address Space #336

@wlkrm

Description

@wlkrm

It seems like the gateway does currently not support dynamic address spaces.
Example: Jobs of MachineTools.
Example-Instance: opcua/umati/v3/json/metadata/vdw/server-cpp/FullMachineToolDynamic on umati.app broker.

Metadata Topic Structure
Image

Metadata message for topic opcua/umati/v3/json/metadata/vdw/server-cpp/FullMachineToolDynamic/Production/ProductionPlan
contains wrong references, i.e., references to already removed Jobs like Job 91 are there, while references to new Jobs like Job 81 are missing or the other way round.

{
    "MessageId": "f653a141-7bcd-498d-b421-c967c510a0f2",
    "MessageType": "ua-metadata",
    "PublisherId": "1",
    "DataSetWriterId": 100,
    "MetaData": {
        "Namespaces": [
            "http://opcfoundation.org/UA/",
            "urn:UmatiSampleServer",
            "http://opcfoundation.org/UA/DI/",
            "http://opcfoundation.org/UA/Machinery/",
            "http://opcfoundation.org/UA/IA/",
            "http://opcfoundation.org/UA/MachineTool/",
            "http://opcfoundation.org/UA/Woodworking/",
            "http://opcfoundation.org/UA/Machinery/Result/",
            "http://opcfoundation.org/UA/GMS/",
            "http://opcfoundation.org/UA/Dictionary/IRDI",
            "http://opcfoundation.org/UA/PADIM/",
            "http://opcfoundation.org/UA/Machinery/ProcessValues/",
            "http://opcfoundation.org/UA/AdditiveManufacturing/NodeSet2/",
            "http://example.com/FullMachineTool/",
            "http://example.com/FullMachineToolDynamic/",
            "http://example.com/BasicMachineTool/",
            "http://example.com/MRMachineTool/",
            "http://example.com/ShowcaseMachineTool/",
            "http://example.com/CNShowcaseMachineTool/",
            "http://example.com/BasicWoodworking/",
            "http://example.com/FullWoodworking/",
            "http://www.isw.uni-stuttgart.de/BasicGMS/",
            "https://www.hexagonmi.com/Hexagon PMM Gold/",
            "https://www.hexagonmi.com/Hexagon GLOBAL S/",
            "http://www.ogpgmbh.de/SmartScope CNC 500/",
            "http://www.wenzel-group.com/Wenzel LH 87/",
            "http://www.3yourmind.com/BasicAMMachine/",
            "http://www.3yourmind.com/ShowcaseAMMachine/"
        ],
        "Name": "ns=14;i=58822",
        "Fields": [
            {
                "Name": "NodeVersion",
                "FieldFlags": 0,
                "BuiltInType": 12,
                "DataType": {
                    "Id": 12
                },
                "ValueRank": -2,
                "MaxStringLength": 0,
                "DataSetFieldId": "703a9549-7865-459b-99b8-bcc0d727906d"
            },
            {
                "Name": "virtualId",
                "Description": {
                    "Text": "VirtualId used by the Gateway"
                },
                "FieldFlags": 0,
                "BuiltInType": 12,
                "DataType": {
                    "Id": 12
                },
                "ValueRank": -1,
                "MaxStringLength": 0,
                "DataSetFieldId": "b5d455fa-4e09-486b-88a3-96637aa5aaf3",
                "Properties": [
                    {
                        "Key": {
                            "Name": "relations"
                        },
                        "Value": {
                            "Type": 24,
                            "Body": [
                                {
                                    "Type": 22,
                                    "Body": {
                                        "TypeId": {
                                            "Id": 518
                                        },
                                        "Body": {
                                            "ReferenceTypeId": {
                                                "Id": 46
                                            },
                                            "IsForward": true,
                                            "NodeId": {
                                                "Id": 58823,
                                                "Namespace": 14
                                            },
                                            "BrowseName": {
                                                "Name": "NodeVersion"
                                            },
                                            "DisplayName": {
                                                "Text": "NodeVersion"
                                            },
                                            "NodeClass": 2,
                                            "TypeDefinition": {
                                                "Id": 68
                                            }
                                        }
                                    }
                                },
                                {
                                    "Type": 22,
                                    "Body": {
                                        "TypeId": {
                                            "Id": 518
                                        },
                                        "Body": {
                                            "ReferenceTypeId": {
                                                "Id": 47
                                            },
                                            "IsForward": false,
                                            "NodeId": {
                                                "Id": 58634,
                                                "Namespace": 14
                                            },
                                            "BrowseName": {
                                                "Name": "Production",
                                                "Uri": 5
                                            },
                                            "DisplayName": {
                                                "Text": "Production"
                                            },
                                            "NodeClass": 1,
                                            "TypeDefinition": {
                                                "Id": 21,
                                                "Namespace": 5
                                            }
                                        }
                                    }
                                },
                                {
                                    "Type": 22,
                                    "Body": {
                                        "TypeId": {
                                            "Id": 518
                                        },
                                        "Body": {
                                            "ReferenceTypeId": {
                                                "Id": 49
                                            },
                                            "IsForward": true,
                                            "NodeId": {
                                                "Id": 58824,
                                                "Namespace": 14
                                            },
                                            "BrowseName": {
                                                "Name": "MyJob 1",
                                                "Uri": 14
                                            },
                                            "DisplayName": {
                                                "Text": "MyJob 1"
                                            },
                                            "NodeClass": 1,
                                            "TypeDefinition": {
                                                "Id": 29,
                                                "Namespace": 5
                                            }
                                        }
                                    }
                                },
                                {
                                    "Type": 22,
                                    "Body": {
                                        "TypeId": {
                                            "Id": 518
                                        },
                                        "Body": {
                                            "ReferenceTypeId": {
                                                "Id": 49
                                            },
                                            "IsForward": true,
                                            "NodeId": {
                                                "Id": 60534,
                                                "Namespace": 14
                                            },
                                            // Does not exist anymore
                                            "BrowseName": {
                                                "Name": "Job 91",
                                                "Uri": 14
                                            },
                                            "DisplayName": {
                                                "Text": "Job 91"
                                            },
                                            "NodeClass": 1,
                                            "TypeDefinition": {
                                                "Id": 29,
                                                "Namespace": 5
                                            }
                                        }
                                    }
                                },
                                {
                                    "Type": 22,
                                    "Body": {
                                        "TypeId": {
                                            "Id": 518
                                        },
                                        "Body": {
                                            "ReferenceTypeId": {
                                                "Id": 40
                                            },
                                            "IsForward": true,
                                            "NodeId": {
                                                "Id": 30,
                                                "Namespace": 5
                                            },
                                            "BrowseName": {
                                                "Name": "ProductionJobListType",
                                                "Uri": 5
                                            },
                                            "DisplayName": {
                                                "Text": "ProductionJobListType"
                                            },
                                            "NodeClass": 8
                                        }
                                    }
                                }
                            ]
                        }
                    }
                ]
            }
        ],
        "ConfigurationVersion": {
            "MajorVersion": 1,
            "MinorVersion": 0
        }
    }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions