Please enable JavaScript to view this site.

This function provides information about the alarms stored in the alarm history with return of the information in a variable of type string.

Syntax

i32 ah_get_s (i32 ahId, string str [, i32 lenMax=str])

ahId

Number of the ID of the alarm about which you want information (this kind of information is obtained with ah_info())

str

Name of the variable of type string

lenMax

Maximum length of the string. (optional, defaults to the size of the string variable str)

Result

Returns:

Value

Description

0 [ACK_OK]

OK result

107 [NACK_RES_BUSY]

Busy alarm history manager

127 [NACK_READ_ERROR]

Invalid data in retentive memory

133 [NACK_NOT_FOUND]

Alarm history not enabled

143 [NACK_DIFFERENT_DATA]

Requested data has been overwritten by a new alarm

Validity

Rule, Task

Note


If the result is positive, the string obtained has the following format : "n - d(dd) m(mm) y(yyyy) hh:ii:ss alarmText".

Parameter

Description

n

Id of the alarm (only the necessary digits)

dd

Day

mm

Month

yyyy

Year

hh

Time

ii

Minute

ss

Seconds

alarmText

Text of the alarm

Note: You can customize the date and time format via the predefined variable date_format.

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC