Please enable JavaScript to view this site.

This function allows an alarm to be entered into the alarm stack.

NOTE: To insert a message into the alarm history, use the ah_log() function.

Syntax

bool alarm_set (i32 nAl [, i32 nAx=0] [, real par1=0] [, real par2=0] [, real par3=0])

nAl

Alarm number (1000-:-1999, 3000-:-3999, 4000-:-8999)

nAx

Axis number in alarm (1÷32). (optional, default 0)

par1

First parameter to be entered. (optional, default 0)

par2

Second parameter to be entered. (optional, default 0)

par3

Third parameter to be entered. (optional, default 0)

Result

Returns:

Value

Description

TRUE

Operation performed correctly

FALSE

Illegal parameters detected (alarm not entered)

Validity

Rule, Task

Note

However, the data types of optional parameters par1, par2, par3 depend on the type of alarm involved.

From RTE 34.24.8 it is no longer possible to use this function to set warnings (9000÷9999)

NOTE: Refer to the user alarm file for alarm text association.

 

  

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