News CNCnetPDM About us Support  
       
  

CNC_GETLIBOPT | HANDLE

TOP

Description

Reads the current status of FOCAS2 library's optional specifications.

The readable options are as follows.

Value(optname) Type Default Meaning
LIB_MODE(0) long 0 Gets the advanced mode(0) or the traditional mode(1).
MOVE_RDPRGPTR(1) long 1 Gets if the execution pointer would be moved(1) or not moved(0) after invoking cnc_rdpdf_line function.

(As for the advanced/traditional mode, see "FS16i compatible mode")

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

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

FWLIBAPI short WINAPI cnc_getlibopt( unsigned short FlibHndl, long optname, const char *optval, long *optlen);

Arguments

FlibHndl   [ in ]

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

optname   [ in ]

Specify the kind of the option to be stored.

optval   [ out ]

Specify the pointer to the buffer to be stored the data.

optlen   [ in/out ]

Specify the pointer to the variable which shows the number of bytes to be stored. Set the number of bytes to be read to this variable (*optlen). After reading, the number of bytes actually read is set in this variable(*optlen).

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_LENGTH
(2)
Data block length error
Size(optlen) is wrong.
EW_ATTRIB
(4)
Data attribute error
Kind of the option(optname) is wrong.

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

CNC option

For HSSB connection,

    The extended driver/library function is necessary.

For Ethernet connection,

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

    However, in case of Series 0i-F, 30i and PMi-A, 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.

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 H H X X X X X X X X X X X H H
T (Turning) X X H 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 H X X - X
L (Laser) - - X - - X
W (Wire) - - X X X X


Power Mate i-DX
Power Mate i-HX
Power Motion i-AH

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

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

See Also

cnc_setlibopt   cnc_rdpdf_line  

Privacy notice

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

https://www.inventcom.net/fanuc-focas-library/handle/cnc_getlibopt

Fanuc Focas Library | Handle | cnc_allclibhndl

Allocates the library handle which is used by the Data window library.... [read more]
Fanuc Focas Library | Handle | cnc_allclibhndl

Fanuc Focas Library | Handle | cnc_allclibhndl2

Allocates the library handle to the specified node number.... [read more]
Fanuc Focas Library | Handle | cnc_allclibhndl2

Fanuc Focas Library | Handle | cnc_allclibhndl3

Allocates the library handle and connects to CNC that has the specified IP address or the Host Name. Before executing this function,... [read more]
Fanuc Focas Library | Handle | cnc_allclibhndl3

Fanuc Focas Library | Handle | cnc_freelibhndl

Frees the library handle which was used by the Data window library.... [read more]
Fanuc Focas Library | Handle | cnc_freelibhndl

Fanuc Focas Library | Handle | cnc_rdnodeinfo

Reads the specified node information of the HSSB.... [read more]
Fanuc Focas Library | Handle | cnc_rdnodeinfo

Fanuc Focas Library | Handle | cnc_rdnodenum

Reads the number of node of the HSSB.... [read more]
Fanuc Focas Library | Handle | cnc_rdnodenum

Fanuc Focas Library | Handle | cnc_setdefnode

Sets the default node number which is allocated by... [read more]
Fanuc Focas Library | Handle | cnc_setdefnode

Fanuc Focas Library | Handle | cnc_setlibopt

Changes FOCAS2 library's optional specifications dynamically. The changeable options are... [read more]
Fanuc Focas Library | Handle | cnc_setlibopt

Fanuc Focas Library | Handle | cnc_settimeout

Changes timeout value, which is specified at allocating the library handle.... [read more]
Fanuc Focas Library | Handle | cnc_settimeout

Fanuc Focas Library | Handle | flist_Handle

CNC: Function Reference related to library handle, node... [read more]
Fanuc Focas Library | Handle | flist_Handle
Modified: 2023-12-05