Please enable JavaScript to view this site.

This function provides information about the AM alarm mask, depending on the alarm number and axis number, if any.

Syntax

i32 al2am (i32 nAl , i32 nAx, i32 whichInfo)

nAl

Number of the alarm

nAx

Number of the axis (1-:-32) or 0 if the alarm is non-axis

whichInfo

Type of information about the desired alarm mask(AM):

Value whichInfo

Description

0

Status of the AM bit related to the alarm

1

Index of the AM bit related to the alarm

2

Index bit of the AM relative to the alarm

3

Index bits of the AM related to the alarm, in the form of a mask

Result

Returns:

Condition

Value

Description

Error

-1

Illegal alarm number

-2

Illegal axis number

-3

Type of information requested illegal

-4

The specified alarm is not an axis alarm

-5

The specified alarm is an axis alarm, or no AM is associated

-6

The association to the AM bit is not defined

whichInfo = 0

0

Status of the AM bit related to the low alarm (i.e., alarm not present)

1

State of the AM bit related to the high alarm (i.e., alarm present)

whichInfo = 1

>= 0

Index of the AM bit corresponding to the selected alarm

whichInfo = 2

>= 0

Bit of the index of the AM corresponding to the chosen alarm

whichInfo = 3

>= 0

Bits of the index of the AM corresponding to the chosen alarm, in the form of a mask

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