In questa pagina

SimpleAttributeOperand QML Type

Il tipo SimpleAttributeOperand di OPC UA. Maggiori informazioni...

Import Statement: import QtOpcUa
Since: QtOpcUa 5.13
Status: Deprecated since 6.9

Questo tipo è deprecato a partire da QtOpcUa 6.9. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.

Proprietà

Descrizione dettagliata

L'operando SimpleAttributeOperand è specificato nella specifica OPC UA 1.05, parte 4, sezione 7.7.4.5. Viene utilizzato quando è necessario utilizzare un attributo di un nodo come operando.

Ad esempio, il seguente operando di attributo semplice rappresenta il valore del campo "Severity" del tipo di evento di base:

import QtOpcUa as QtOpcUa

QtOpcUa.SimpleAttributeOperand {
    identifier: "Severity"
    ns: "http://opcfoundation.org/UA/"
}

Documentazione delle proprietà

browsePath : list<OpcUaNodeId>

Percorso di navigazione verso il nodo che contiene l'attributo.

import QtOpcUa as QtOpcUa

QtOpcUa.SimpleAttributeOperand {
    ...
    browsePath: [
        QtOpcUa.NodeId {
            identifier: "Message"
            ns: "http://opcfoundation.org/UA/"
         }
         ...
    ]
}

indexRange : string

Stringa che indica l'intervallo di indice utilizzato per identificare un singolo valore o un sottoinsieme dei valori dell'attributo.

import QtOpcUa as QtOpcUa

QtOpcUa.SimpleAttributeOperand {
    ...
    indexRange: "0:2"
}

nodeAttribute : Constants.NodeAttribute

Attributo del nodo a cui punta browsePath. Il valore predefinito è Constants.NodeAttribute.Value.

import QtOpcUa as QtOpcUa

QtOpcUa.SimpleAttributeOperand {
    ...
    nodeAttribute: QtOpcUa.Constants.NodeAttribute.Value
}

typeId : string

ID del nodo della definizione di tipo. L'operando sarà di quel tipo o di uno dei suoi sottotipi. Il valore predefinito è "ns=0;i=2041".

import QtOpcUa as QtOpcUa

QtOpcUa.SimpleAttributeOperand {
    ...
    typeId: "ns=0;i=2041"
}

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.