
B. WINDOW FUNCTION DESCRIPTION
(PMC–PA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B–61863E/15
APPENDIX
1240
[Description]
Data displayed on the diagnosis data screen of the CNC can be read
directly from the CNC via the FANUC bus.
This function is basically the same as the function described in Section
B.4.22 ”Reading Diagnosis Data,” except that the function code is 156
and some of the completion codes are different.
[Input data structure]
Top address + 0
2
4
6
8
10
(Function code)
156
(Completion code)
—
(Need not be set)
(Data length)
—
(Need not be set)
(Data number)
N
(N: Diagnosis No.)
(Data attribute)
M
(M: Axis number)
(Data area)
—
(Need not be set)
XX
42
M = 0 : No axis
M = 1 to n : Specific axis
M = –1 : All axes
[Completion codes]
0 : Diagnosis data has been read normally from the CNC.
3 : The diagnosis No. specified to be read is invalid.
4 : A value other than 0, –1, and 1 to n (number of axes) was specified
for the data attribute.
6 : An option required for using the diagnosis data to be read, such
as the remote buffer option, is not provided.
B.4.43
Reading Diagnosis
Data (not available for
Power Mate–D/F,
Series 21–TA)