DS_DWNSTART | DATA Top
Description
Requests CNC to start downloading.
(This function must be executed before ds_download )
This function is only for "Fast Ethernet board". This function is not supported at "Embedded Ethernet" and "Ethernet board".
MTConnect Fanuc Adapter Universal Fanuc Driver Fanuc Focas Library CD Declaration
#include "fwlib32.h"
FWLIBAPI short WINAPI ds_dwnstart(unsigned short FlibHndl, char *dtsv_file, short user); Arguments
FlibHndl
[ in ]
dtsv_file
[ in ]
Specify the pointer to the file name in the DATA SERVER.
The specification of the file name of the DATA SERVER is as follows:
user
[ in ]
Specify the Task channel of the DATA SERVER.(11-17)
DATA SERVER has 8 Task channels.
The channel that a parsonal computer uses for transferring a file is specified by this "user".
Available number is from 11 to 17.
DATA SERVER can give 8 services for each user(NC, Personal computer, PMC, C-EXE).
In order to decide which channel each user uses, it is necessary that NC parameters(No.941-948) are set with user's number as follows.
User's number
0 : Invalid
1 : 1'st path of CNC
2 : 2'nd path of CNC
3 : 3'rd path of CNC
4 : 4'th path of CNC
5 : 5'th path of CNC
6 : 6'th path of CNC
7 : 7'th path of CNC
8 : 8'th path of CNC
11 : Personal computer function No.1
12 : Personal computer function No.2
13 : Personal computer function No.3
14 : Personal computer function No.4
15 : Personal computer function No.5
16 : Personal computer function No.6
17 : Personal computer function No.7
CNC parameters
NO.941 : For channel No.1
NO.942 : For channel No.2
NO.943 : For channel No.3
NO.944 : For channel No.4
NO.945 : For channel No.5
NO.946 : For channel No.6
NO.947 : For channel No.7
NO.948 : For channel No.8
NC patameters(No.941-948) must be set before using this function(If these parameters are all invalid, CNC No.1 uses channel No.1).
When you set this parameter for Personal computer function user(11-17), it is necessary to specify the channel of each path which CNC uses.
When the user number is not set, the operation between CNC and the DATA SERVER cannot be done.
Example
1'st channel(No.941) : 1 (1st path for CNC))
2'nd channel(No.942) : 2 (2nd path for CNC)
3'rd channel(No.943) : 11(Personal computer function No.1)
4'th channel(No.944) : 12(Personal computer function No.2)
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)
ds_dwnstart function has been executed.
Terminate a downloading by using ds_dwnend function.
EW_PARAM (9)
Task channel setting error in NC parameter
-
Setting user's number 11-17 for personal computer function to NC parameters(No.941-948) is necessary.
EW_NUMBER (3)
Task channel setting error in this function
-
Setting user's number 11-17 for personal computer function to argument"chnl" is necessary.
EW_NOOPT (6)
No option
-
The extended driver/library function is necessary.
-
The DATA SERVER board(10BASE-T) is necessary.
-
Hard disk is necessary on the DATA SERVER board.
EW_REJECT (13)
CNC execution rejection
The DATA SERVER is doing another processing.
EW_DTSRVR (14)
DATA SERVER error
In order to get more information for this err_no return value, execute cnc_getdtailerr function.
The following details status will be set onto the member, err_no of ODBERR structure.As for the details, see "Ethernet Board/DATA SERVER Board OPERATOR'S MANUAL".
0xf000, 0xfe00- : Error code from DATA SERVER
1
: Time out in DATA SERVER's operation
As for the other return codes or the details, see
"Return status of Data window function "
CNC option
For Ethernet connection,
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
X
X
X
X
X
X
E
E
E
E
E
E
X
X
T (Turning) X
X
X
X
X
-
X
X
X
E
E
E
E
E
E
X
X
LC (Loader)
-
-
-
-
-
-
X
X
X
X
X
X
X
X
X
-
-
0i-D 0i-F 16i 18i 30i-A 30i-B
P (Punch press) X
X
X
X
-
X
L (Laser)
-
-
X
-
-
X
W (Wire)
-
-
X
X
X
X
Power Mate i-D X
Power Mate i-H X
Power Motion i-A X
"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
ds_download
ds_dwnend
Fanuc Focas Library | Data | cnc_clrmsgbuff Clears the receive buffer or the transmit buffer.... [read more]Fanuc Focas Library | Data | cnc_dschdir DATA SERVER Changing a current folder of the ATA card with DATA SERVER function. DATA SERVER Host... [read more]Fanuc Focas Library | Data | cnc_dscopyfile Copying a file in the ATA card with DATA SERVER function.... [read more]Fanuc Focas Library | Data | cnc_dsftpcancel This function is used to cancel the following operetions.... [read more]Fanuc Focas Library | Data | cnc_dsftpstat The execution result(EW_OK/EW_DTSRVR) of the following function can be taken out only at once.... [read more]Fanuc Focas Library | Data | cnc_dsget_req Directs to GET a file to from a host computer at DATA SERVER. When this function is normally ended, it starts getting files from host... [read more]Fanuc Focas Library | Data | cnc_dslistdel_req According to the list which exists in the ATA card of DATA SERVER functon, two or more files are deleted. When this function carries... [read more]Fanuc Focas Library | Data | cnc_dslistget_req According to the list file which exists in the connection host of DATA SERVER function, the file transfer of two or more files is continuously carried... [read more]Fanuc Focas Library | Data | cnc_dslistput_req According to the list file which exists in the ATA card of DATA SERVER function ,the file transfer of two or more files is carried out to a connection... [read more]Fanuc Focas Library | Data | cnc_dsmget_req It directs to MGET a file from a host computer to DATA SERVER. A wild card can be used for a file name and the file transfer of two or... [read more]Fanuc Focas Library | Data | cnc_dsmkdir DATA SERVER A new folder is created to the current folder of the ATA card of DATA SERVER function. DATA SERVER... [read more]Fanuc Focas Library | Data | cnc_dsmput_req It directs to MPUT a file to a host computer from DATA SERVER. A wild card can be used for a file name and the file transfer of two or... [read more]Fanuc Focas Library | Data | cnc_dsput_req Directs to PUT a file to a host computer to DATA SERVER. When this function is normally ended, it starts putting files from host... [read more]Fanuc Focas Library | Data | cnc_dsremove DATA SERVER The file in the current folder of the ATA card of DATA SERVER function delete. DATA SERVER Host... [read more]Fanuc Focas Library | Data | cnc_dsrename DATA SERVER Changing the file or folder name which exist in the current folder of the ATA card of DATA SERVER... [read more]Fanuc Focas Library | Data | cnc_dsrmdir DATA SERVER The folder in the current folder of the ATA card of DATA SERVER function delete. DATA SERVER... [read more]Fanuc Focas Library | Data | cnc_dtsvchkdsk Checks the hard disk on the DATA SERVER whether there is an error sector etc. or not. If this function is executed while... [read more]Fanuc Focas Library | Data | cnc_dtsvcnclupdn Cancels the following if it is being executed. - Download from DATA SERVER to CNC - Upload from CNC to... [read more]Fanuc Focas Library | Data | cnc_dtsvdelete Deletes the file in the DATA SERVER. If this function is executed while... [read more]Fanuc Focas Library | Data | cnc_dtsvdownload Orders the CNC to download the file from the DATA SERVER. Therefore, normal termination of this function shows that downloading the file from the DATA SERVER... [read more]Fanuc Focas Library | Data | cnc_dtsvftpget Orders the DATA SERVER to get file from the host computer. Therefore, normal termination of this function shows that getting the file from the host computer... [read more]Fanuc Focas Library | Data | cnc_dtsvftpput Orders the DATA SERVER to put file to the host computer. Therefore, normal termination of this function shows that putting the file to the host computer has... [read more]Fanuc Focas Library | Data | cnc_dtsvftpstat The execution result of cnc_dtsvftpput ,... [read more]Fanuc Focas Library | Data | cnc_dtsvgetdncpg Gets the file name for DNC operation in the DATA SERVER.... [read more]Fanuc Focas Library | Data | cnc_dtsvgetmode Gets the current mode of the DATA SERVER(storage mode/buffer mode).... [read more]Fanuc Focas Library | Data | cnc_dtsvhdformat Formats the hard disk on the DATA SERVER. If this function is executed while... [read more]Fanuc Focas Library | Data | cnc_dtsvmntinfo Reads the following maintenance information for the DATA SERVER. This is the function for purposes of maintenance.... [read more]Fanuc Focas Library | Data | cnc_dtsvrdcram Reads the contents of the interface buffer for the DATA SERVER. This is the function for purposes of maintenance.... [read more]Fanuc Focas Library | Data | cnc_dtsvrderrmsg Reads the message of the error occurred in the DATA SERVER.... [read more]Fanuc Focas Library | Data | cnc_dtsvrdfile Transfers file from DATA SERVER to hard disk on personal computer. This function is effective for the DATA SERVER board(10BASE-T), and... [read more]Fanuc Focas Library | Data | cnc_dtsvrdpgdir Reads the directory information in the DATA SERVER. If this function is executed while... [read more]Fanuc Focas Library | Data | cnc_dtsvrdset Reads the setting data in the DATA SERVER. If this function is executed while... [read more]Fanuc Focas Library | Data | cnc_dtsvsavecram Saves the contents of the interface buffer for the DATA SERVER to the file by the name of COMMON.RAM in the hard disk of the DATA SERVER.... [read more]Fanuc Focas Library | Data | cnc_dtsvsetdncpg Sets the file name for DNC operation in the DATA SERVER.... [read more]Fanuc Focas Library | Data | cnc_dtsvsetmode Sets the current mode of the DATA SERVER(storage mode/buffer mode). If the mode of the DATA SERVER is changed, all the data in hard disk of the DATA... [read more]Fanuc Focas Library | Data | cnc_dtsvupdnstat The execution result of cnc_dtsvdownload ,... [read more]Fanuc Focas Library | Data | cnc_dtsvupload Orders the CNC to upload the file to the DATA SERVER. Therefore, normal termination of this function shows that uploading the file to the DATA SERVER has been... [read more]Fanuc Focas Library | Data | cnc_dtsvwrfile Transfers file from hard disk on personal computer to DATA SERVER. This function is effective for the DATA SERVER board(10BASE-T), and 16i/18i/21i, 0i.... [read more]Fanuc Focas Library | Data | cnc_dtsvwrset Writes the setting data in the DATA SERVER. If this function is executed while... [read more]Fanuc Focas Library | Data | cnc_rdcomlogmsg Reads logging message for DNC2.... [read more]Fanuc Focas Library | Data | cnc_rdcomopemsg Reads operator's message for DNC1,DNC2.... [read more]Fanuc Focas Library | Data | cnc_rdcomparam Reads communication parameters for DNC1, DNC2 or OSI-Ethernet function.... [read more]Fanuc Focas Library | Data | cnc_rddncfname Reads the name of the file in the host computer for DNC operation using DNC1, DNC2 or OSI-Ethernet function.... [read more]Fanuc Focas Library | Data | cnc_rddsdevinfo All the number of pages , the use number of pages, the total number of entries, and the numberof use entries are taken out from an ATA... [read more]Fanuc Focas Library | Data | cnc_rddsdir DATA SERVER The current folder name of the ATA card of DATA SERVER function is taken out with a full path.... [read more]Fanuc Focas Library | Data | cnc_rddsdncfile DATA SERVER The file name set to DNC operation at the time of the Storage mode of DATA SERVER function is taken out with... [read more]Fanuc Focas Library | Data | cnc_rddsfile DATA SERVER The list of the files in the current folder of DATA SERVER function (a sub folder is included) is taken out.... [read more]Fanuc Focas Library | Data | cnc_rdrcvmsg Reads contents of the receive buffer in which received message is stored. When this function is called, receipt status in CNC is... [read more]Fanuc Focas Library | Data | cnc_rdrcvstat Obtains receipt status of message for OSI-Ethernet. The receipt status becomes ON when CNC receives a message for OSI-Ethernet, and becomes OFF when... [read more]Fanuc Focas Library | Data | cnc_rdsndmsg Reads contents of the transmit buffer in which transmitted message is stored.... [read more]Fanuc Focas Library | Data | cnc_sendmessage Sends message to the host computer.... [read more]Fanuc Focas Library | Data | cnc_wrcomparam Writes communication parameters for DNC1,DNC2 or OSI-Ethernet function. When communication parameters are written to OSI-Ethernet board... [read more]Fanuc Focas Library | Data | cnc_wrdncfname Writes the name of the file in the host computer for DNC operation using DNC1, DNC2 or OSI-Ethernet function.... [read more]Fanuc Focas Library | Data | cnc_wrdsdncfile DATA SERVER The file for DNC operation at the time of the storage mode of DATA SERVER function is set up. DATA... [read more]Fanuc Focas Library | Data | ds_cancel The execution of the function for the following DATA SERVER is stopped.... [read more]Fanuc Focas Library | Data | ds_checkhdd Whether a defective sector exists in the hard disk is checked.... [read more]Fanuc Focas Library | Data | ds_chghdddir Change the work directory(current directory) of hard disk in the DATA SERVER. This function is available even to Fast Ethernet.... [read more]Fanuc Focas Library | Data | ds_copyhddfile The file in the hard disk of the DATA SERVER is copied. In this function, the control returns to the application without only requesting the copy of the file... [read more]Fanuc Focas Library | Data | ds_delhdddir Delete the directory in the hard disk of the DATA SERVER.... [read more]Fanuc Focas Library | Data | ds_delhddfile The file in the hard drive of the DATA SERVER is deleted. The some files can be deleted simultaneously by specifying wild-card(*,?). In this function,... [read more]Fanuc Focas Library | Data | ds_delhostfile Delete the file of host computer. The wild-card(*, ?) cannot be used to specify the name.... [read more]Fanuc Focas Library | Data | ds_download Outputs data to be registered(downloading). This function is only for Fast Ethernet board. This function is not supported at Embedded... [read more]Fanuc Focas Library | Data | ds_dwnend Notifies the end of downloading data to CNC. (This function must be executed after... [read more]Fanuc Focas Library | Data | ds_formathdd The hard disk is formatted(initialization).... [read more]Fanuc Focas Library | Data | ds_gethostfile The file of the host computer is transferred to the hard disk of the DATA SERVER according to the get command of the FTP.... [read more]Fanuc Focas Library | Data | ds_ldelhddfile The files in the hard disk of the DATA SERVER are deleted according to the list file. The wild-card(*, ?)... [read more]Fanuc Focas Library | Data | ds_lgethostfile The files in the host computer are transferred to the hard disk of the DATA SERVER by the processing of FTP according to the... [read more]Fanuc Focas Library | Data | ds_lputhddfile The files in the hard disk of the DATA SERVER are transferred to the host computer by the processing of FTP according to the... [read more]Fanuc Focas Library | Data | ds_makehdddir Make the directory in the hard disk of the DATA SERVER.... [read more]Fanuc Focas Library | Data | ds_mgethostfile The files of the host computer are transferred to the hard disk of the DATA SERVER according to the mget command of the... [read more]Fanuc Focas Library | Data | ds_mputhddfile The files in the hard disk of the DATA SERVER are transferred to the host computer according to the mput command of the... [read more]Fanuc Focas Library | Data | ds_puthddfile The file in the hard disk of the DATA SERVER is transferred to the host computer side according to the put command of the FTP. The wild-card(*, ?) cannot... [read more]Fanuc Focas Library | Data | ds_rddnchddfile The file name which includes the PATH name in the hard disk which is setted for the DNC operation are acquired.... [read more]Fanuc Focas Library | Data | ds_rddnchostfile The connected host number and the file name in host computer for the DNC operation is acquired.... [read more]Fanuc Focas Library | Data | ds_rdfile Transfers file from DATA SERVER to hard disk on personal computer. This function is effective in only 16i/18i/21i. and, this function... [read more]Fanuc Focas Library | Data | ds_rdhdddir Get the file information at each file. The following information is acquired at each file. - File name... [read more]Fanuc Focas Library | Data | ds_rdhddinfo Get the information of hard disk of DATA SERVER. The following information can be acquired. - The remainder capacity of hard disk.... [read more]Fanuc Focas Library | Data | ds_rdhostdir Get the file information of host computer.... [read more]Fanuc Focas Library | Data | ds_rdhostdir2 Get the number of files and file information of login directory on the host computer. Information acquired in... [read more]Fanuc Focas Library | Data | ds_rdhostinfo Get the information of login directory of the host computer. The following information is acquired.... [read more]Fanuc Focas Library | Data | ds_rdhostno Get the host number of the connected host computer.... [read more]Fanuc Focas Library | Data | ds_rdm198hdddir The work directory for the M198(subprogram call) is acquired.... [read more]Fanuc Focas Library | Data | ds_rdm198host Connected host number for the M198(subprogram call) is acquired.... [read more]Fanuc Focas Library | Data | ds_rdmntinfo The data for troubleshooting is acquired as maintenance information for the file transfer between the DATA SERVER and CNC.... [read more]Fanuc Focas Library | Data | ds_rdmode Get the mode for the DATA SERVER.... [read more]Fanuc Focas Library | Data | ds_rdncfile The NC program is inputted from the hard drive to the NC. Storage mode : To CNC memory from hard disk(or ATA) of DATA SERVER... [read more]Fanuc Focas Library | Data | ds_rdncfile2 The NC program is inputted from the hard drive to the NC. Storage mode : To CNC memory from hard disk(or ATA) of DATA SERVER... [read more]Fanuc Focas Library | Data | ds_rdresult Get the execution result of the function for the following DATA SERVER.... [read more]Fanuc Focas Library | Data | ds_renhddfile The file name in the hard disk of the DATA SERVER is changed.... [read more]Fanuc Focas Library | Data | ds_searchresult Gets the result of ds_searchword function.... [read more]Fanuc Focas Library | Data | ds_searchword The string of the NC program in DATA SERVER at the running of M198/DNC in MEM/RMT mode is searched. The result of search can... [read more]Fanuc Focas Library | Data | ds_wrdnchddfile The file name in the hard disk of the DATA SERVER for DNC operation is set. The current work directory is... [read more]Fanuc Focas Library | Data | ds_wrdnchostfile The file name of the host computer for DNC operation is set. The current connected host computer is set... [read more]Fanuc Focas Library | Data | ds_wrfile Transfers file from hard disk on personal computer to DATA SERVER. This function is effective in only 16i/18i/21i. and, this function... [read more]Fanuc Focas Library | Data | ds_wrhostno The host computer which works the FTP server which becomes the other party of the communication of the DATA SERVER is changed.... [read more]Fanuc Focas Library | Data | ds_wrm198hdddir The work directory for the M198(subprogram call) is set. The current directory in the hard disk of the... [read more]Fanuc Focas Library | Data | ds_wrm198host Connected host number for the M198(subprogram call) is set. The connected host of now becomes the host for... [read more]Fanuc Focas Library | Data | ds_wrmode Set the mode for the DATA SERVER. The mode of the DATA SERVER which can be set is shown as follows.... [read more]Fanuc Focas Library | Data | ds_wrncfile The NC program is outputted from the NC to the hard drive. Storage mode : To hard disk(or ATA) of DATA SERVER from CNC... [read more]Fanuc Focas Library | Data | etb_rderrmsg Get the error message which occurred in the Ethernet board. This function acquires the error message of the Ethernet board... [read more]Fanuc Focas Library | Data | etb_rdparam Get the parameter of ethernet board. The following parameter can be acquired by this function.... [read more]Fanuc Focas Library | Data | etb_wrparam Set the parameter for Ethernet board. The following parameter can be set to the Ethernet board. Parameter... [read more]Fanuc Focas Library | Data | eth_clrlog Clear the logs for Ethernet function : Embedded Ethernet[Internal port ,PCMCIA Card], Fast Ethernet board, Fast DATA SERVER board, Windows CE... [read more]Fanuc Focas Library | Data | eth_dschkdsk Check disk of ATA card on DATA SERVER.... [read more]Fanuc Focas Library | Data | eth_dsformat Format ATA card on DATA SERVER.... [read more]Fanuc Focas Library | Data | eth_rddsformat Get the format of ATA card on DATA SERVER.... [read more]Fanuc Focas Library | Data | eth_rddsm198dir Get the work folder for the M198 on DATA SERVER using Strage mode.... [read more]Fanuc Focas Library | Data | eth_rddsm198host Get the connected host number and work folder for the M198 on DATA SERVER using FTP mode.... [read more]Fanuc Focas Library | Data | eth_rddsmode Get the all channel modes on DATA SERVER.... [read more]Fanuc Focas Library | Data | eth_rddsstate Get each path of maintenance information on DATA SERVER.... [read more]Fanuc Focas Library | Data | eth_rdhost Get the host number selected current Ethernet function.... [read more]Fanuc Focas Library | Data | eth_rdlog MTConnect Fanuc Adapter... [read more]Fanuc Focas Library | Data | eth_rdparam Get the parameters for Ethernet function : Fast Ethernet board, Fast DATA SERVER... [read more]Fanuc Focas Library | Data | eth_wrdsm198dir Set the work folder for the M198 on DATA SERVER using Strage mode.... [read more]Fanuc Focas Library | Data | eth_wrdsm198host Set the connected host number and work folder for the M198 on DATA SERVER using FTP mode.... [read more]Fanuc Focas Library | Data | eth_wrdsmode Change the mode for DATA SERVER function.... [read more]Fanuc Focas Library | Data | eth_wrhost Set the host number selected Ethernet function.... [read more]Fanuc Focas Library | Data | eth_wrparam Sets the parameters for Ethernet function : Fast Ethernet board, Fast DATA SERVER... [read more]Fanuc Focas Library | Data | flist_Data CNC: Function Reference related to data server,DNC1,DNC2,OSI-Ethernet... [read more]Modified: 2023-12-05