Configuring the Post

Configuration Files

The post processor files, MPOSTWIN.EXE, LPOSTWIN.EXE and EPOSTWIN.EXE, have a configuration file associated with them: Post.ini. This file identifies the path and name of the POSTFORM file. The following lines are the contents of the Post.ini file:

POST.INI - Ground Support Post-Processor Configuration file.

Copyright 1989 - 1999 Ground Support

Note: Comments may be placed in this file by simply placing

them after 2 or more SPACE (not TAB!) characters

[MPOST]

Format C:\SURFCAM\POSTLIB\PostForm.m

[LPOST]

Format C:\SURFCAM\POSTLIB\PostForm.l

[EPOST]

Format C:\SURFCAM\POSTLIB\PostForm.e

Post.ini File

 

SURFCAM.LOG Files

You can create a post log file for a post if you insert the Logging? Y command in the correct section of the POST.INI file. This example shows how to create a SURFCAM.LOG file for MPOST.

POST.INI - Ground Support Post-Processor Configuration file.

Copyright 1989 - 1999 Ground Support

Note: Comments may be placed in this file by simply placing

them after 2 or more SPACE (not TAB!) characters

[MPOST]

Format C:\SURFCAM\POSTLIB\PostForm.m

Logging? Y

[LPOST]

Format C:\SURFCAM\POSTLIB\PostForm.l

[EPOST]

The SURFCAM.LOG file is created in the \SURFCAM\Surf2003\Mpost folder.

The log file contains three types of information.

   1.   The INC record “type number”, size and the numeric and text parameters.

   2.   The posts internal “TM” record into which the INC data is converted.

   3.   The actual lines of NC code output.

The log file is over written when the post runs. Do not delete the previous log files.

Foreign Language Support

The post processor provides foreign language support through the POST.DEF file. This file is an ASCII text file that lists all messages and prompts used by the post processor. The numbers at the beginning of each line must not be changed. These are internal addresses for the post processor. Wording after these numbers can be translated into virtually any language.

Note   Some words may be sequence names and should not be translated for clarity between the messages and the POSTFORM file.

Machine Specific Output Folders

You can output a post processed file to any folder. This can be accomplished using two methods. You can specify the output folder in the SURFCAM.PST file or in the POSTFORM files.

PST File

In the example below—from the SURFCAM.PST file—the Copyfile command is used to place the output file in the subfolder C:\MyProjects. Use the subfolder name in the Task command, also, and another Delete command after the Copyfile command.

PostItem Fanuc

 

 

Status

Fanuc 15M-B

 

ChDir

“c:\SURFCAM\Surf2003\MPOST”

 

Delete

“%p%N.NCC”

 

Command

“c:\SURFCAM\Surf2003\MPOST\MPOSTWIN” “%p%N”  1

 

Copyfile

“%p%N.NCC” “c:\MyProjects\%N.NNC”

 

Delete

“%p%N.NCC”

 

 

Task

“c:\SURFCAM\Surf2003\sedit\sedit” “c:\MyProjects\%N.NCC”

 

POSTFORM File

To save an .ncc file in the subfolder C:\MyProjects, add a Drive command like the one below to a POSTFORM file—like Postform.m.

Drive C:\MyProjects\

Note:   There must be a trailing back slash (\).

It is recommended that you place a separate Drive command after each Name command so that all the NCC programs run on a specific machine will be saved in their own folder.

You can, however, place a Drive command at the very top of the POSTFORM file. All NCC programs will then be routed to this folder unless the machine chosen has its own Drive command, in which case that one will be used.

Return to SURFCAM Index


Your Ad Here