MfgBatch is a utility
program that allows you to generate NC data files from a manufacturing program
referenced by a CATProcess.
You can run this program using one of the Generate NC Data commands in your NC workbench. This is described in the following user tasks:
You can also run MfgBatch as an executable program under Windows or a shell under UNIX. In this case MfgBatch uses an input text file called FT05 containing a set of keywords similar to the keywords of the equivalent Version 4 utility. This document describes how to define the FT05 input file and run MfgBatch. |
|||
1. | Defining the FT05 file MfgBatch uses an input text file containing keywords that describe the processing to be done. It is largely derived from the CATIA Version 4 FT05 file. The available keywords are described below. Sample FT05 for generating an APT file:
Sample FT05 for generating an NC Code file:
|
||
Do not use the character $ in path names, as this character may be interpreted as an environment variable. | |||
2. | Running MfgBatch A CATIA V5 environment is needed in order to run MfgBatch. The entry point is the MfgBatch.exe executable program (under Windows) or MfgBatchCmd.sh shell (under UNIX). You should create a RunMfgBatch.bat file under Windows or a RunMfgBatch.sh file under UNIX. The three arguments required for running the utility are:
Running MfgBatch under Windows Here is an example of the RunMfgBatch.bat file you need to create. It must be accessible in your user path.
In this example, CATIA Version 5 is installed at The executable program is run by specifying the required arguments. The %1 parameter represents the FT05 file name. How to use it:
Example:
Running MfgBatch under UNIX Here is an example of the RunMfgBatch.sh file you need to create. It must be accessible in your user path.
In this example, CATIA Version 5 is installed at
You will find this information in the /CATEnv directory in the The shell is run by specifying the required arguments. The $1 parameter represents the FT05 file name. How to use it:
Example:
|
||
3. | Results For the command:
with:
results are:
If an error occurs, you should first look at the LOG files which give a diagnostic about the problem encountered (for example, syntax error or file not found). |
||
The following
keywords can be used in the FT05 file. Note that, compared with a CATIA
Version 4 FT05 file, only 3-letter keywords can be used in Version 5. Please refer to NC Data Options for more information about these keywords. APT output: |
|||
*REA |
CATProcess read directory (required keyword). | ||
*MOD |
CATProcess name (required keyword). | ||
*PRG |
Manufacturing program to be processed (required keyword). | ||
*WRI |
Write directory for the generated file. | ||
*MEM |
Generated file name. | ||
*APT 1 |
Generate APT source. Copy and/or Tracut instructions will not be processed. In this case there will be Copy or Tracut statements remaining in the generated APT source. | ||
*APT 2 |
Generate APT source. Copy and/or Tracut instructions will be processed. In this case there will be no Copy or Tracut statements remaining in the generated APT source. | ||
*REP |
If output file already exists with same name, allows replacing it (Y/N) | ||
*PPR n or *PPR nnn |
Display mode for general information (such
as tool names), Part operation comments, and Machining operation names (1:
PPRINT, 2: no comments, 3: $$). For example: |
||
*RUN |
Command to start processing (required keyword). | ||
Clfile, NC code or CATProduct output: |
|||
*CLF |
Generate Clfile (replaces *APT) | ||
*ISO |
Generate NC code (replaces *APT) | ||
*CGR |
Generate CATProduct in-process model (replaces
*APT). In previous releases, a CGR in-process model is generated with this keyword. |
||
Possibility to write CATProcess after processing: |
|||
*FLW |
CATProcess write directory. | ||
*MDW |
CATProcess name. | ||
*MRP |
If CATProcess already exists with same name, allows replacing it (Y/N). | ||
*AOF |
Associates the NC output file with the CATProcess after processing (Y/N). | ||
Other keywords: |
|||
*CIR |
Circular interpolation mode (0: no circle, 1: CIRCLE only, 2: CIRCLE or CYLINDR). | ||
*FGO |
3 axis or 5 axis (POINT/AXIS) | ||
*PPN |
Post-processor name | ||
*STX |
Syntax to be used or not for Cycles (Y/N) | ||
*TPS |
Compute only, no generation of APT, NC code or Clfile. | ||
*FCP |
Force compute. | ||
*TOM |
Tool Output Management (1: Tip, 2:Tool center). | ||
*FOM |
File Operation Management (1: output one file per program, 2: output one file per operation, 3: output one file for all programs). | ||
*HPM |
Home Point Management (2: write home point of the machine in FROM or GOTO according to the machine parameter). | ||
*LCK |
Lock operations. | ||
*SRP 1 |
Rapid feedrate at start of each operation. | ||
*RAP 1 |
Rapid defined according to the value defined on the machine feedrate. | ||
*RMT 1 |
No GOTO statement is to be included before each tool change. | ||
*GBC 1 |
Remove GOTO statements before axial machining operations. | ||
*PAC 1 |
Remove double points after PP commands. | ||
*ALP 1 |
Remove aligned points. | ||
*SPC |
Split circle into two circular arcs. 0: No
split. If this keyword if not used, the circle is not split. See Generated APT Output: Split Circles Behavior for more information about this functionality. |
||
*NDX N.D |
Format for point coordinates N=total number of digits for each point coordinate D=number of digits after the decimal point for each point coordinate. |
||
*NDI N.D |
Format for axial components N=total number of digits for tool axis vector component D=the number of digits after the decimal point for tool axis vector component. |
||
|