NewsCNCnetPDMAbout usSupport
  

CNC_PDF_SEARCHWORD | PROGRAM

Description

Searches the string within the NC program.

The basic order to search is as follows.

The conditions of the function about CNC mode and the kind of programare as follows.

EDIT modeMDI modeOther mode
MDI program ×O×
Selected program O××
Not selected program OOO
O: Available / ×: Not available (The return code is EW_MODE)

This function works normally if OP signal is 1 but STL signal is 0 (for example, feed hold stopping, single block stopping, etc).

The return value of this function and the position of the execution pointer change as follows by the existence of the playback option.
Upper : With the playback option
Lower : Withouit the playback option

1) Search of the word in selected program (main program).

ModeMEMMEMEDITEDITMDIJOG/HNDLOthers
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Stop/Halt
(OP=1,STL=0)
Idle mode
(OP=0,STL=0)
Idle mode
(OP=0,STL=0)
Idle mode
(OP=0,STL=0)
Idle mode
(OP=0,STL=0)
Return value of cnc_pdf_searchwordEW_REJECTEW_OK EW_OKEW_OKEW_OK EW_OK EW_REJECT
EW_MODE EW_MODEEW_MODEEW_MODE
Pointer movement of selected programNoneMovesMovesMovesMoves(*1)MovesNone
None None(*1)None
Pointer movement in the executing screenNoneMovesMovesMovesMoves(*1)MovesNone
None None(*1)None
(*1) The mode was switched from MDI to EDIT/MEM and the pointer position was confirmed.

2) Search of the word in unselected program (not main program).

ModeMEMMEMEDITEDITMDIJOG/HNDLOthers
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Stop/Halt
(OP=1,STL=0)
Idle mode
(OP=0,STL=0)
Idle mode
(OP=0,STL=0)
Idle mode
(OP=0,STL=0)
Idle mode
(OP=0,STL=0)
Return value of cnc_pdf_searchword EW_OKEW_OKEW_OKEW_OKEW_OKEW_OKEW_OK
Pointer movement of selected programNone None None None None None None
Pointer movement in the executing screen None None None None None None None

3) Search of the word in MDI program.

ModeMDIMDIMDIOthers
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Idle mode
(OP=0,STL=0)
Idle mode
(OP=0,STL=0)
Return value of cnc_pdf_searchword EW_REJECTEW_OKEW_OKEW_MODE
Pointer movement of selected programNone None(*2) Moves None
Moves
Pointer movement in the executing screen None Moves Moves None
None(*3)
(*2) In cnc_pdf_rdactpt though it doesn't move, running is restarted from the block where the searched word exists.
(*3) In the executing screen though it doesn't move, running is restarted from the block where the searched word exists.

4) MEM running:Search of the word in main program during subprogram call(M98).

ModeMEMMEMEDIT
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Stop/Halt
(OP=1,STL=0)
Return value of cnc_pdf_searchword EW_OKEW_OKEW_OK
Pointer movement of Main program
(Execution position at returning from subprogram)
None None None

5) MEM running:Search of the word in main program during macro program call(G65).

ModeMEMMEMEDIT
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Stop/Halt
(OP=1,STL=0)
Return value of cnc_pdf_searchword EW_OKEW_OKEW_OK
Pointer movement of Main program
(Execution position at returning from macro program)
None None None

6) MEM running:Search of the word in main program during external subprogram call(M198).

ModeMEMMEMEDIT
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Stop/Halt
(OP=1,STL=0)
Return value of cnc_pdf_searchwordEW_OKEW_OK EW_OK
EW_MODE
Pointer movement of Main program
(Execution position at returning from external subprogram)
None Moves(*4)Moves(*4)
None
(*4) It moves to the block where the searched word exists.

7) MEM running:Search of the word in subprogram during subprogram call(M98).

ModeMEMMEMEDIT
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Stop/Halt
(OP=1,STL=0)
Return value of cnc_pdf_searchwordEW_REJECTEW_OK EW_OK
EW_MODE
Pointer movement of Sub programNone MovesMoves
None

8) MEM running:Search of the word in macro program during macro program call(G65).

