This section will provide you with a very brief overview of the syntax and functionality of the ICAM macro language. The ICAM macro language allows users to manipulate the records from an input command in order to alter the sequence of records being processed. Macros can construct new records for processing, or modify/suppress existing records in the input file. They allow reading from and writing to external text files, forward-looking to search ahead for more information and take decisions to optimize the process.
The macro language syntax is similar in appearance to the APT-like cutter location (CL) data produced by many CAM systems. Statements begin on a new line in the form of either variable = expression, command/parameter list or simply command. Commands are either proprietary macro words (e.g. IF, OUTPUT, MATCH, TAPEWT) or regular major words such as the ones in the input CL file (e.g. GOTO, COOLNT, SPINDL, LOAD).
Comments are preceded by two dollar characters “$$”. Statements longer than 80 characers are continued on the next line by ending the first line with a single dollar character “$”.