38396-8000
MACROS
June 1999
A decimal point is printed out between the whole part and the fractional part. The fractional part is rounded to
the least significant place. When zero places are reserved for the fractional part, then no decimal point is
printed out. Trailing zeros are printed as necessary if there is a fractional part. At least one place is reserved for
the whole part, even when a zero is used there. If the value of the whole part has fewer digits than have been
reserved, then leading spaces are output. If the value of the whole part has more digits than has been reserved,
then the field is expanded so that these numbers are printed.
A carriage return is sent out after every DPRNT block.
DPRNT[ ] Examples
Code Output
îš—îš—îš—îš— îš—îš—îš—îš—îš—
N1 #1= 1.5436 ;
N2 DPRNT[X#1[44]*Z#1[03]*T#1[40]] ; X1.5436 Z 1.544 T 1
N3 DPRNT[***MEASURED*INSIDE*DIAMETER***] ; MEASURED INSIDE DIAMETER
N4 DPRNT[] ; (no text, only a carriage return)
N5 #1=123.456789 ;
N6 DPRNT[X-#1[25]] ; X-123.45679 ;
EXECUTION
DPRNT statements are executed at block interpretation time. This means that the programmer must be careful
about where the DPRNT statements appear in the program, particularly if the intent is to print out positional
information. Generally, a program is interpreted many blocks ahead in order to prevent the machine from
pausing between movements.
G103 is useful for limiting lookahead. If you wanted to limit lookahead interpretation to one block, you would
include the following command at the beginning of your program: (This actually results in a two block
lookahead.)
G103 P1 ;
To cancel the lookahead limit, then issue a G103 P0 ;. G103 can not be used when cutter compensation is
active.
OPERATION N OTES
This section explains the additional screens and operator actions that come with macros.
Macro variables can be saved and restored to RS-232 or the optional floppy, much like parameters, settings,
and offsets. Refer to the "Part Program Input / Output" section for RS-232 sending and receiving of macro
variables, or the "Floppy Operation" section for sending and receiving them with this method.
Variable Display Page
The macro variables are displayed and can be modified through the current commands display. The variable
display is located after the operation timers display. To get to this page, press CURNT COMDS and use the
page up/down key.