Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

APUStartQuery() Function

  • Last UpdatedMar 03, 2021
  • 1 minute read

Sets the date and time limits for records to be processed from the alarm memory and then starts the query.

Category

View

Syntax

[Result=] APUStartQuery(iInstance, iYear, iMonth, iDay, iHour, iMinute);

Arguments

iInstance

The instance of Alarm Printer (0 to 15).

iYear

The number of the year.

iMonth

The number of the month.

iDay

The day of the month.

iHour

The hour number.

iMinute

The minute number.

Remarks

An error occurs if you try to start a query when a query is already running.

If you set all date and time values to 0, all alarms are printed. This is because 0 is interpreted as January 01, 1900 at midnight. The time and dates specified are in local time. A value of -1 for the year sets the date to the current time that the command is processed.

Returns an integer error code.

Example

Status = APUStartQuery(Inst,2007,4,16,22,12);

See Also

APUStartInstance(), APUStopInstance(), APUStopQuery()

TitleResults for “How to create a CRG?”Also Available in