
FANUC Series 16i/18i/21i-MA/MB/TB TOOL MANAGEMENT FUNCTION A-78614EN
2002.08.08 Edition 04
137
13.7 Delete Magazine management data
Function Name:
cnc_delmagazine
Declaration:
#include "fwlib32.h"
FWLIBAPI short WINAPI cnc_delmagazine(unsigned short FlibHndl,
short *data_num, IODBTLMAG2 *mag);
Description:
Deletes the registered Tool management data number from the Magazine
management table.
This function searches at the Magazine management table using the
magazine number, pot number. And if it finds, it deletes the Tool
management data number from the matched entry.
Arguments:
FlibHndl
Specify the library handle.
See "1.1.3 Library handle" of SPECIFICATION MANUAL OF
DATA WINDOW LIBRARY for details.
data_num
Specify the pointer to the number of the deleting data for
the deletion from the Magazine management table. Set the
number of the deleting data(1...) to the pointed data before
calling this function.
After the execution of this function, *data_num holds the real
deleted number of data.
mag
Specify the pointer to IODBTLMAG2 structure which is used for
searching the Tool management data number to be deleted. The
IODBTLMAG2 structure is as follows.
typedef struct iodbtlmag2 {
short magazine; /* magazine number (1..4) */
short pot; /* pot number */
} IODBTLMAG2;
magazine specifies magazine number.
pot specifies pot 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.