
FANUC Series 16i/18i/21i-MA/MB/TB TOOL MANAGEMENT FUNCTION A-78614EN
2002.08.08 Edition 04
141
13.9 Write individual data of Magazine management data
Function Name:
cnc_wrmagazine
Declaration:
#include "fwlib32.h"
FWLIBAPI short WINAPI cnc_wrmagazine(unsigned short FlibHndl,
short magazine, short pot,
short tool_index);
Description:
Writes the Tool management data number to the entry of the Magazine
management table specified by magazine number and pot number.
Arguments:
FlibHndl
Specify the library handle.
See "1.1.3 Library handle" of SPECIFICATION MANUAL OF
DATA WINDOW LIBRARY for details.
magazine
Specify magazine number.
pot
Specify pot number.
tool_index
Specify the Tool management data number.
Return: EW_OK is returned on successful completion, otherwise any value except
EW_OK is returned. The major error codes are as follows.
(As for the details, see "1.1.5 Return status of Data window function" of
SPECIFICATION MANUAL OF DATA WINDOW LIBRARY.)
--------------------------------------------------------------
Return code Meaning/Error handling
--------------------------------------------------------------
EW_BUSY Other users (such as PMC) have accessed to the same
data window.
Try this function again.
EW_DATA The argument is invalid.
In order to get more information for this err_no
return value, execute cnc_getdtailerr() function.
The following detail status will be set onto the member,
err_no of OBDERR structure.
0: error except EW_DATA
21: error of magazine number
22: error of pot number
23: error of tool management data number
EW_NOOPT No option
The Tool management function is necessary.