Acu-Rite CNC 3500i user manual Macro Body Structure

Models: CNC 3500i

1 472
Download 472 pages 55.55 Kb
Page 434
Image 434

11.4 Advanced Programming

Macro Body Structure

The macro body is defined in the same way as a sub-program.

Format: Oxxx

O identifies it as a macro.

xxx is the label number.

Example 1:

N200

O 201

 

N210

-----

Terminate the macro with an M99 code.

Use local variables within the body of a macro or sub-program only. You cannot use them to transfer data to other macros or sub-programs. If further sub-program calls are made from the macro body, you must transfer data from the local variables to common variables. The common variables can then be referenced to transport data to the further sub-program.

N220

#100 = #20

N230

Common variables range from #100 to #220.

The macro must either be part of the program from which it is called or "included" using the program inclusion code. Refer to "File Inclusion" in this section.

408

11 G-Code Edit, Help, & Advanced Features

Page 434
Image 434
Acu-Rite CNC 3500i user manual Macro Body Structure