News CNCnetPDM About us Support  
         
  

CNC_TOOL_MOVE | TOOLMNG

Description

The tool management data number is moved specifying the magazine number and the pot number of the source and the destination.

When Tool Management Function Tool storage position reservation is valid, an empty pot or the origin position registered into the tool which moves can be specified for the moving destination.

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

#include "fwlib32.h" or "fwlib64.h"

FWLIBAPI short WINAPI cnc_tool_move( unsigned short FlibHndl, IODBTLMAG2 *src_mag, IODBTLMAG2 *dest_mag );

Arguments

FlibHndl   [ in ]

Specify the library handle. See "Library handle" for details.

src_mag   [ in ]

Specify the pointer to IODBTLMNG2 structure including the source magazine and pod to be registered.

dest_mag   [ in ]

Specify the pointer to IODBTLMNG2 structure including the destination magazine and pod to be registered. The IODBTLMAG2 structure is as follows.

typedef struct  iodbtlmag2 {
    short magazine;     /* magazine number */
    short pot;          /* pot number */
} IODBTLMAG2;
magazine
specifies magazine number.
(Setting range: 1,..,4, 11,..,14, 21,..,24)
pot
specifies pot number.
(Setting range: According to CNC option and CNC parameter)

Return

EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.

The major error codes are as follows.

Return code Meaning/Error handling
EW_DATA
(5)
The member in the IODBTLMAG2 structure 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
1:error of source magazine number
2:error of source pot number
3:no tool in source magazine and pot
4:error of destination magazine number
5:error of destination pot number
6:There is tool in destination magazine and pot
EW_NOOPT
(6)
No option
The Tool management function 64 pairs, or the Tool management function 240 pairs, or the Tool management function 1000 pairs.
EW_PROT
(7)
Write protection
The Magazine management data table is write protected.
EW_REJECT
(13)
When tool is moved to destination magazine and pot the tool interferes with other tool(When Oversize tools function is effective)

As for the other return codes or the details, see "Return status of Data window function"

CNC option

This function need the following CNC option.

    The Tool management function 64 pairs, or the Tool management function 240 pairs, or the Tool management function 1000 pairs.

For HSSB connection,

    The extended driver/library function are necessary.

For Ethernet connection,

    The Ethernet function and the extended driver/library function are necessary.

    However, in case of Series 16i/18i/21i-B, 0i-F and 30i, the required CNC option is as follows.

    When Embedded Ethernet is used,

      above two optional functions are not required.

    When Ethernet board is used,

      only Ethernet function is required.

CNC parameter

This function is not related to CNC parameter.

CNC mode

This function can be used in any CNC mode.

Available CNC

0i-A 0i-B/C(Note) 0i-D 0i-F 15 15i 16 18 21 16i-A 18i-A 21i-A 16i-B 18i-B 21i-B 30i-A 30i-B
M (Machining)X X X H X X X X X X X X X X X H H
T (Turning) X X X H X - X X X X X X X X X H H
LC (Loader) - - - - - - X X X X X X X X X - -

0i-D0i-F16i18i30i-A30i-B
P (Punch press)X X X X - X
L (Laser) - - X - - X
W (Wire) - - X X X X


Power Mate i-DX
Power Mate i-HX
Power Motion i-AX

"O" : Both Ethernet and HSSB
"E" : Ethernet
"H" : HSSB
"X" : Cannot be used
"-" : None

Note) 0i-C does not support the HSSB function.

Privacy notice

This website uses cookies. By continuing to use it you agree to our privacy policy. 

