Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 609 -
------------------------------------------------------------------------------
3.5 Read machining condition file. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
capm_rdmcncond
[Syntax]
#include <data.h>
#include <fwindow.h>
int capm_rdmcncond( int index, struct iodbcapm_cond *buf ) ;
struct iodbcapm_cond {
int index ; /* Machining condition index. */
int dummy ; /* Not used. */
int data ; /* Machining condition file. */
} ;
[Arguments]
index Index number of machining condition file ( =1,..,512).
buf Buffer in which the machining condition data are
stored.
[Return]
0 Successful.
3 Incorrect index number of machining condition file "index",
other than 1,..,512.
6 Super CAP M is not installed.
-1 It has been failed to read machining condition file because
the other application program was updating the machining
condition file.
[Description]
Reads contents of the machining condition file (F.S.FILE) of
Super CAP M.
Specify the index number of machining condition file in "index" with
binary format.
The each items of the machining condition file are stored in "buf"
with signed binary format. (The negative value is represented as 2's
complement.) An "int" value for "0x8000" means that the setting value
is "void".