
4. CONVERSATIONAL MACRO FUNCTION
B–62073E–2/03
86
The following system information can be referenced by conversational
macro by the window function.
1. Alarm information
2. External alarm information
3. Machining parts total number, shift time, cutting time
4. Diagnose information
Conversational macro variable
#8997: System information I.D.
#8998: Axis number
#8999: System information
#8996: Complete code
Method of use
Set the system information I.D. number you desire to reference to #8997.
Further, when system information is dependent on the axis, set the
number of the axis you want to reference to #8998, and then the system
side information can be learnt by reading #8999.
Further, the information of whether or not the read operation to #8996
ended normally will be set. (0 if normal end, –1 if abnormal end)
Example:
Alarm information
1) P/S alarm (foreground) monitoring
#8997=1 ; Alarm system information I.D. is 1
#500=#8999 ; Incorporates alarm information
#500=#500AND2 ;
IF [500EQ0] GOTO 90 ;
Distinguishes if P.S alarm status
#8997=30 ; P/S alarm system information I.D. is 30
#500=#8999 ; Incorporates P.S alarm number
#501=#8996 ; Sets function execution results
N90 M99 ;
If above is set, the P/S alarm number is set to #500. Further, the
information of whether the window function in #501 has
executed normally or not is set.
2) Monitoring axis type OT alarm
(Monitoring stored stroke limit 1 of plus direction of control 1st axis)
#8997=11 ; Axis type OT alarm flag 1 I.D. is 11
#8997=1 ; Axis number
#500=#8999 ; (Incorporates I.D. number 11 contents)
#500=#500AND1 ;
#501=#8996 ; (Sets execution results of function)
N90 M99 ;
If (above) is set, 1 is set to #500 when there is stored stroke limit
1 prohibited area. Further, the information of whether the
window function in #501 has executed normally or not is set.
Machining parts total number
#8997=200 ;(Machining parts total number I.D. is 200)
#500=#8999 ;
#501=#8996 ; (Sets execution results of function)
4.5.18
Conversational Macro
Variable Window
Function