Brief description of TNCdecimalConverter
========================================

Version 1.0

Contents
========

1. General Information
2. Program Call
3. Exit Codes
4. Commands
5. Examples
6. What's New?


1. General Information
======================

The decimal places converter is a command-line tool for rounding off values in
converted FK programs for older TNC controls.
Values in L, C and CC blocks are converted from 4 decimal places to
3 decimal places.

This makes it possible for FK programs created on newer TNC controls or
programming stations and then converted to HEIDENHAIN plain-language format
(file extension .H) to be processed by older TNC controls, which can only read
values with up to 3 decimal places.

Blocks that remain identical after the previous conversion from FK to .H may
only have 3 decimal places to begin with. This includes APPR/DEP blocks.



2. Program Call
===============

TNCdecimalConverter.exe <input file name> [<optional parameter(s)>]

This call starts the converter and loads the indicated NC program for conversion.
As a default, the converted program is output to a file with the name of the
source file and the file extension conv.h. A log file is created automatically.
This file has the name of the source file and the file extension .log.
Any error messages and the conversion status (succeeded, incomplete or failed)
are entered in the log file.

You can use parameters to specify any name for the output file and/or the log file:

-o<output file name>
-l<log file name>

The paths for the file names can be relative or absolute.

Enter the parameters ?, -h or /h for an overview of functions.
Enter HELP <command> for detailed information about calling the functions.


4. Parameter Overview
=====================

Here is an overview of the possible commands.

?
-h
/h   : Help/Overview of the functions included

-o	   File name of the output file
/o	   File name of the output file
-I	   File name of the log file
/I	   File name of the log file
	
-ver   Show version number of the converter



3. Exit Codes
=============

As default, the following exit codes are reported to a calling program/batch:


0 : No error occurred
1 : Warning
2 : Error
3 : Missing or invalid arguments





5. Examples
===========

Examples of command line calls:
--------------------------------
  TNCdecimalConverter c:\1234.h -oc:\converted\1234.h -lc:\converted\logs\1234.log
  TNCdecimalConverter -ver
  TNCdecimalConverter -h 



6. What's New?
==============


Version 1.0
===========
- Initial release




