Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 1003 -
Generally the structure of Input/Output data area is as follows.
(1) Case that function code l.e. 255,
iodata[0] Function code
iodata[1] Return code
iodata[2] Data length
iodata[3] Data number
iodata[4] Data attribute
iodata[5]
and later Data area
(2) Case that function code g.e. 256,
iodata[0] Function code
iodata[1] Return code
iodata[2] Data length
*(long *)&iodata[3] Data number 1
iodata[5] Data attribute
*(long *)&iodata[6] Data number 2
*(long *)&iodata[8] Data address
Example) Following is the programming for calling "Read Alarm Status"
function.
unsigned int iodata[11] ;
iodata[0] = 23 ;
cnc_windowma( iodata ) ;
As the result the alarm status of CNC is returned in "iodata[5]".
This function is used only for calling CNC window function, so it is
not possible to call out such special kind of functions as shown
below.
(1) Output NC program to be registered. (cnc_download)
(2) Input NC program. (cnc_upload)
(3) Read program directory. (cnc_rdprogdir)
(4) Read alarm information. (cnc_rdalminfo)
(5) Set path index (multi-path system). (cnc_setpath)
(6) Get path index (multi-path system). (cnc_getpath)