UAMultiStateDiscreteType Class
packages\node-opcua-address-space\src\data_access\address_space_add_MultiStateDiscrete.js:17
Constructor
UAMultiStateDiscreteType
()
Item Index
Methods
- add_dataItem_stuff
- addAnalogDataItem AnalogDataItem DataItems that represent continuously-variable physical quantities ( e.g., length, temperature) , in contrast to the digital representation of data in discrete items NOTE Typical examples are the values provided by temperature sensors or pressure sensors. OPC UA defines a specific UAVariableType to identify an AnalogItem. Properties describe the possible ranges of AnalogItems.
- addDataItem
- addMultiStateDiscrete
- getValueAsString
Methods
add_dataItem_stuff
-
variable
-
options
Parameters:
-
variable
Object -
options
Object-
definition
[Optional]
-
valuePrecision
[Optional]
-
modellingRule
[Optional]
-
addAnalogDataItem
AnalogDataItem DataItems that represent continuously-variable physical quantities ( e.g., length, temperature) , in
contrast to the digital representation of data in discrete items
NOTE Typical examples are the values provided by temperature sensors or pressure sensors. OPC UA defines a specific
UAVariableType to identify an AnalogItem. Properties describe the possible ranges of AnalogItems.
-
options
Parameters:
-
options
Object-
browseName
String -
definition
String -
[valuePrecision=null]
Double | Null optional -
instrumentRange
-
low
Double -
high
Double
-
-
engineeringUnitsRange.low
Double -
engineeringUnitsRange.high
Double -
engineeringUnits
String -
dataType
NodeId// todo :check
-
[accessLevel= "CurrentRead | CurrentWrite"]
AccessLevelFlag optional -
[userAccessLevel= "CurrentRead | CurrentWrite"]
AccessLevelFlag optional -
value
-
[modellingRule]
optional
-
Returns:
Example:
:
namespace.add_analog_dataItem({ componentOf: parentObject, browseName: "TemperatureSensor", definition: "(tempA -25) + tempB", valuePrecision: 0.5, //- instrumentRange: { low: 100 , high: 200}, // optional engineeringUnitsRange: { low: 100 , high: 200}, // mandatory engineeringUnits: standardUnits.degree_celsius,, // optional // access level accessLevel: 1 minimumSamplingInterval: 10, });
addDataItem
-
options
Parameters:
-
options
Object-
browseName
String -
definition
String -
[valuePrecision=null]
Double | Null optional -
dataType
NodeId// todo :check
-
value
-
componentOf
-
Returns:
addMultiStateDiscrete
-
options
Parameters:
-
options
Object-
browseName
String -
[nodeId]
NodeId optional -
[value= 0]
UInt32 optional -
enumStrings
Stringan array containing the String associated with each enumeration value, starting from 0 onward
-