News CNCnetPDM About us Support  
         
  

CNC_WRMDIPNTR | PROGRAM

Description

Specify the execution starting pointer for MDI operation. (It is impossible to operate the execution pointer directly)

Register the MDI program previously according to the cnc_wrmdiprog function before executing this function.

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

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

FWLIBAPI short WINAPI cnc_wrmdipntr(unsigned short FlibHndl, long crntpntr);

Arguments

FlibHndl   [ in ]

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

crntpntr   [ in ]

Specify the block pointer to execute first.

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)
Data error
The specification of the block point to execute first(crntpntr) is illegal.
EW_NOOPT
(6)
No option
The extended driver/library function is necessary.
EW_MODE
(12)
CNC mode error
Set CNC mode to MDI.
EW_REJECT
(13)
CNC execution denied
  • Edit processing in the CNC side.
  • MDI program is not registered.
  • Register the MDI program previously according to the cnc_wrmdiprog function.

    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 16i/18i/21i-B, 0i-B/C/D/F, Series 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.

    CNC parameter

    This function is related to the following CNC parameter.
    See the manual of CNC parameter for details.

  • Series 16i/18i-W
  • 3203#1 = 1 (must be set)

    CNC mode

    This function must be used in MDI 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)H O O O H E H H H O O O O O O O O
    T (Turning) H O O O H - H H H O O O O O O O O
    LC (Loader) - - - - - - H H H H H H H H H - -

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


    Power Mate i-DO
    Power Mate i-HO
    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_wrmdiprog   cnc_rdmdipntr  

    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_wrmdipntr
    Fanuc Focas Library | Program | cnc_buff
    Description Reads the number of empty buffers used for downloading/verification. If there is no space for buffer, this function... [read more]
    cnc_buff
    Fanuc Focas Library | Program | cnc_cdnc
    Description 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]
    cnc_cdnc
    Fanuc Focas Library | Program | cnc_cdownload
    Description Outputs NC program to be registered(downloading). When the data processing on the CNC side is delayed and the next data... [read more]
    cnc_cdownload
    Fanuc Focas Library | Program | cnc_condense
    Description Condenses the specified program or all programs.... [read more]
    cnc_condense
    Fanuc Focas Library | Program | cnc_copyprog
    Description Copy the NC program.... [read more]
    cnc_copyprog
    Fanuc Focas Library | Program | cnc_cupload
    Description Read NC program registered on the tape memory in CNC (program memory). As for the Data window interface, this function is... [read more]
    cnc_cupload
    Fanuc Focas Library | Program | cnc_cverify
    Description 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]
    cnc_cverify
    Fanuc Focas Library | Program | cnc_delall
    Description Deletes all NC programs registered in CNC. This function is a function equal with all NC program deletions by "O-9999".... [read more]
    cnc_delall
    Fanuc Focas Library | Program | cnc_delete
    Description Deletes the specified NC program registered in CNC. The program which is executed or selected in foreground by CNC cannot be... [read more]
    cnc_delete
    Fanuc Focas Library | Program | cnc_delprogline
    Description 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]
    cnc_delprogline
    Fanuc Focas Library | Program | cnc_delrange
    Description Deletes the specified NC program(area specified) registered in CNC. When the running program is included within the range of the specified... [read more]
    cnc_delrange
    Fanuc Focas Library | Program | cnc_dnc
    Description 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]
    cnc_dnc
    Fanuc Focas Library | Program | cnc_dnc2
    Description 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]
    cnc_dnc2
    Fanuc Focas Library | Program | cnc_dncend
    Description Notifies the end of DNC operation to CNC. Execute this stopping command after the CNC's operation has been completed and reset.... [read more]
    cnc_dncend
    Fanuc Focas Library | Program | cnc_dncend2
    Description Notifies the termination of outputting NC part program for DNC operation or M198 operation to the CNC.... [read more]
    cnc_dncend2
    Fanuc Focas Library | Program | cnc_dncstart
    Description 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]
    cnc_dncstart
    Fanuc Focas Library | Program | cnc_dncstart2
    Description 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]
    cnc_dncstart2
    Fanuc Focas Library | Program | cnc_download
    Description Outputs NC program to be registered(downloading). When the data processing on the CNC side is delayed and the data cannot be... [read more]
    cnc_download
    Fanuc Focas Library | Program | cnc_download3
    Description Output NC data to be registered (downloading). This function outputs the characters of NC program as long as it is specified by... [read more]
    cnc_download3
    Fanuc Focas Library | Program | cnc_download4
    Description Output NC data to be registered (downloading). This function outputs the characters of NC program as long as it is specified by... [read more]
    cnc_download4
    Fanuc Focas Library | Program | cnc_dwnend
    Description Notifies the end of downloading NC program to CNC. (This function must be executed after... [read more]
    cnc_dwnend
    Fanuc Focas Library | Program | cnc_dwnend3
    Description Notifies the end of downloading NC data to CNC. (This function must be executed after... [read more]
    cnc_dwnend3
    Fanuc Focas Library | Program | cnc_dwnend4
    Description Notifies the end of downloading NC data to CNC. (This function must be executed after... [read more]
    cnc_dwnend4
    Fanuc Focas Library | Program | cnc_dwnstart
    Description Requests CNC to start downloading NC program. (This function must be executed before... [read more]
    cnc_dwnstart
    Fanuc Focas Library | Program | cnc_dwnstart3
    Description Notifies the start of uploading NC data (NC program, tool offset, etc.) to the internal logic of the Data window library.... [read more]
    cnc_dwnstart3
    Fanuc Focas Library | Program | cnc_dwnstart4
    Description Notifies the start of uploading NC data (NC program, tool offset, etc.) to the internal logic of the Data window library.... [read more]
    cnc_dwnstart4
    Fanuc Focas Library | Program | cnc_exeprgname
    Description 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]
    cnc_exeprgname
    Fanuc Focas Library | Program | cnc_exeprgname2
    Description 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]
    cnc_exeprgname2
    Fanuc Focas Library | Program | cnc_mergeprog
    Description 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]
    cnc_mergeprog
    Fanuc Focas Library | Program | cnc_pdf_add
    Description Creates the folder or file under the specified folder. Execution of this function is kept waiting when CNC is in... [read more]
    cnc_pdf_add
    Fanuc Focas Library | Program | cnc_pdf_cond
    Description Rearranges the contents of the program. In other words, this function condenses the program. Execution of... [read more]
    cnc_pdf_cond
    Fanuc Focas Library | Program | cnc_pdf_copy
    Description Copies the specified program. The program name is specified according to the following format. //Drive Name/Filder... [read more]
    cnc_pdf_copy
    Fanuc Focas Library | Program | cnc_pdf_del
    Description Deletes the folder or file under the specified folder. Execution of this function is kept waiting when CNC is in editing... [read more]
    cnc_pdf_del
    Fanuc Focas Library | Program | cnc_pdf_delall
    Description All programs in the specified folder are deleted. In the following cases, the program is not deleted.... [read more]
    cnc_pdf_delall
    Fanuc Focas Library | Program | cnc_pdf_delline
    Description 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]
    cnc_pdf_delline
    Fanuc Focas Library | Program | cnc_pdf_move
    Description Moves the specified program. The move process cannot be executed at the following conditions: Source program... [read more]
    cnc_pdf_move
    Fanuc Focas Library | Program | cnc_pdf_rdactpt
    Description Get the actual execution pointer in MDI, MEM and EDIT, TJOG, THND mode. The restrictions are as follows. When this function works... [read more]
    cnc_pdf_rdactpt
    Fanuc Focas Library | Program | cnc_pdf_rdmain
    Description Reads the file information that is select currently as the main program.... [read more]
    cnc_pdf_rdmain
    Fanuc Focas Library | Program | cnc_pdf_rename
    Description Renames the folder or file under the specified folder. Execution of this function is kept waiting when CNC is in editing... [read more]
    cnc_pdf_rename
    Fanuc Focas Library | Program | cnc_pdf_searchresult
    Description Gets the result of cnc_pdf_searchword... [read more]
    cnc_pdf_searchresult
    Fanuc Focas Library | Program | cnc_pdf_searchword
    Description Searches the string within the NC program. The basic order to search is as follows.... [read more]
    cnc_pdf_searchword
    Fanuc Focas Library | Program | cnc_pdf_slctmain
    Description Selects the file under the specified folder as the main program. Execution of this function is kept waiting when CNC is in... [read more]
    cnc_pdf_slctmain
    Fanuc Focas Library | Program | cnc_pdf_wractpt
    Description 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]
    cnc_pdf_wractpt
    Fanuc Focas Library | Program | cnc_rdactpt
    Description Get the actual execution pointer in MDI, MEM and EDIT, TJOG, THND mode. When this function works in DNC/M198 and RISC... [read more]
    cnc_rdactpt
    Fanuc Focas Library | Program | cnc_rdblkcount
    Description Reads the value of block counter.... [read more]
    cnc_rdblkcount
    Fanuc Focas Library | Program | cnc_rddncdgndt
    Description Diagnosis data regarding the output of downloading DNC program is returned. The purpose of this function is the... [read more]
    cnc_rddncdgndt
    Fanuc Focas Library | Program | cnc_rdexecprog
    Description 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]
    cnc_rdexecprog
    Fanuc Focas Library | Program | cnc_rdexecpt
    Description 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]
    cnc_rdexecpt
    Fanuc Focas Library | Program | cnc_rdmdipntr
    Description Reads the execution pointer information for MDI operating program. The content which can be acquired is the following items.... [read more]
    cnc_rdmdipntr
    Fanuc Focas Library | Program | cnc_rdmdiprgstat
    Description The following information as a state of the MDI program is got. 1) Existence of MDI program 2)... [read more]
    cnc_rdmdiprgstat
    Fanuc Focas Library | Program | cnc_rdpdf_alldir
    Description Reads the file information under the specified folder. Execution of this function is kept waiting when CNC is in... [read more]
    cnc_rdpdf_alldir
    Fanuc Focas Library | Program | cnc_rdpdf_curdir
    Description Reads the information of current folder. Execution of this function is kept waiting when CNC is in editing(including the... [read more]
    cnc_rdpdf_curdir
    Fanuc Focas Library | Program | cnc_rdpdf_drive
    Description Reads the information of Program memory drive. Execution of this function is kept waiting when CNC is in editing(including... [read more]
    cnc_rdpdf_drive
    Fanuc Focas Library | Program | cnc_rdpdf_inf
    Description Reads the information Program memory file on the specified drive. Execution of this function is kept waiting when CNC is... [read more]
    cnc_rdpdf_inf
    Fanuc Focas Library | Program | cnc_rdpdf_line
    Description 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]
    cnc_rdpdf_line
    Fanuc Focas Library | Program | cnc_rdpdf_pglockstat
    Description The numbers of program and the program name is got which setted the protection of running/editing by... [read more]
    cnc_rdpdf_pglockstat
    Fanuc Focas Library | Program | cnc_rdpdf_subdir
    Description Reads the information of subfolder under the specified folder. Execution of this function is kept waiting when CNC is in... [read more]
    cnc_rdpdf_subdir
    Fanuc Focas Library | Program | cnc_rdpdf_subdirn
    Description Reads the number of subfolders/files under the specified folder.... [read more]
    cnc_rdpdf_subdirn
    Fanuc Focas Library | Program | cnc_rdpglockstat
    Description The numbers of program and the program number is got which setted the protection of running/editing by... [read more]
    cnc_rdpglockstat
    Fanuc Focas Library | Program | cnc_rdprgdirtime
    Description Reads specified number of "Program Number","Comment" and "Processing time" data of the registered programs in the CNC,... [read more]
    cnc_rdprgdirtime
    Fanuc Focas Library | Program | cnc_rdprgnum
    Description 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]
    cnc_rdprgnum
    Fanuc Focas Library | Program | cnc_rdproctime
    Description Reads processing time stamp data of CNC programs measured by the CNC. When no processing time stamp data is available, 0... [read more]
    cnc_rdproctime
    Fanuc Focas Library | Program | cnc_rdprogdir
    Description Reads the list of program numbers (program directory) of all NC programs registered in CNC. Program numbers, comments and character... [read more]
    cnc_rdprogdir
    Fanuc Focas Library | Program | cnc_rdprogdir2
    Description Reads the program directory of all the programs registered in the CNC. Reads specified number of "Program Number","Comment" and... [read more]
    cnc_rdprogdir2
    Fanuc Focas Library | Program | cnc_rdprogdir3
    Description Reads the program directory of all the programs registered in the CNC. Reads "Program Number", "Comment", "Date (created and modified)"... [read more]
    cnc_rdprogdir3
    Fanuc Focas Library | Program | cnc_rdprogdir4
    Description Reads the program directory of all the programs registered in the CNC. Reads "Program Number", "Comment", "Date (created and... [read more]
    cnc_rdprogdir4
    Fanuc Focas Library | Program | cnc_rdproginfo
    Description Reads the management data of NC programs already registered in CNC. The management data of NC program are... [read more]
    cnc_rdproginfo
    Fanuc Focas Library | Program | cnc_rdprogline
    Description 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]
    cnc_rdprogline
    Fanuc Focas Library | Program | cnc_rdprogline2
    Description 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]
    cnc_rdprogline2
    Fanuc Focas Library | Program | cnc_rdseqnum
    Description 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]
    cnc_rdseqnum
    Fanuc Focas Library | Program | cnc_renameprog
    Description Changes the program number.... [read more]
    cnc_renameprog
    Fanuc Focas Library | Program | cnc_resetpdf_pglock
    Description The protection of running/editing is released.... [read more]
    cnc_resetpdf_pglock
    Fanuc Focas Library | Program | cnc_resetpglock
    Description The protection of running/editing is released.... [read more]
    cnc_resetpglock
    Fanuc Focas Library | Program | cnc_rewind
    Description 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]
    cnc_rewind
    Fanuc Focas Library | Program | cnc_saveprog_end
    Description This function gets the result of cnc_saveprog_start... [read more]
    cnc_saveprog_end
    Fanuc Focas Library | Program | cnc_saveprog_start
    Description 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]
    cnc_saveprog_start
    Fanuc Focas Library | Program | cnc_search
    Description Searches the NC program registered in the program memory of CNC. HSSB In case of Series 15/15i, searching is... [read more]
    cnc_search
    Fanuc Focas Library | Program | cnc_searchresult
    Description Gets the result of cnc_searchword... [read more]
    cnc_searchresult
    Fanuc Focas Library | Program | cnc_searchword
    Description Searches the string within the NC program. The basic order to search is as follows.... [read more]
    cnc_searchword
    Fanuc Focas Library | Program | cnc_seqsrch
    Description 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]
    cnc_seqsrch
    Fanuc Focas Library | Program | cnc_seqsrch2
    Description 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]
    cnc_seqsrch2
    Fanuc Focas Library | Program | cnc_setpdf_pglock
    Description The running by the subprogram call to the program in the CNC memory is prohibited. And the following operations and the... [read more]
    cnc_setpdf_pglock
    Fanuc Focas Library | Program | cnc_setpglock
    Description The running by the subprogram call to the program in the CNC memory is prohibited. And the following operations and the... [read more]
    cnc_setpglock
    Fanuc Focas Library | Program | cnc_upend
    Description Notifies the end of uploading NC program to the internal logic of the Data window library. (This function must be executed... [read more]
    cnc_upend
    Fanuc Focas Library | Program | cnc_upend3
    Description Notifies the end of uploading NC program to the internal logic of the Data window library. (This function must be executed... [read more]
    cnc_upend3
    Fanuc Focas Library | Program | cnc_upend4
    Description Notifies the end of uploading NC program to the internal logic of the Data window library. (This function must be executed... [read more]
    cnc_upend4
    Fanuc Focas Library | Program | cnc_upload
    Description Read NC program registered on the tape memory in CNC (program memory). The procedure of uploading is as follows.... [read more]
    cnc_upload
    Fanuc Focas Library | Program | cnc_upload3
    Description 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]
    cnc_upload3
    Fanuc Focas Library | Program | cnc_upload4
    Description 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]
    cnc_upload4
    Fanuc Focas Library | Program | cnc_upstart
    Description Notifies the start of uploading NC program to the internal logic of the Data window library. (This function must be... [read more]
    cnc_upstart
    Fanuc Focas Library | Program | cnc_upstart3
    Description Notifies the start of uploading NC data (NC program, tool offset, etc.) to the internal logic of the Data window library.... [read more]
    cnc_upstart3
    Fanuc Focas Library | Program | cnc_upstart4
    Description Notifies the start of uploading NC data (NC program, tool offset, etc.) to the internal logic of the Data window library.... [read more]
    cnc_upstart4
    Fanuc Focas Library | Program | cnc_verify
    Description 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]
    cnc_verify
    Fanuc Focas Library | Program | cnc_verify4
    Description 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]
    cnc_verify4
    Fanuc Focas Library | Program | cnc_vrfend
    Description Notifies the end of verification of NC program to CNC. (This function must be executed after... [read more]
    cnc_vrfend
    Fanuc Focas Library | Program | cnc_vrfend4
    Description Notifies the end of verification of NC program to CNC. (This function must be executed after... [read more]
    cnc_vrfend4
    Fanuc Focas Library | Program | cnc_vrfstart
    Description Requests CNC to start verification of NC program. (This function must be executed before... [read more]
    cnc_vrfstart
    Fanuc Focas Library | Program | cnc_vrfstart4
    Description Requests CNC to start verification of NC program. (This function must be executed before... [read more]
    cnc_vrfstart4
    Fanuc Focas Library | Program | cnc_wractpt
    Description Sets the execution pointer of the NC program for the MDI or Memory operation. If there are some blocks... [read more]
    cnc_wractpt
    Fanuc Focas Library | Program | cnc_wrmdiprog
    Description Outputs NC program for MDI operation to CNC. HSSB Refer description of... [read more]
    cnc_wrmdiprog
    Fanuc Focas Library | Program | cnc_wrpdf_attr
    Description Changes the attribute of folder or file under the specified folder. Execution of this function is kept waiting when CNC is... [read more]
    cnc_wrpdf_attr
    Fanuc Focas Library | Program | cnc_wrpdf_curdir
    Description Sets the current folder. Execution of this function is kept waiting when CNC is in editing(including the background edit... [read more]
    cnc_wrpdf_curdir
    Fanuc Focas Library | Program | cnc_wrpdf_line
    Description 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]
    cnc_wrpdf_line
    Fanuc Focas Library | Program | cnc_wrprogline
    Description 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]
    cnc_wrprogline
    Fanuc Focas Library | Program | flist_Program
    CNC: Function related to CNC program... [read more]
    flist_Program
    Modified: 2018-06-11