| ||||||||||||||||||||||||||||||||||
|
Settings
| ||||||||||||||||||||||||||||||||||
{Available only in the full professional version}
It is the most "advanced" and intellectual working mode of the program. In this mode all the program actions are performed automatically without the PC user actions. When the program is launched, it is automatically switched to the mode for receiving information from the machine. When receiving some data, the program analyzes their contents and depending on the processed information performs responds in one way or another:
Folders for receiving and sending files are specified in the same way as in the previous section – "Manual mode".
Commands from the machine to the computer can be transmitted in two ways:
The commands are extracted from the header according to the parameters specified in the "Server mode/NC commands format" tab (fig.1)
Fig.1 NC command format
If you are sure, that your machine uses service commands in the header (for example, you have found it out analyzing the log file), first it is necessary to enable this mode in the "Processing commands from NC" field. After that it is necessary to specify the parameters by which the commands will be extracted from the general information flow.
Basic settings
Start – the parameter indicating the beginning of a command. This parameter is a character string and it can contain usual ASCII characters ranging from 32 to 127 as well as any other character with the code specified as #XX, where XX is the hexadecimal code of the necessary character. All data received prior to this attribute are not considered as commands and are ignored. For example, if you enter the #1B#26 character sequence, two ASCII characters – ESC (ASCII 27) and & – will be considered as the command start parameter.
End – the parameter indicating the end of a command. This parameter is a character string and it can contain usual ASCII characters ranging from 32 to 127. The parameter input format can be specified in the same way as the previous one. All data received after to this parameter are not considered as commands and are ignored.
The first N characters are the command name – after a command is separated from the program header or body using the parameters specified above, it is also necessary to identify its name and possible value. To do it, specify how many of the first characters are the name of the program. In addition to it, you can specify (only letters) that the name of the program can contain only letters. Thus, the maximum size of the command name is limited, but if the last characters are not letters, they will be cut off from the command name and added to the beginning of the command body.
Command name and name body are separated by - this field allows you to specify a separator between command name (H,FW, etc) and command body (file name, message etc).
Advanced settings
These settings allow to open all command extraction features, but require additional knowledge in regular expressions.
Use regular expressions – to separate commands from the service header of from the program body, we will use perl-like regular expressions widely used to process text data. Having specified one or more regular expressions (each regular expression is specified on a separate line), you will define the corresponding amount of rules for processing incoming data. When specifying a regular expression, you should have two matches as the result of its work. The DNC server will consider the first match to be the name of the command, while the second match will be considered the body of the command.
The DNC server can process commands transmitted in the program body. For a command to be correctly identified, the following conditions should be observed:
An example of the program for the NC operator to type:
O8888 N0010 (DIR=/VIPROS) N0020 (PRG=0010) %
The first line specifies the program name. In the DNC settings for the current machine this name should match the one specified in the "Search for requests only in the program named" field, because DNC will search for requests from the NC only in programs with this name.
The second line contains the DIR =/VIPROS command that defines the folder for the operation of receiving a file or folder contents to be performed in.
The third line contains the PRG=0010 command telling the DNC server to send the file named 0010 to the machine. To obtain the actual name of the file, the DNC server generates it from the prefix (it will be added before 0010), the suffix (will be added after 0010) and the extension (will be added at the end and separated from the suffix with a dot). After that it will search for the file in the specified folder.
The last line with the % character indicates the end of the program and it must match the one specified in "Program format".
After the NC operator sends a request, he should switch to the mode for receiving data from the DNC server within 3 minutes. If he does not do it, the DNC server will switch back to the mode for expecting requests from DNC. The request will result in either a file, or the disk contents, or the status of performing the operation.
Command triggers
If all the above-mentioned conditions are observed, the process will result in identifying one or several commands that the DNC server will be able to execute. Now it is necessary to match the identified command names with those supported by the DNC server. It is done in the " NC command names" list. The DNC server supports and can execute the following commands:
Fig.2 Directories and files
| ||||||||||||||||||||||||||||||||||
|