13. Program Support Functions
13.5 User Macro Specifications
327
Alarm (#3000)
The NC system can be forcibly set to the alarm state by using variable number #3000.
Format
#3000 = 70 (CALL#PROGRAMMER#TEL#530) :
Any alarm number from 1 to 9999 can be specified.
The alarm message must be less than 31 characters long.
"NC alarm 3 (program error)" signal will be output.
The "P277" user macro alarm message appears in the <alarm> column on diagnosis screen 1
while the alarm number and alarm message CALL #PROGRAMMER #TEL#530 is indicated in the
<operator message>.
Example of program (alarm when #1 = 0)
IF [#1 NE 0] GOTO 100 ;
#3000=70
(CALL#PROGRAMMER#TEL#530) ;
N100
<Alarm>
P277 : Macro alarm message
<Operator message>
CALL#PROGRAMMER#TEL#530 70
Stops with
NC alarm
(Note 1)
Alarm number 0 is not displayed and any number exceeding 9999 cannot be indicated.
(Note 2)
The characters following the first alphabet letter in the right member is treated as the
alarm message. Therefore, a number cannot be designated as the first character of an
alarm message. It is recommended that the alarm messages be enclosed in round
parentheses.
70
: Alarm number
CALL#PROGRAMMER#TEL#530
: Alarm message