UANonExclusiveDeviationAlarm Class
packages\node-opcua-address-space\src\alarms_and_conditions\non_exclusive_deviation_alarm.js:17
Constructor
UANonExclusiveDeviationAlarm
()
Item Index
Methods
- (static)instantiate
- (static)UAAcknowledgeableConditionBase.instantiate
- (static)UAAlarmConditionBase.instantiate
- (static)UALimitAlarm.instantiate
- (static)UANonExclusiveDeviationAlarm.instantiate
- _calculateConditionInfo
- _confirm_branch
- _installInputNodeMonitoring install mechanism that listen to input node datavalue changes so that alarm status can be automatically updated appropriatly.
- _setEnabledState
- acknowledgeAndAutoConfirmBranch
- activateAlarm
- autoConfirmBranch
- conditionOfNode
- createBranch
- deleteBranch
- desactivateAlarm
- getBranchCount
- getEnabledState
- getEnabledStateAsString
- getHighHighLimit
- getHighLimit
- getInputNodeNode
- getInputNodeValue
- getLowLimit
- getLowLowLimit
- getMaxTimeShelved
- getSetpointNodeNode
- getSetpointValue
- getSuppressedOrShelved
- initialize
- isSuppressedOrShelved
- post_initialize
- raiseConditionEvent Raise a Instance Event (see also UAObject#raiseEvent to raise a transient event)
- setEnabledState
- setHighHighLimit
- setHighLimit
- setLocalTime
- setLowLimit
- setLowLowLimit
- setMaxTimeShelved
- setReceiveTime
- setTime
Properties
Events
Methods
(static)instantiate
-
namespace
-
type
-
options
-
data
Parameters:
-
namespace
Namespace -
type
Object -
options
Object -
data
Object
Returns:
(static)UAAcknowledgeableConditionBase.instantiate
-
addressSpace
-
conditionTypeId
-
options
-
data
Parameters:
-
addressSpace
AddressSpace -
conditionTypeId
String | NodeId -
options
Object -
data
Object
Returns:
(static)UAAlarmConditionBase.instantiate
-
namespace
-
alarmConditionTypeId
-
options
-
data
Parameters:
-
namespace
Namespace -
alarmConditionTypeId
Object -
options
Object-
inputNode
-
optionals
could be "SuppressedState" , "ShelvingState"
-
[maxTimeShelved]
Number | Null optionalmax TimeShelved duration (in ms)
-
-
data
Object
(static)UALimitAlarm.instantiate
-
namespace
-
limitAlarmTypeId
-
options
-
data
Parameters:
-
namespace
Namespace -
limitAlarmTypeId
Object -
options
Object-
inputNode
-
optionals
-
highHighLimit
Double -
highLimit
Double -
lowLimit
Double -
lowLowLimit
Double
-
-
data
Object
Returns:
(static)UANonExclusiveDeviationAlarm.instantiate
-
namespace
-
type
-
options
-
data
Parameters:
-
namespace
Namespace -
type
Object -
options
Object -
data
Object
Returns:
_calculateConditionInfo
-
stateData
-
isActive
-
value
-
oldCondition
Parameters:
-
stateData
Objectthe new calculated state of the alarm
-
isActive
Boolean -
value
Numberthe new value of the limit alarm
-
oldCondition
ConditionInfogiven for information purpose
-
severity
-
quality
-
message
-
retain
-
Returns:
the new condition info
this method need to be overridden by the instantiate to allow custom message and severity to be set based on specific context of the alarm.
Example:
var myAlarm = addressSpace.instantiateExclusiveLimitAlarm({...}); myAlarm._calculateConditionInfo = function(stateName,value,oldCondition) { var percent = Math.ceil(value * 100); return new ConditionInfo({ message: "Tank is almost " + percent + "% full", severity: 100, quality: StatusCodes.Good }); };
_confirm_branch
-
eventId
-
comment
-
branch
-
message
Parameters:
-
eventId
Object -
comment
Object -
branch
Object -
message
Object
_installInputNodeMonitoring
install mechanism that listen to input node datavalue changes so that alarm status
can be automatically updated appropriatly.
-
inputNode
Parameters:
-
inputNode
BaseNode
Returns:
_setEnabledState
-
requestedEnabledState
Parameters:
-
requestedEnabledState
Boolean
Returns:
StatusCodes.Good if successful or BadConditionAlreadyEnabled/BadConditionAlreadyDisabled
acknowledgeAndAutoConfirmBranch
-
branch
-
comment
Parameters:
-
branch
ConditionSnapshot -
comment
String | LocalizedText
activateAlarm
()
autoConfirmBranch
-
branch
-
comment
Parameters:
-
branch
Object -
comment
Object
desactivateAlarm
()
getBranchCount
()
Number
Returns:
getEnabledState
()
Boolean
Returns:
getEnabledStateAsString
()
String
Returns:
getHighHighLimit
()
Number
Returns:
getHighLimit
()
Number
Returns:
getInputNodeNode
()
BaseNode
Returns:
return the node in the address space pointed by the inputNode value
Note: please note the difference between alarm.inputNode
- alarm.inputNode is a UAVariable property of the alarm object holding the nodeid of the input node in its value.
- getInputNodeNode() is the UAVariable that contains the value that affects the state of the alarm and whose node id is stored in alarm.inputNode
getInputNodeValue
()
Returns:
getLowLimit
()
Float
Returns:
getLowLowLimit
()
Float
Returns:
getMaxTimeShelved
()
Duration
Returns:
getSetpointValue
()
Number
Returns:
getSuppressedOrShelved
()
Boolean
Returns:
initialize
()
private
isSuppressedOrShelved
()
Boolean
Returns:
post_initialize
()
private
raiseConditionEvent
Raise a Instance Event
(see also UAObject#raiseEvent to raise a transient event)
-
branch
Parameters:
-
branch
ConditionSnapshot
setEnabledState
-
requestedEnabledState
Parameters:
-
requestedEnabledState
Boolean
setHighHighLimit
-
value
Parameters:
-
value
Float
setHighLimit
-
value
Parameters:
-
value
Float
setLocalTime
-
time
Parameters:
-
time
Date
setLowLimit
-
value
Parameters:
-
value
Float
setLowLowLimit
-
value
Parameters:
-
value
Float
setMaxTimeShelved
-
duration
Parameters:
-
duration
Object( Duration in Milliseconds)
note: duration must be greater than 10ms and lesser than 2**31 ms
setReceiveTime
-
time
Parameters:
-
time
Date
setTime
-
time
Parameters:
-
time
Date
Properties
ackedState
TwoStateVariable
acknowledge
UAMethod
confirm
UAMethod
confirmedState
TwoStateVariable
inputNode
UAVariable
The InputNode Property provides the NodeId of the Variable the Value of which is used as primary input in the calculation of the Alarm state. If this Variable is not in the AddressSpace, a Null NodeId shall be provided. In some systems, an Alarm may be calculated based on multiple Variables Values; it is up to the system to determine which Variable’s NodeId is used. dataType is DataType.NodeId
maxTimeShelved
UAVariable
The optional Property MaxTimeShelved is used to set the maximum time that an Alarm Condition may be shelved. The value is expressed as duration. Systems can use this Property to prevent permanent Shelving of an Alarm. If this Property is present it will be an upper limit on the duration passed into a TimedShelve Method call. If a value that exceeds the value of this property is passed to the TimedShelve Method, than a Bad_ShelvingTimeOutOfRange error code is returned on the call. If this Property is present it will also be enforced for the OneShotShelved state, in that an Alarm Condition will transition to the Unshelved state from the OneShotShelved state if the duration specified in this Property expires following a OneShotShelve operation without a change of any of the other items associated with the Condition.
shelvingState
UAShelvingStateMachine
ShelvingState suggests whether an Alarm shall (temporarily) be prevented from being displayed to the user. It is quite often used to block nuisance Alarms.
suppressedState
UATwoStateVariable
SuppressState is used internally by a Server to automatically suppress Alarms due to system specific reasons. For example a system may be configured to suppress Alarms that are associated with machinery that is shutdown, such as a low level Alarm for a tank that is currently not in use.
Events
acknowledged
Event Payload:
-
eventId
Buffer | Null -
comment
LocalizedText -
branch
ConditionSnapshotraised when the alarm branch has been acknowledged
confirmed
Event Payload:
-
eventId
Object -
comment
Object -
eventId raised
Objectwhen the alarm branch has been confirmed