AGG Software
Top  Previous  Next

File list

{Available only in the full professional version}

 

In the server mode the DNC server can process the request to send the list of files located in the folder specified in the "Folder for files to be sent to the machine" field on the "Server mode/Directories and files" tab.

 

After receiving the request to transmit the file list described in the "Commands in program body" section, the DNC server will generate the file list in a pseudo-program form with the format specified by the user on the "Server mode/File list" tab (fig.1). Then the generated pseudo-program is ready to be sent to the machine. The NC Operator, in his/her turn, should switch the NC to the data receiving mode. Once it is done, the NC operator receives the program with the file list in its body.

 

 

directory list

Fig.1 File list format

 

Example: If the operator sends:

O8889

N0010 (PRG=DIRLIST)

%

 

The DNC server will respond:

:8889 feed

N1000 ( DIRECTORYLIST FOR COM2 )

N1010 ( ----------------------------)

N1020 (1111 28.01.2004 12:23:30 121)

N1030 (8888 28.01.2004 13:07:00 23)

N9999 ( END OF LISTING )

M30

%

 

 

Allow file list request this option allows the DNC server to process the requests to send the file list. If this option is off, the request to read the file list will be ignored, with the report generation option on, the NC operator will be sent an error message.

 

List request identifier requests to send the file list can be transmitted not only in the request program body as it is described in the "Commands in the program body" section, but also as a separate, empty request program having its own name. This program name (specified in its first line) is the identifier. Having received the program with such an identifier, the DNC server generates the file list and sends it at once.

 

Insert at the beginning of the list, Insert at the end of the list - allows you to create the file list header and its ending to your liking. Between the list header and its ending the generated file list will be inserted. Specifying these fields you can use the $PORTNAME$ variables, describing the current DNC server status. The full description of the variables can be found in the "Variables" section.

 

Note: When sending the data from these fields the program will try to determine the syntax of the entered data. It means that the line numbers and comment characters will NOT be added to the following lines:

 

without the % character at the beginning;
not beginning with the prefix set for the program name in the "Format" section;
beginning with the sequence of the G50 kind, which is a standard G-code.

 

Column 1..3 - these combo boxes specify the format in which one line in the file list describing one file from the folder should be displayed. The following values are possible:

 

No - do not display anything in this column;
File name without extension - only the file name will be displayed in the column. Example: TESTFILE
File name – the file name and its extension will be displayed in the column. Example: TESTFILE.NC
Path - the file path will be displayed in the column. Example: C:\NCPROGRAMS
Name and path - the file path and its full name will be displayed in the column. Example: C:\NCPROGRAMS\TESTFILE.NC

 

File size - the file size in bytes will be displayed in the column. Example: 680
File date - the file creation date will be displayed in the column. Example: 12/12/2004
File time - the file creation time will be displayed in the column. Example: 12:12:04
File date and time - the file creation date and time will be displayed in the column. Example: 12/12/2004 12:12:04

 

Send in comments - if this option is on, the file list will be included in the comment delimiters specified in the program format.

 

Number lines when sending - if this option is on, each line of the file list will be numbered. Line numbering will start at 1000 with the step of 10.

 

Note: If you enable the "Number lines when sending" and "Send in comments" options, but you want some of the lines to be transmitted unchanged (without numbers and comments), put the '!' character at the beginning of the line (see the example below).

 

Template text example:

 

!:8889 feed

DIRECTORYLIST FOR $PORTNAME$

----------------------------

 

or

 

END LISTING

!M30

 

 

 


Copyright © 2004-2006, AGG Software.
All rights reserved.