ModeMEMMEMEDIT
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Stop/Halt
(OP=1,STL=0)
Return value of cnc_pdf_searchwordEW_REJECTEW_OK EW_OK
EW_MODE
Pointer movement of Macro programNone MovesMoves
None

9) MDI running:Search of the word in MDI program during subprogram call(M98).

ModeMDIMDI
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Return value of cnc_pdf_searchwordEW_REJECTEW_DATA(*5)
Pointer movement of MDI programNone Moves(*6)
(*5) EW_DATA is the return value of cnc_pdf_cnc_pdf_searchresult(The return value of nc_pdf_searchword is EW_OK).
(*6) It moves to the end block of the program of MDI.

10) MDI running:Search of the word in MDI program during macro program call(G65).

ModeMDIMDI
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Return value of cnc_pdf_searchwordEW_REJECTEW_DATA(*7)
Pointer movement of MDI programNone Moves(*8)
(*7) EW_DATA is the return value of cnc_pdf_cnc_pdf_searchresult(The return value of nc_pdf_searchword is EW_OK).
(*8) It moves to the end block of the program of MDI.

11) MDI running:Search of the word in MDI program during external subprogram call(M198).

ModeMDIMDI
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Return value of cnc_pdf_searchwordEW_REJECTEW_OK
Pointer movement of MDI programNone Moves(*9)
(*9) It moves to the block where the searched word exists.

12) MDI running:Search of the word in sub program during subprogram call(M98).

ModeMDIMDI
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Return value of cnc_pdf_searchwordEW_REJECTEW_OK
Pointer movement of MDI programNone None

13) MDI running:Search of the word in macro program during macro program call(G65).

ModeMDIMDI
Operation statusAuto run
(OP=1,STL=1)
Stop/Halt
(OP=1,STL=0)
Return value of cnc_pdf_searchwordEW_REJECTEW_OK
Pointer movement of MDI programNone None

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

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

FWLIBAPI short WINAPI cnc_pdf_searchword(unsigned short FlibHndl, char *prog_name, unsigned long line_no, unsigned long search_type,unsigned long search_direct, unsigned long repeat, char* buffer );

Arguments

FlibHndl   [ in ]

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

prog_name   [ in ]

Program path makes of the "drive name","path name" and "file name".
Please refer to "General Description (Specifying the folder and file name for FS30i, 0i-D/F and PMi-A.)" for details of the file name.
If the value of "prog_name" is NULL, the previous progaram name is specifed.
When you use this function for the MDI program , you have to be specifed the "MDI".

line_no   [ in ]

Specify the line number to search from.
When you search from the first line of a program, you have to specify 0.
When you specify other than the existing line number, this function never returns error result as the return code.
In this case, next cnc_pdf_searchresult function would return EW_NUMBER error.

type   [ in ]

Specify the type of the search operation.

0:Character search (Search the one address character.)
1:Word search (Search the string by word basis.)
2:Last line search (Search the bottom of line)

When you commands "Character search", you have to set the only one address character as the target string.
If you set except the address character or more than two characters, this function returns EW_DATA error.

When you commands "Word search" for the only one address character, you have no error and the address character is going to be searched.

When you commands "Last line search", this function ignores the parameters direct, repeat and prog_data.

direct   [ in ]

Specify the direction to search.

0:Search towards the top of the program.
1:Search towards the bottom of the program.

repeat   [ in ]

Specify the limitation of times the string is found when there are many strings matching within the program.
If you specify 0, this function returns EW_DATA error.

prog_data   [ in ]

Specify the pointer to the buffer holding the target string to search.
It is a NULL terminated ASCII string. The size of string, including NULL character, must be within 128. If it were more than 128, this function would return EW_DATA error.

