
6.MACRO EXECUTOR FUNCTION B-63943EN-2/01
- 252 -
Example 1
Alarm information
(1) PS alarm monitoring
#8998=1 ; → The system information
ID for alarms is 1.
#500=#8999 ; → Acquires alarm
information.
#500=#500 AND 8 ; → Checks for a PS alarm
condition.
IF[#500EQ0]GOTO 90 ;
#8998=11 ; → The system information
ID for PS alarms is 11.
#500=#8999 ; → Acquires a PS alarm
number.
#501=#8996 ; → Sets the result of
executing this function.
N90 M99 ;
When these steps are executed, #500 is set with a
PS alarm number, then #501 is set with information
about whether the window function was executed
normally.
(2) OT alarm monitoring
(monitoring stored stroke limit 1 for the positive
direction of the first controlled axis)
#8998= 28 ; → The ID for axis-type OT
alarm flag 1 is 28.
#8997= 1 ; → Axis number (first axis)
#500=#8999 ; → Acquires the contents of
ID No. 28.
#500=#500 AND 1 ;
#501=#8996 ; → Sets the result of
executing this function.
N90 M99 ;
When these steps are executed, #500 is set with 1
if the tool is in the forbidden area for stored stroke
limit 1. Then #501 is set with information about
whether the window function was executed
normally.