Please enable JavaScript to view this site.

This function allows you to check if there is an alarm in the alarm stack (32 locations) by also specifying the value of one or more parameters.

Syntax

i32 is_alarm_par_present (i32 nAl, i32 nAx, u32 parMask, real par1 [, real par2=0] [, real par3=0])

nAl

Alarm number to check for (1-:-9999)

nAx

Axis number in alarm (1-:-32) or 0 if non-axis alarm

parMask

Mask to indicate which parameters are affected:

Bit

Hexadecimal value

Description

0

0x00000001

None.

Use is_alarm_present()

1

0x00000002

par1

2

0x00000004

par2

3

0x00000008

par1 and par2

4

0x00000010

par3

5

0x00000020

par1 and par3

6

0x00000040

par2 and par3

7

0x00000080

par1, par2 and par3

par1

Value of the first alarm parameter

par2

Value of the second alarm parameter. (optional, default 0)

par3

Value of the third alarm parameter. (optional, default 0)

Result

Returns:

Value

Description

<> 0

Alarm present

0

Otherwise

Validity

Rule, Task

Note

 

 

  

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