The first character of the string must be an address character (G, F, etc).
You cannot search for the macro string or the characters in the macro string.
After the address character, the next character must be a number, '+', '-' or '-'.
If you use one of the following characters, you get EW_DATA error as the return code.

  • Except the available code for CNC
  • The small letter of alphabets
  • Address 'O' or the string consisted of 'O' + program number
  • '%'(EOR)

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_BUSY
(-1)
Busy
CNC is searching the program text right now.
EW_DATA
(5)
Data error
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 ODBERR structure.
1 : The program name(prog_name) error
3 : The search type(search_type) error
4 : The search direction(search_direct) error
5 : The repeat count(repeat) error
6 : The size of string error
7 : The content of the string error
EW_NOOPT
(6)
No option
The extended driver/library function is necessary.
EW_PROT
(7)
Write protection in CNC side
CNC parameter is a state of write-protection(O8000-/O9000- protection, encoding).
EW_MODE
(12)
CNC mode error
EW_REJECT
(13)
CNC execution denied
- CNC is in the emergency stop.

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.

CNC parameter

This function is not related to CNC parameter.

This function is related to the following CNC option.
Playback

CNC mode

See the above description.

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 O O X X X X X X X X X X X O O
T (Turning) X X O O X - X X X X X X X X X O O
LC (Loader) - - - - - - X X X X X X X X X - -

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


Power Mate i-DX
Power Mate i-HX
Power Motion i-AO

"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_rdpdf_line   cnc_wrpdf_line   cnc_del_pdfline   cnc_pdf_searchresult  

Privacy notice

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

https://www.inventcom.net/fanuc-focas-library/program/cnc_pdf_searchword

Fanuc Focas Library | Program | cnc_buff

Reads the number of empty buffers used for downloading/verification. If there is no space for buffer, this function... [read more]
Fanuc Focas Library | Program | cnc_buff

Fanuc Focas Library | Program | cnc_cdnc

Sends NC command data to CNC(for DNC operation). When the data processing on the CNC side is delayed and the next data cannot be transferred,... [read more]
Fanuc Focas Library | Program | cnc_cdnc

Fanuc Focas Library | Program | cnc_cdownload

Outputs NC program to be registered(downloading). When the data processing on the CNC side is delayed and the next data... [read more]
Fanuc Focas Library | Program | cnc_cdownload

Fanuc Focas Library | Program | cnc_condense

Condenses the specified program or all programs.... [read more]
Fanuc Focas Library | Program | cnc_condense

Fanuc Focas Library | Program | cnc_copyprog

Copy the NC program.... [read more]
Fanuc Focas Library | Program | cnc_copyprog

Fanuc Focas Library | Program | cnc_cupload

Read NC program registered on the tape memory in CNC (program memory). As for the Data window interface, this function is... [read more]
Fanuc Focas Library | Program | cnc_cupload

Fanuc Focas Library | Program | cnc_cverify

Outputs NC program to be compared with already registered one to CNC. When the data processing on the CNC side is delayed and the next... [read more]
Fanuc Focas Library | Program | cnc_cverify

Fanuc Focas Library | Program | cnc_delall

Deletes all NC programs registered in CNC. This function is a function equal with all NC program deletions by O-9999.... [read more]
Fanuc Focas Library | Program | cnc_delall

Fanuc Focas Library | Program | cnc_delete

Deletes the specified NC program registered in CNC. The program which is executed or selected in foreground by CNC cannot be... [read more]
Fanuc Focas Library | Program | cnc_delete

Fanuc Focas Library | Program | cnc_delprogline

Deletes the NC program by line basis. When you specify the line including O number(ex.Oxxxx), this function deletes the character after O number, but... [read more]
Fanuc Focas Library | Program | cnc_delprogline

Fanuc Focas Library | Program | cnc_delrange

Deletes the specified NC program(area specified) registered in CNC. When the running program is included within the range of the specified... [read more]
Fanuc Focas Library | Program | cnc_delrange

Fanuc Focas Library | Program | cnc_dnc

Sends NC command data to CNC(for DNC operation). When the data processing on the CNC side is delayed and the data cannot be transferred,... [read more]
Fanuc Focas Library | Program | cnc_dnc

Fanuc Focas Library | Program | cnc_dnc2

Outputs the NC part program for DNC operation or M198 operation to CNC. This function outputs the characters of NC program as long as... [read more]
Fanuc Focas Library | Program | cnc_dnc2

