Structure of Source Files

There are four distinct sections to a source text file:

 

Variable Declarations

These all start with %DECLARE. They may appear anywhere within the file except within MACROS or the FORMAT TABLE.

 

Machine Tool Macro

This gives information about the machine tool CONFIGURATION such as maximum feeds/speeds, and also controls some elements of the menu configuration during the initial set up procedure within machining.

 

Macros

These groups of lines must all start with %MACRO={name} and end with %ENDM. One MACRO must exist for each type of machining instruction to be used. Definitions must not be nested. MACROS may appear in any order. %PROCEDURE={name} are a subgroup of MACRO definitions.

 

Format Table

This is a series of lines starting with the statement %FORMAT and ending with the statement %ENDF.

The format table must contain only valid instructions for formatting particular letter addresses.