Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 1044 -
------------------------------------------------------------------------------
2. Call CNC window <HILEV>
------------------------------------------------------------------------------
[Name]
cnc_window
[Syntax]
int cnc_window( unsigned int *iodata )
[Arguments]
iodata Input/output data memory.
[Return]
Returns return-code of CNC window. This is same as the content of
iodata[1].
[Description]
Calls CNC window function.
"iodata" is input/output data memory for CNC window function. The
pointer to this memory area is store DS:SI and passed to CNC window
process. The application program sets the required information into
this memory and calls this function.
The return information of CNC window is stored in "iodata".
Work RAM area that CNC window requires (pointed by ES:DI) is provided
by this function itself.
Data structure of input/output memory is generally as follows.
iodata[0] Function code
iodata[1] Return code
iodata[2] Data length
iodata[3] Data number
iodata[4] Data attribute
iodata[5] General data buffer
and after
For example, you call this function as below to call "Read alarm
status" function.
unsigned int iodata[11] ;
iodata[0] = 23 ;
cnc_window( iodata ) ;
The CNC alarm information will be stored in "iodata[5]".