AGG Software
Top  Previous  Next

Program format

Each machine (NC) can have its own format of programs that are sent and received. The format of programs can be either common (i.e. its parameters can be applied for programs that are both sent and received) or different for programs that are sent and received.

 

General settings

 

To change general settings, you should open the "Format/General" window (fig.1)

 

format common

Рис.1 Общие параметры

 

Fig.1 General settings

 

Finish receiving data from the NC after character – if you check this option and specify a hexadecimal character code, the DNC will stop receiving data immediately after it receives this character.

 

Comment delimiters – these characters separate comments in the program body. In the server mode comments contain requests to the DNC from the NC, while the DNC in its turn sends additional information to the NC (such as catalog contents, operation progress status, etc.). It is important to specify those characters correctly, as the correct interpretation of requests and responses depends on this.

 

Wait Xon before send data - this option allows DNC server transmit data to NC machine only after Xon character receiving, that specified on "Port" tab, and only if you not use software flow control. This option needs in a some cases, when DNC server can't detect with hardware flow control, that machine is now in the receiving state.

 

Data exchange

 

To change these settings, you should open the "Format/Data exchange" window (fig.2).

 

format data exchange

Fig.2. Data transmission settings

 

You can configure the data transmission format separately for each direction (sending and receiving). The direction of data transmission is selected from the drop-down list at the top of the dialog window. If the format is the same for both received and sent data you can select the "Same format for receiving and sending" item from the list.

 

After you select the direction of data transmission, you should first configure the general format of the program. It is characterized by two parameters:

 

Start – the parameter indicating the beginning of the program. This parameter is a character string and can contain both usual ASCII characters ranging from 32 to 127 or any other character with the code specified in the form of #XX, where XX is the hexadecimal code of the needed character. All the data received prior to this parameter are considered a control header and processed correspondingly. For instance, if you enter the sequence of characters %#0A, the parameter of the program start will be two ASCII characters % and LF.

 

End – the parameter indicating the ending of the program. All the data received after this parameter are ignored by the DNC and are saved only to the received data log file. The format of this parameter is the same as of the previous one.

 

Program name prefix – it is by this parameter that the DNC attempts to determine the size of the program file while receiving data.

 

After you configure the program format, you should configure the format of each program line. This format is also characterized by two parameters:

 

Start – the parameter telling the DNC that the NC is starting to send a new program line. The parameter is entered in the same format as the previous parameters. If this parameter is not specified, the program starts receiving data from any character. In this case a line is separated only by the line end parameters.

 

End - the parameter telling the DNC that the NC is finishing to send a program line. The parameter is entered in the same format as the previous parameters. If this parameter is not specified, it will not be possible to separate lines in the general data flow. That is why this parameter is obligatory.

 

Skip lines starting with – this parameter defines such lines separated by the above-mentioned parameters that are not to be received or sent. If a line has this sequence of characters at the beginning, it will be skipped.

 

Ignore characters – one or several characters are specified in this input field. When a line separated by the above-mentioned parameters has one of the specified characters, they will be removed from the line.

 

Skip empty lines when transmitting data – if this option is on and if an empty line (containing only the line start and end parameters) is encountered while transmitting data, it will be skipped.

 


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