Additional functions
14.10 Alarms (SETAL)
Job planning
688 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
14.10 Alarms (SETAL)
Function
Alarms can be set in an NC program. Alarms are displayed in a separate field at the operator
interface. An alarm always goes hand in hand with a response from the controller according
to the alarm category.
References:
Further information on alarm responses, refer to the Commissioning Manual.
Syntax
SETAL(<alarm number>)
SETAL(<alarm number>,<character string>)
Significance
SETAL
Keyword to program an alarm.
SETAL must be programmed in a separate NC block.
<alarm number>
Type INT variable. Contains the alarm number.
The valid range for alarm numbers lies between 60000 and 69999,
of which 60000 to 64999 are reserved for SIEMENS cycles and
65000 to 69999 are available to users.
When programming user cycle alarms, in addition, a character string
with up to 4 parameters can be specified.
Variable user texts can be defined in these parameters.
However, the following predefined parameters are available:
Parameter Significance
%1 Channel number
%2 Block number, label
%3 Text index for cycle alarms
<character string>
%4 Additional alarm parameters
Note
Alarm texts must be configured in the operator interface.
Example
Program code Comments
...
N100 SETAL (65000) ; Setting alarm No. 65000
...