Syntax Threshold = _Double
Description This property sets or returns the minimum threshold value for alarm activation. This value is only consider when "Betweem" has been selected as "Activation Condition". Otherwise it will have no effect whatsoever.
Parameter Description
None None
Result Double
Example:
Public Sub AlarmLoading()
Msgbox "Threshold is: " & cstr(ThresholdLow), vbInformation, GetProjectTitle End Sub
ThresholdLow, AlarmThresholdCmdTarget Property
Syntax Threshold = _Double
Description This property sets or returns the minimum threshold value for the alarm activation. This value is only considered when "Between" has been selected as "Activation Condition". This value will have no effect in other cases.
Parameter Description
None None
Result Double
Example:
Public Sub AlarmLoading()
Msgbox "Threshold is: " & cstr(ThresholdLow), vbInformation, GetProjectTitle End Sub
TotalTimeOn, AlarmThresholdCmdTarget Property
Syntax TotalTimeOn
Description This property returns a double value type indicating the total time, expressed in seconds, in which the the alarm remained active in ON status.
Parameter Description
None None
Result Double
Example:
Public Sub Click()
Dim objAlarm As AlarmCmdTarget
Dim objAlarmThreshold As AlarmThresholdCmdTarget Set objAlarm = GetAlarm("Alarm01")
Set objAlarmThreshold = objAlarm.GetAlarmThreshold("Threshold01") MsgBox " TotalTimeOn = " &
CStr(objAlarmThreshold.TotalTimeOn),vbInformation,GetProjectTitle Set objAlarm = Nothing
Set objAlarmThreshold = Nothing End Sub
VariableSeverity, AlarmThresholdCmdTarget Property
Syntax VariableSeverity = _String
Description This property returns or set the name of the variable which defines the alarm threshold's Priority value.
Parameter Description
None None
Result String
Example:
Public Sub Click()
Dim objAlarm As AlarmCmdTarget
Dim objAlarmThreshold As AlarmThresholdCmdTarget Set objAlarm = GetAlarm("AlarmNoReset")
Set objAlarmThreshold = objAlarm.GetAlarmThreshold("NoReset")
MsgBox " VariableSeverity = " & CStr(objAlarmThreshold.VariableSeverity
Set objAlarm = Nothing
Set objAlarmThreshold = Nothing End Sub
VariableThreshold,
AlarmThresholdCmdTarget Property
Syntax VariableThreshold = _String
Description This property sets or returns the name of the variable whose value is used instead of the Threshold property ('Value'). In this way the threshold is made dynamic. When a nothing string is inserted, Movicon will consider the fixed threshold only.
Parameter Description
None None
Result String
Example:
Public Sub AlarmLoading()
Debug.Print "Threshold is " & Threshold End Sub
VariableThresholdLow,
AlarmThresholdCmdTarget Property
Syntax VariableThresholdLow = _String
Description This property sets or returns the name of the variable whose value is used instead of the ThresholdLow property ('Minimum Activation Valor'). In this way the threshold can be made dynamic. When inserting a null string, Movicon will only take the fixed threshold into consideration.
Parameter Description
None None
Result Double
Example:
Public Sub AlarmLoading()
Msgbox "Variable Threshold Low Name is: " & cstr(VariableThresholdLow), vbInformation, GetProjectTitle
End Sub
WriteAccessLevel,
AlarmThresholdCmdTarget Property
Syntax WriteAccessLevel = _Long
Description This property sets or returns the Access Level mask so that the alarm's acknowledge and reset can be exectued. When the Access level mask of the user logged on in that moment does not correspond to that set on the control , the user will not be able to carry out any operations on the commands associated to the alarm. The "FFF" level makes the object accessible in write to any user.
For further information on the "Access Levels" please refer to the paragraph titled "User Levels and Access Levels".
Parameter Description
None None
Result Long
Example:
Public Sub AlarmLoading()
Debug.Print WriteAccessLevel End Sub
6. AlarmWndCmdTarget
OnAckAll, AlarmWndCmdTarget Event
Description This event is notified each time a request is made to acknowledge all alarms displayed in the window.
This function is not supported by the "Alarm Banner"
object.
Parameter Description
bRet As Boolean Enabling on alarm acknowledgement. When set at False this event will not acknowledge the alarms.
OnAckSel, AlarmWndCmdTarget Event
Description Event notified each time a request to acknowledge the alarms selected in the display window.
This function is not supported by the "Alarm Banner"
object.
Parameter Description
bRet As Boolean Enabling on acknowledging selected alarm. When set at False this event will not acknowledge the Alarm.
OnGetHistory, AlarmWndCmdTarget Event
Description Event notified each time a request using the "Get History" button to load the history of an alarm.
Parameter Description
bRet As Boolean Enabling at data retrieval. When set at False this event will not return the alarm's history.
OnHelp, AlarmWndCmdTarget Event
Description Event occurs each time a request is made to display the help file associated to the selected alarm.
Parameter Description
bRet As Boolean Enabling upon opening of Help file. When set at False, this event will not open the help file.
OnCommentSel, AlarmWndCmdTarget Event
Description Event notified each time a request to enter a comment is made for the alarm selected in the display window.
This function is not managed by the "Alarm Banner"
object.
Parameter Description
bRet As Boolean Enabled when comment is inserted. When set to False, this event will cancel the comment request.
OnInsertOrUpdateAlarm, AlarmWndCmdTarget Event
Description Event occurs each time a new alarm is inserted or when the status of the alarm, existing in the display window, is modified.
Parameter Description
AlarmObject As Object Alarm Object Inserted or status changed.
bRet As Boolean Enabling upon inserting an alarm into window. When set at False, this event will not notify window of insertion of new alarm event or the status change event of already existing alarm.