About the error invoking acknowledge method
If you upgrade to version 2.20 of FactoryTalk Alarms and Events and the
FactoryTalk View SE
Invoke command was configured to call the AckAll
or AckPage
methods of the Alarm and Event Summary object, the following error will be generated:Alarmeventsummary1: The number of elements provided DISPARAMS is different from the number of arguments accepted by the method or property.
This error occurs because new parameters were added to the methods. To correct the problem, the optional parameters need to be added to the Invoke commands as follows:
Invoke DisplayName.AlarmEventSummary1.AckAll(1, "")
Invoke DisplayName.AlarmEventSummary1.AckPage(1, "")
In the first release of FactoryTalk Alarms and Events, the
AckAll
and AckPage
methods in the AlarmEventSummary object model display a Comment
dialog box when they are invoked and the program containing the method is paused until the Comment
dialog box is closed. To close the Comment
dialog box, an operator must click OK
.New parameters
In FactoryTalk Alarms and Events version 2.20, new parameters were added to the
AckPage
and AckAll
methods that allow programmers to specify whether or not the Acknowledge Alarm with Comment
dialog box is displayed. If you plan to acknowledge alarms automatically (no operator input), then configure the methods to run without displaying the dialog box (ShowDialog
= FALSE).Syntax
object
.AckAll(
[ShowDialog
as Boolean
], [Comment
as String
])object
.AckPage
([ShowDialog
as Boolean
], [Comment
as String
])Provide Feedback