Fanuc Focas Library | Program | cnc_dncend

Notifies the end of DNC operation to CNC. Execute this stopping command after the CNC's operation has been completed and reset.... [read more]
Fanuc Focas Library | Program | cnc_dncend

Fanuc Focas Library | Program | cnc_dncend2

Notifies the termination of outputting NC part program for DNC operation or M198 operation to the CNC.... [read more]
Fanuc Focas Library | Program | cnc_dncend2

Fanuc Focas Library | Program | cnc_dncstart

It is possible to get CNC to run an NC program (NC command data), which is made by the application program, directly (DNC operation).... [read more]
Fanuc Focas Library | Program | cnc_dncstart

Fanuc Focas Library | Program | cnc_dncstart2

This function returns whether DNC operation or M198 operation is being executed or not. This function returns EW_OK in case that DNC... [read more]
Fanuc Focas Library | Program | cnc_dncstart2

Fanuc Focas Library | Program | cnc_download

Outputs NC program to be registered(downloading). When the data processing on the CNC side is delayed and the data cannot be... [read more]
Fanuc Focas Library | Program | cnc_download

Fanuc Focas Library | Program | cnc_download3

Output NC data to be registered (downloading). This function outputs the characters of NC program as long as it is specified by... [read more]
Fanuc Focas Library | Program | cnc_download3

Fanuc Focas Library | Program | cnc_download4

Output NC data to be registered (downloading). This function outputs the characters of NC program as long as it is specified by... [read more]
Fanuc Focas Library | Program | cnc_download4

Fanuc Focas Library | Program | cnc_dwnend