https://www.inventcom.net/fanuc-focas-library/toolmng/cnc_tool_move
Fanuc Focas Library | ToolMng | cnc_btlfpotsrh
Description Searches the empty pot in the same magazine based on the specified pot position.... [read more]
cnc_btlfpotsrh
Fanuc Focas Library | ToolMng | cnc_delmagazine
Description Deletes the registered Tool management data number from the Magazine management table. This function searches at the Magazine... [read more]
cnc_delmagazine
Fanuc Focas Library | ToolMng | cnc_delmag_property
Description Deletes the magazine property data.... [read more]
cnc_delmag_property
Fanuc Focas Library | ToolMng | cnc_delpot_property
Description This function deletes the pot property data within the range specified by "s_number" and "data_num".... [read more]
cnc_delpot_property
Fanuc Focas Library | ToolMng | cnc_deltool
Description Deletes the Tool management data which is specified by the start data number and the number of the data from the Tool management... [read more]
cnc_deltool
Fanuc Focas Library | ToolMng | cnc_rdmagazine
Description Reads the registered Tool management data number from the Magazine management table.... [read more]
cnc_rdmagazine
Fanuc Focas Library | ToolMng | cnc_rdmag_property
Description Reads the magazine property data.... [read more]
cnc_rdmag_property
Fanuc Focas Library | ToolMng | cnc_rdpot_property
Description This function reads the pot property data within the range specified by "s_number" and "data_num".... [read more]
cnc_rdpot_property
Fanuc Focas Library | ToolMng | cnc_rdtool
Description Reads the Tool management data which is specified by the start data number and the number of the data from the Tool management... [read more]
cnc_rdtool
Fanuc Focas Library | ToolMng | cnc_rdtoolgeom_tlm
Description The tool geometry data of number specified by datanum is read from the tool geometry data number specified by snum.... [read more]
cnc_rdtoolgeom_tlm
Fanuc Focas Library | ToolMng | cnc_rdtool_f2
Description Reads the Tool management data which is specified by the start data number and the number of the data from the Tool... [read more]
cnc_rdtool_f2
Fanuc Focas Library | ToolMng | cnc_regmagazine
Description Registers the Tool management data number to the Magazine management table. This function searches at the Magazine management table... [read more]
cnc_regmagazine
Fanuc Focas Library | ToolMng | cnc_regtool
Description Registers the Tool management data which is specified by the start data number and the number of the data to the Tool... [read more]
cnc_regtool
Fanuc Focas Library | ToolMng | cnc_regtool_f2
Description Registers the Tool management data which is specified by the start data number and the number of the data to the Tool... [read more]
cnc_regtool_f2
Fanuc Focas Library | ToolMng | cnc_reg_toolstrage
Description Storage position of magazine number and pot number is registered or released to tool management data. By specifying the storage position of... [read more]
cnc_reg_toolstrage
Fanuc Focas Library | ToolMng | cnc_wrmagazine
Description Writes the Tool management data number to the entry of the Magazine management table specified by magazine number and pot... [read more]
cnc_wrmagazine
Fanuc Focas Library | ToolMng | cnc_wrmag_property
Description Writes the magazine property data.... [read more]
cnc_wrmag_property
Fanuc Focas Library | ToolMng | cnc_wrpot_property
Description This function writes the pot property data within the range specified by "s_number" and "data_num".... [read more]
cnc_wrpot_property
Fanuc Focas Library | ToolMng | cnc_wrtool
Description Writes the specified Tool management data to the Tool management data table. In case of writing the individual data on the Tool... [read more]
cnc_wrtool
Fanuc Focas Library | ToolMng | cnc_wrtool2
Description Writes the individual data on the Tool management data to the specified Tool management data table.... [read more]
cnc_wrtool2
Fanuc Focas Library | ToolMng | cnc_wrtoolgeom_tlm
Description The tool geometry data of number specified by datanum is written from the tool geometry data number specified by snum.... [read more]
cnc_wrtoolgeom_tlm
Fanuc Focas Library | ToolMng | cnc_wrtool_f2
Description Writes the specified Tool management data to the Tool management data table. In case of writing the individual data on the... [read more]
cnc_wrtool_f2
Fanuc Focas Library | ToolMng | flist_ToolMng
CNC: Function related to tool management data... [read more]
flist_ToolMng
Modified: 2018-06-11