Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 491 -
[Description]
Reads the contents of data displayed in the diagnostics screen of CNC.
Data types of CNC diagnostics data are as follows. The data types of
diagnostics data are different for every diagnostic number.
Data type Use Byte size
-----------------------+-------------------------------+------------
Byte data 1-byte data is displayed. 1
Word data 2-byte data is displayed. 2
2-Word data 4-byte data is displayed. 4
The data which is displayed with bit format in CNC's diagnostics screen
is byte data.
In case of reading any axis type diagnostics data, either data of one
specified axis or data of all axes can be read.
Refer "MAINTENANCE MANUAL" of CNC for details of each diagnostics
data.
Specify the diagnostic number in "number" with binary format.
Specify one of following values corresponding with each diagnostic
data as axis number in "axis".
axis Diagnostics data type
-----------------------+---------------------------------
0 Ordinary (none axis type) data
-1 All axes data of axis type data
1,..,amount of One specified axis data of
controlled axis axis type data
The diagnostics data of none axis type data or the axis type data
which was read for one specified axis is stored in
"buf.u.cdata/idata/ldata". The axis type data which were read for all
axes are stored in "buf.u.cdatas/idatas/ldatas".
The data format depends on each diagnostics data. The format of
Byte/Word/2-Word data is generally signed binary.
This function reads the "raw" diagnostics data. In case of reading bit
data, also the masked bit on the CNC's diagnostics screen can be read
without masking. Therefore, there may be difference between the
contents of displayed data on the CNC's screen and ones read by this
function.
Reference
~~~~~~~~~
The types of the diagnostics data on the CNC's screen.
Diagnostic number Type
-----------------------+---------------
000 - 006 Byte
010 - 015 Byte
020 - 025 Byte
030 - 031 Byte
200 - 204 Byte axis
280 Byte axis
300 - 302 2-Word axis
380 - 381 Word axis
400 - 402 Byte
408 - 409 Byte
410 - 413 Word
414 - 416 2-Word
417 Word
418 2-Word