Notifies the end of downloading NC program to CNC. (This function must be executed after... [read more]
Fanuc Focas Library | Program | cnc_dwnend

Fanuc Focas Library | Program | cnc_dwnend3

Notifies the end of downloading NC data to CNC. (This function must be executed after... [read more]
Fanuc Focas Library | Program | cnc_dwnend3

Fanuc Focas Library | Program | cnc_dwnend4

Notifies the end of downloading NC data to CNC. (This function must be executed after... [read more]
Fanuc Focas Library | Program | cnc_dwnend4

Fanuc Focas Library | Program | cnc_dwnstart

Requests CNC to start downloading NC program. (This function must be executed before... [read more]
Fanuc Focas Library | Program | cnc_dwnstart

Fanuc Focas Library | Program | cnc_dwnstart3

Notifies the start of uploading NC data (NC program, tool offset, etc.) to the internal logic of the Data window library.... [read more]
Fanuc Focas Library | Program | cnc_dwnstart3

Fanuc Focas Library | Program | cnc_dwnstart4

Notifies the start of uploading NC data (NC program, tool offset, etc.) to the internal logic of the Data window library.... [read more]
Fanuc Focas Library | Program | cnc_dwnstart4

Fanuc Focas Library | Program | cnc_exeprgname

Reads full path name of the program which is being currently executed in CNC. When the CNC is stopping, the name of the executed program is... [read more]
Fanuc Focas Library | Program | cnc_exeprgname

Fanuc Focas Library | Program | cnc_exeprgname2

Reads full path name of the program which is being currently executed in CNC. When the CNC is stopping, the name of the executed program is... [read more]
Fanuc Focas Library | Program | cnc_exeprgname2

Fanuc Focas Library | Program | cnc_mergeprog

This function inserts another program(dst_prog) in specified program(src_prog). The insertion position can select a specified line or the last line. This... [read more]
Fanuc Focas Library | Program | cnc_mergeprog

Fanuc Focas Library | Program | cnc_pdf_add

Creates the folder or file under the specified folder. Execution of this function is kept waiting when CNC is in... [read more]
Fanuc Focas Library | Program | cnc_pdf_add

Fanuc Focas Library | Program | cnc_pdf_cond

Rearranges the contents of the program. In other words, this function condenses the program. Execution of... [read more]
Fanuc Focas Library | Program | cnc_pdf_cond

Fanuc Focas Library | Program | cnc_pdf_copy

Copies the specified program. The program name is specified according to the following format. //Drive Name/Filder... [read more]
Fanuc Focas Library | Program | cnc_pdf_copy

Fanuc Focas Library | Program | cnc_pdf_del

Deletes the folder or file under the specified folder. Execution of this function is kept waiting when CNC is in editing... [read more]
Fanuc Focas Library | Program | cnc_pdf_del

Fanuc Focas Library | Program | cnc_pdf_delall

All programs in the specified folder are deleted. In the following cases, the program is not deleted.... [read more]
Fanuc Focas Library | Program | cnc_pdf_delall

Fanuc Focas Library | Program | cnc_pdf_delline

Deletes the NC program by line basis. When you specify the line including a program file name(ex.Oxxxx or <xxxx>), this function deletes the... [read more]
Fanuc Focas Library | Program | cnc_pdf_delline

Fanuc Focas Library | Program | cnc_pdf_move

Moves the specified program. The move process cannot be executed at the following conditions: Source program... [read more]
Fanuc Focas Library | Program | cnc_pdf_move

Fanuc Focas Library | Program | cnc_pdf_rdactpt

Get the actual execution pointer in MDI, MEM and EDIT, TJOG, THND mode. The restrictions are as follows. When this function works... [read more]
Fanuc Focas Library | Program | cnc_pdf_rdactpt

Fanuc Focas Library | Program | cnc_pdf_rdmain

Reads the file information that is select currently as the main program.... [read more]
Fanuc Focas Library | Program | cnc_pdf_rdmain

Fanuc Focas Library | Program | cnc_pdf_rename

Renames the folder or file under the specified folder. Execution of this function is kept waiting when CNC is in editing... [read more]
Fanuc Focas Library | Program | cnc_pdf_rename

Fanuc Focas Library | Program | cnc_pdf_searchresult

Gets the result of cnc_pdf_searchword... [read more]
Fanuc Focas Library | Program | cnc_pdf_searchresult

Fanuc Focas Library | Program | cnc_pdf_slctmain

Selects the file under the specified folder as the main program. Execution of this function is kept waiting when CNC is in... [read more]
Fanuc Focas Library | Program | cnc_pdf_slctmain

Fanuc Focas Library | Program | cnc_pdf_wractpt

Sets the execution pointer of the NC program for the MDI or Memory operation. If there are some blocks that CNC has already read, these blocks will be... [read more]
Fanuc Focas Library | Program | cnc_pdf_wractpt

Fanuc Focas Library | Program | cnc_rdactpt

Get the actual execution pointer in MDI, MEM and EDIT, TJOG, THND mode. When this function works in DNC/M198 and RISC... [read more]
Fanuc Focas Library | Program | cnc_rdactpt

Fanuc Focas Library | Program | cnc_rdblkcount

Reads the value of block counter.... [read more]
Fanuc Focas Library | Program | cnc_rdblkcount

Fanuc Focas Library | Program | cnc_rddncdgndt

Diagnosis data regarding the output of downloading DNC program is returned. The purpose of this function is the... [read more]
Fanuc Focas Library | Program | cnc_rddncdgndt

Fanuc Focas Library | Program | cnc_rdexecprog

Reads the contents of NC program being executed on CNC. In case of 15, 0i-F, 30i and PMi-A, the acquired character string is a analyzed character... [read more]
Fanuc Focas Library | Program | cnc_rdexecprog

Fanuc Focas Library | Program | cnc_rdexecpt

When the CNC is MDI and MEM mode(In case of CNC is running), the program number and block number of the executed program is acquired. When... [read more]
Fanuc Focas Library | Program | cnc_rdexecpt

Fanuc Focas Library | Program | cnc_rdmdipntr

Reads the execution pointer information for MDI operating program. The content which can be acquired is the following items.... [read more]
Fanuc Focas Library | Program | cnc_rdmdipntr

Fanuc Focas Library | Program | cnc_rdmdiprgstat

The following information as a state of the MDI program is got. 1) Existence of MDI program 2)... [read more]
Fanuc Focas Library | Program | cnc_rdmdiprgstat

Fanuc Focas Library | Program | cnc_rdpdf_alldir

Reads the file information under the specified folder. Execution of this function is kept waiting when CNC is in... [read more]
Fanuc Focas Library | Program | cnc_rdpdf_alldir

Fanuc Focas Library | Program | cnc_rdpdf_curdir

Reads the information of current folder. Execution of this function is kept waiting when CNC is in editing(including the... [read more]
Fanuc Focas Library | Program | cnc_rdpdf_curdir

Fanuc Focas Library | Program | cnc_rdpdf_drive

Reads the information of Program memory drive. Execution of this function is kept waiting when CNC is in editing(including... [read more]
Fanuc Focas Library | Program | cnc_rdpdf_drive

Fanuc Focas Library | Program | cnc_rdpdf_inf

Reads the information Program memory file on the specified drive. Execution of this function is kept waiting when CNC is... [read more]
Fanuc Focas Library | Program | cnc_rdpdf_inf

Fanuc Focas Library | Program | cnc_rdpdf_line

Reads the NC program by line basis. This function tries to read the amount of lines which is specified by (*line_len), but when the actual read character... [read more]
Fanuc Focas Library | Program | cnc_rdpdf_line

Fanuc Focas Library | Program | cnc_rdpdf_pglockstat

The numbers of program and the program name is got which setted the protection of running/editing by... [read more]
Fanuc Focas Library | Program | cnc_rdpdf_pglockstat

Fanuc Focas Library | Program | cnc_rdpdf_subdir

Reads the information of subfolder under the specified folder. Execution of this function is kept waiting when CNC is in... [read more]
Fanuc Focas Library | Program | cnc_rdpdf_subdir

Fanuc Focas Library | Program | cnc_rdpdf_subdirn

Reads the number of subfolders/files under the specified folder.... [read more]
Fanuc Focas Library | Program | cnc_rdpdf_subdirn

Fanuc Focas Library | Program | cnc_rdpglockstat

The numbers of program and the program number is got which setted the protection of running/editing by... [read more]
Fanuc Focas Library | Program | cnc_rdpglockstat

Fanuc Focas Library | Program | cnc_rdprgdirtime

Reads specified number of Program Number,Comment and Processing time data of the registered programs in the CNC,... [read more]
Fanuc Focas Library | Program | cnc_rdprgdirtime

Fanuc Focas Library | Program | cnc_rdprgnum

Reads program number(modal O number) of the program which is being currently selected in CNC. As for Series 15i, 16/18/21, 16i/18i/21i,... [read more]
Fanuc Focas Library | Program | cnc_rdprgnum

Fanuc Focas Library | Program | cnc_rdproctime

Reads processing time stamp data of CNC programs measured by the CNC. When no processing time stamp data is available, 0... [read more]
Fanuc Focas Library | Program | cnc_rdproctime

Fanuc Focas Library | Program | cnc_rdprogdir

Reads the list of program numbers (program directory) of all NC programs registered in CNC. Program numbers, comments and character... [read more]
Fanuc Focas Library | Program | cnc_rdprogdir

Fanuc Focas Library | Program | cnc_rdprogdir2

Reads the program directory of all the programs registered in the CNC. Reads specified number of Program Number,Comment and... [read more]
Fanuc Focas Library | Program | cnc_rdprogdir2

Fanuc Focas Library | Program | cnc_rdprogdir3

Reads the program directory of all the programs registered in the CNC. Reads Program Number, Comment, Date (created and modified)... [read more]
Fanuc Focas Library | Program | cnc_rdprogdir3

Fanuc Focas Library | Program | cnc_rdprogdir4

Reads the program directory of all the programs registered in the CNC. Reads Program Number, Comment, Date (created and... [read more]
Fanuc Focas Library | Program | cnc_rdprogdir4

Fanuc Focas Library | Program | cnc_rdproginfo

Reads the management data of NC programs already registered in CNC. The management data of NC program are... [read more]
Fanuc Focas Library | Program | cnc_rdproginfo

Fanuc Focas Library | Program | cnc_rdprogline

Reads the NC program by line basis. This function tries to read the amount of lines which is specified by (*line_len), but when the actual read character... [read more]
Fanuc Focas Library | Program | cnc_rdprogline

Fanuc Focas Library | Program | cnc_rdprogline2

Reads the NC program by line basis. This function cannot be used to MDI program. This function tries to read the amount of lines which is... [read more]
Fanuc Focas Library | Program | cnc_rdprogline2

Fanuc Focas Library | Program | cnc_rdseqnum

Reads the sequence number of the NC program which is being currently executed in CNC. If the NC program has no sequence numbers in its... [read more]
Fanuc Focas Library | Program | cnc_rdseqnum

Fanuc Focas Library | Program | cnc_renameprog

Changes the program number.... [read more]
Fanuc Focas Library | Program | cnc_renameprog

Fanuc Focas Library | Program | cnc_resetpdf_pglock

The protection of running/editing is released.... [read more]
Fanuc Focas Library | Program | cnc_resetpdf_pglock

Fanuc Focas Library | Program | cnc_resetpglock

The protection of running/editing is released.... [read more]
Fanuc Focas Library | Program | cnc_resetpglock

Fanuc Focas Library | Program | cnc_rewind

Sets cursor to the top of selected NC program in CNC. MEM, EDIT mode(Series 30i/31i/32i, 0i-D/F, PMi-A)... [read more]
Fanuc Focas Library | Program | cnc_rewind

Fanuc Focas Library | Program | cnc_saveprog_end

This function gets the result of cnc_saveprog_start... [read more]
Fanuc Focas Library | Program | cnc_saveprog_end

Fanuc Focas Library | Program | cnc_saveprog_start

If CNC parameter HPM(No.11354#7) is set to 1, the programs are saved by calling with this function. In this case, this function requests save of program to... [read more]
Fanuc Focas Library | Program | cnc_saveprog_start

Fanuc Focas Library | Program | cnc_search

Searches the NC program registered in the program memory of CNC. HSSB In case of Series 15/15i, searching is... [read more]
Fanuc Focas Library | Program | cnc_search

Fanuc Focas Library | Program | cnc_searchresult

Gets the result of cnc_searchword... [read more]
Fanuc Focas Library | Program | cnc_searchresult

Fanuc Focas Library | Program | cnc_searchword

Searches the string within the NC program. The basic order to search is as follows.... [read more]
Fanuc Focas Library | Program | cnc_searchword

Fanuc Focas Library | Program | cnc_seqsrch

Searches the specified sequence number of the selected program in CNC. CNC mode is changed to STOP mode after searching.(except FS30i, FS0i-D/F,... [read more]
Fanuc Focas Library | Program | cnc_seqsrch

Fanuc Focas Library | Program | cnc_seqsrch2

Searches the specified sequence number of the selected program in CNC. The searching speed of this function is more than cnc_seqsrch. The... [read more]
Fanuc Focas Library | Program | cnc_seqsrch2

Fanuc Focas Library | Program | cnc_setpdf_pglock

The running by the subprogram call to the program in the CNC memory is prohibited. And the following operations and the... [read more]
Fanuc Focas Library | Program | cnc_setpdf_pglock

Fanuc Focas Library | Program | cnc_setpglock

The running by the subprogram call to the program in the CNC memory is prohibited. And the following operations and the... [read more]
Fanuc Focas Library | Program | cnc_setpglock

Fanuc Focas Library | Program | cnc_upend

Notifies the end of uploading NC program to the internal logic of the Data window library. (This function must be executed... [read more]
Fanuc Focas Library | Program | cnc_upend

Fanuc Focas Library | Program | cnc_upend3

Notifies the end of uploading NC program to the internal logic of the Data window library. (This function must be executed... [read more]
Fanuc Focas Library | Program | cnc_upend3

Fanuc Focas Library | Program | cnc_upend4

Notifies the end of uploading NC program to the internal logic of the Data window library. (This function must be executed... [read more]
Fanuc Focas Library | Program | cnc_upend4

Fanuc Focas Library | Program | cnc_upload

Read NC program registered on the tape memory in CNC (program memory). The procedure of uploading is as follows.... [read more]
Fanuc Focas Library | Program | cnc_upload

Fanuc Focas Library | Program | cnc_upload3

Read NC data registered on the memory in CNC. This function reads the characters of NC data as long as it is specified by... [read more]
Fanuc Focas Library | Program | cnc_upload3

Fanuc Focas Library | Program | cnc_upload4

Read NC data registered on the memory in CNC. This function reads the characters of NC data as long as it is specified by... [read more]
Fanuc Focas Library | Program | cnc_upload4

Fanuc Focas Library | Program | cnc_upstart

Notifies the start of uploading NC program to the internal logic of the Data window library. (This function must be... [read more]
Fanuc Focas Library | Program | cnc_upstart

Fanuc Focas Library | Program | cnc_upstart3

Notifies the start of uploading NC data (NC program, tool offset, etc.) to the internal logic of the Data window library.... [read more]
Fanuc Focas Library | Program | cnc_upstart3

Fanuc Focas Library | Program | cnc_upstart4

Notifies the start of uploading NC data (NC program, tool offset, etc.) to the internal logic of the Data window library.... [read more]
Fanuc Focas Library | Program | cnc_upstart4

Fanuc Focas Library | Program | cnc_verify

Outputs NC program to be compared with already registered one to CNC. When the data processing on the CNC side is delayed and the data... [read more]
Fanuc Focas Library | Program | cnc_verify

Fanuc Focas Library | Program | cnc_verify4

Outputs NC program to be compared with already registered one to CNC. This function outputs the characters of NC program as long as it... [read more]
Fanuc Focas Library | Program | cnc_verify4

Fanuc Focas Library | Program | cnc_vrfend

Notifies the end of verification of NC program to CNC. (This function must be executed after... [read more]
Fanuc Focas Library | Program | cnc_vrfend

Fanuc Focas Library | Program | cnc_vrfend4

Notifies the end of verification of NC program to CNC. (This function must be executed after... [read more]
Fanuc Focas Library | Program | cnc_vrfend4

Fanuc Focas Library | Program | cnc_vrfstart

Requests CNC to start verification of NC program. (This function must be executed before... [read more]
Fanuc Focas Library | Program | cnc_vrfstart

Fanuc Focas Library | Program | cnc_vrfstart4

Requests CNC to start verification of NC program. (This function must be executed before... [read more]
Fanuc Focas Library | Program | cnc_vrfstart4

Fanuc Focas Library | Program | cnc_wractpt

Sets the execution pointer of the NC program for the MDI or Memory operation. If there are some blocks... [read more]
Fanuc Focas Library | Program | cnc_wractpt

Fanuc Focas Library | Program | cnc_wrmdipntr

Specify the execution starting pointer for MDI operation. (It is impossible to operate the execution pointer directly)... [read more]
Fanuc Focas Library | Program | cnc_wrmdipntr

Fanuc Focas Library | Program | cnc_wrmdiprog

Outputs NC program for MDI operation to CNC. HSSB Refer of... [read more]
Fanuc Focas Library | Program | cnc_wrmdiprog

Fanuc Focas Library | Program | cnc_wrpdf_attr

Changes the attribute of folder or file under the specified folder. Execution of this function is kept waiting when CNC is... [read more]
Fanuc Focas Library | Program | cnc_wrpdf_attr

Fanuc Focas Library | Program | cnc_wrpdf_curdir

Sets the current folder. Execution of this function is kept waiting when CNC is in editing(including the background edit... [read more]
Fanuc Focas Library | Program | cnc_wrpdf_curdir

Fanuc Focas Library | Program | cnc_wrpdf_line

Writes the NC program by line basis. You cannot change a program file name in the top of the program. If you try to... [read more]
Fanuc Focas Library | Program | cnc_wrpdf_line

Fanuc Focas Library | Program | cnc_wrprogline

Writes the NC program by line basis. When you specify the same number(Oxxxx) in the top of the program, this function deletes the... [read more]
Fanuc Focas Library | Program | cnc_wrprogline

Fanuc Focas Library | Program | flist_Program

CNC: Function related to CNC program... [read more]
Fanuc Focas Library | Program | flist_Program
Modified: 2023-12-05