Skip to content

Latest commit

 

History

History
281 lines (182 loc) · 3.5 KB

TYPES.md

File metadata and controls

281 lines (182 loc) · 3.5 KB

OPCUA Types

Contents

DateTime

Constructor

No default public constructor

  • now() The current time in UTC time

  • nowMonotonic() CPU clock invariant to system time changes. Use only to measure durations, not absolute time.

Member variables

N/A

Methods

  • __tostring

  • toUnixTime() Convert to unix time in int64.

  • FromUnitTime(time | int64) From unix time.

  • toStruct() Convert to DateTimeStruct

  • fromStruct() Covert DataTime from DateTimeStruct

  • localTimeUtcOffset() Offset between local time and UTC time

DateTimeStruct

Constructors

  • new() Default constructor

  • new(DateTime now) Construct struct with datetime

Member variables

  • nanoSec
  • microSec
  • milliSec
  • sec
  • min
  • hour
  • day
  • month
  • year

Variant

Constructors

  • new(boolean)
  • new(integer)
  • new(numeric)
  • new(string)
  • int8(integer)
  • uint8(integer)
  • int16(integer)
  • uint16(integer)
  • int32(integer)
  • uint32(integer)
  • int64(integer)
  • uint64(integer)
  • datetime(DateTime)

Methods

  • isEmpty()

  • isScalar()

  • hasScalarType()

  • hasArrayType()

  • setScalar()

  • setScalarCopy()

  • setArray()

  • setArrayCopy()

  • copyRange()

  • setRange()

  • setRangeCopy()

  • asLong()

  • asDouble()

  • asString()

  • asDateTime()

DataValue

Constructors

  • new(val | Variant)

Member Variables

  • hasValue (Readonly)
  • hasStatus (Readonly)
  • hasSourceTimestamp (Readonly)
  • hasServerTimestamp (Readonly)
  • hasSorucePicoseconds (Readonly)
  • hasServerPicoseconds (Readonly)
  • value -- Variant
  • status -- StatusCode
  • sourceTimestamp -- DateTime
  • sourcePicoseconds -- int16
  • serverTimestamp -- DateTime
  • serverPicoseconds -- int16

NodeId

Constructors

  • new(ns | integer, val | integer)
  • new(ns | integer, val | string)
  • new(ns | integer, val | Guid)

Member Variables

  • ns Namespace index

  • type Identifier type

  • index Return the index

Methods

  • isNull()
  • hash()

ExpandedNodeId

Constructors

  • new(ns | integer, val | integer)
  • new(ns | integer, val | string)

Member Variables

  • nodeId
  • namespaceUri
  • serverIndex

QualifiedName

Constructors

  • new(ns | integers, val | string)

Member Variables

  • name
  • namespaceIndex

LocalizedText

Constructors

  • new(locale | string, text | string)

Member Variables

  • text
  • locale

ObjectAttributes

Constructors

  • new()

Member Variables

  • specifiledAttributes
  • displayName
  • description
  • writeMask
  • userWriteMask
  • eventNotifier

VariableAttributes

Constructors

  • new()

Member Variables

  • specifiledAttributes
  • displayName
  • description
  • writeMask
  • userWriteMask
  • value -- Variant
  • dataType -- NodeId
  • valueRank
  • arrayDimensionsSize
  • accessLevel
  • userAccesssLevel
  • minimumSamplingInterval
  • historizing

ViewAttributes

Constructors

  • new()

Member Variables

  • specifiledAttributes
  • displayName
  • description
  • writeMask
  • userWriteMask
  • containsNoLoops
  • eventNotifier

MethodAttributes

Constructors

  • new()

Member Variables

  • specifiledAttributes
  • displayName
  • description
  • writeMask
  • userWriteMask
  • executable
  • userExecutable