Siemens SINUMERIK 840DE Programming Manual page 66

Hide thumbs Also See for SINUMERIK 840DE:
Table of Contents

Advertisement

Fundamental Principles of NC Programming
2.2 Language elements of the programming language
Note
A message text can be up to 124 characters long and is displayed in two lines
(2*62 characters). Contents of variables can also be displayed in message texts.
Example of message texts
N10 R12=$AA_IW [X]
N20 MSG ("Check position of X axis"<<R12<<)
N ...
N90 MSG ()
Or
N20 MSG ("Check position of X axis"<<$AA_IW[X]<<)
Setting alarms
You can also set alarms in addition to messages in an NC program. Alarms are displayed in
a separate field on the screen display. An alarm always goes hand in hand with a response
from the controller according to the alarm category.
Alarms are programmed by writing the vocabulary word "SETAL" followed by the alarm
number enclosed in round brackets.
The valid range for alarm numbers is between 60,000 and 69,999, whereby 60,000 to 64,999
are reserved for SIEMENS cycles and 65,000 to 69,999 are available to the user.
Note
Alarms are always programmed in a separate block.
Example:
N100 SETAL (65000)
You will find a list of reactions associated with specific alarms in the Installation and Start-up
Guide.
The alarm text must be configured in the MMC.
Programmable cycle alarms
A character string containing up to 4 parameters can be specified in addition to the alarm
number for the predefined subprogram SETAL.
2-20
;Current position of the X axis in R12
;Clear message from N20
;Set alarm no. 65000
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
Fundamentals

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents