OpcUaDeadbandType Property

General info

Label

Deadband Type

Description

Defines a server based deadband with absolute or percentual value. Deadband settings will be ignored for non-numeric items

Data type

UInt32

Default value

3 (inmation.model.codes.OpcUaDeadbandTypes.DEADBAND_NONE)

Type

CodingGroup

Code

1021

Symbolic name

MODEL_PROP_OPCUADEADBANDTYPE

Lua access code

inmation.model.properties.OpcUaDeadbandType

Available since

1.8.1.1450

Parent properties

OpcUaDataChangeFilterOptions

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs
PROP_HAS_DEFAULT The property has a default value as standard

Codings

Coding group: OpcUaDeadbandTypes

Name Code Label Tooltip

DEADBAND_ABSOLUTE

1

Absolute

Defines deadband parameter as absolute value

DEADBAND_PERCENTUAL

2

Percent

Defines deadband parameter as percentual value

DEADBAND_NONE

3

None

Deadband will be not used

Examples

Read from or write to the OpcUaDeadbandType property.

  • Lua

  • C#

-- Read from the OpcUaDeadbandType
inmation.getvalue("<OBJECT FULL PATH>.IoTypeOpcUa.OpcUaMonitoredItemParams.OpcUaDataChangeFilterOptions.OpcUaDeadbandType")

-- Write to the OpcUaDeadbandType
inmation.setvalue("<OBJECT FULL PATH>.IoTypeOpcUa.OpcUaMonitoredItemParams.OpcUaDataChangeFilterOptions.OpcUaDeadbandType",
    inmation.model.codes.OpcUaDeadbandTypes.DEADBAND_ABSOLUTE)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "so", Password = "inmation" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the OpcUaDeadbandType
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.IoTypeOpcUa.OpcUaMonitoredItemParams.OpcUaDataChangeFilterOptions.OpcUaDeadbandType"));
// Write to the OpcUaDeadbandType
Result result = sli.WriteValue(sc, new WriteItem(OpcUaDeadbandTypes.DEADBAND_ABSOLUTE, "<OBJECT FULL PATH>.IoTypeOpcUa.OpcUaMonitoredItemParams.OpcUaDataChangeFilterOptions.OpcUaDeadbandType"));

A switch-like function of the codings.

function get_coding_name(code)
    local oudt = inmation.model.codes.OpcUaDeadbandTypes
    if oudt.DEADBAND_ABSOLUTE==code then return 'DEADBAND_ABSOLUTE'
    elseif oudt.DEADBAND_PERCENTUAL==code then return 'DEADBAND_PERCENTUAL'
    elseif oudt.DEADBAND_NONE==code then return 'DEADBAND_NONE'
    end
end
return get_coding_name(inmation.model.codes.OpcUaDeadbandTypes.DEADBAND_ABSOLUTE)