UAExclusiveDeviationAlarm Class
packages\node-opcua-address-space\src\alarms_and_conditions\exclusive_deviation_alarm.js:16
Constructor
UAExclusiveDeviationAlarm
()
Item Index
Methods
- (static)instantiate
- (static)UAAcknowledgeableConditionBase.instantiate
- (static)UAAlarmConditionBase.instantiate
- (static)UALimitAlarm.instantiate
- _calculateConditionInfo
- _confirm_branch
- _setEnabledState
- acknowledgeAndAutoConfirmBranch
- activateAlarm
- autoConfirmBranch
- conditionOfNode
- createBranch
- deleteBranch
- desactivateAlarm
- getBranchCount
- getEnabledState
- getEnabledStateAsString
- getHighHighLimit
- getHighLimit
- getInputNodeNode
- getInputNodeValue
- getLowLimit
- getLowLowLimit
- getMaxTimeShelved
- getSuppressedOrShelved
- initialize
- isSuppressedOrShelved
- post_initialize
- raiseConditionEvent Raise a Instance Event (see also UAObject#raiseEvent to raise a transient event)
- setHighHighLimit
- setHighLimit
- setLocalTime
- setLowLimit
- setLowLowLimit
- setMaxTimeShelved
- setReceiveTime
- setTime
Properties
Events
Methods
(static)instantiate
-
type -
options -
data
Parameters:
-
typeObject -
optionsObject -
dataObject
Returns:
(static)UAAcknowledgeableConditionBase.instantiate
-
addressSpace -
conditionTypeId -
options -
data
Parameters:
-
addressSpaceAddressSpace -
conditionTypeIdString | NodeId -
optionsObject -
dataObject
Returns:
(static)UAAlarmConditionBase.instantiate
-
alarmConditionTypeId -
options -
data
Parameters:
-
alarmConditionTypeIdObject -
optionsObject-
inputNode -
optionalscould be "SuppressedState" , "ShelvingState"
-
[maxTimeShelved]Number | Null optionalmax TimeShelved duration (in ms)
-
-
dataObject
(static)UALimitAlarm.instantiate
-
addressSpace -
limitAlarmTypeId -
options -
data
Parameters:
-
addressSpaceAddressSpace -
limitAlarmTypeIdObject -
optionsObject-
inputNode -
optionals -
highHighLimitDouble -
highLimitDouble -
lowLimitDouble -
lowLowLimitDouble
-
-
dataObject
Returns:
_calculateConditionInfo
-
stateData -
isActive -
value -
oldCondition
Parameters:
-
stateDataObjectthe new calculated state of the alarm
-
isActiveBoolean -
valueNumberthe new value of the limit alarm
-
oldConditionConditionInfogiven 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:
-
eventIdObject -
commentObject -
branchObject -
messageObject
_setEnabledState
-
requestedEnabledState
Parameters:
-
requestedEnabledStateBoolean
Returns:
StatusCodes.Good if successful or BadConditionAlreadyEnabled/BadConditionAlreadyDisabled
acknowledgeAndAutoConfirmBranch
-
branch -
comment
Parameters:
-
branchObject -
commentObject
activateAlarm
()
autoConfirmBranch
-
branch -
comment
Parameters:
-
branchObject -
commentObject
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:
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:
-
branchConditionSnapshot
setHighHighLimit
-
value
Parameters:
-
valueFloat
setHighLimit
-
value
Parameters:
-
valueFloat
setLocalTime
-
time
Parameters:
-
timeDate
setLowLimit
-
value
Parameters:
-
valueFloat
setLowLowLimit
-
value
Parameters:
-
valueFloat
setMaxTimeShelved
-
duration
Parameters:
-
durationObject( Duration in Milliseconds)
setReceiveTime
-
time
Parameters:
-
timeDate
setTime
-
time
Parameters:
-
timeDate
Properties
ackedState
TwoStateVariable
acknowledge
UAMethod
confirm
UAMethod
confirmedState
TwoStateVariable
inputNode
UAVariable
dataType is DataType.NodeId
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.
limitState
UAStateMachine
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:
-
eventIdBuffer | Null -
commentLocalizedText -
branchConditionSnapshotraised when the alarm branch has been acknowledged
confirmed
Event Payload:
-
eventIdObject -
commentObject -
eventId raisedObjectwhen the alarm branch has been confirmed
The NodeOPCUA API