Numeryx Home > User/Programmer


An-112, Copyright © by Gil Hagiz
Last updated Jun-29-2006
For version 6.02.1 and higher
(For version 5.11)


The engraving sub program can be called from any program for engraving characters.
The program is provided by the installer/retrofitter.
The text to engrave is written in English characters and its source can be plain text, received from a data entry program, functions that return text, e.g. date$, or a variable, e.g. part number.

Engraving Explained

The text to engrave is entered in a string variable A$.
The associated numerical data is entered under letter addresses.
A$ must be defined in the beginning of the user program before other arrays:

dim A$(80)
This statement allocates memory for an 80 character string A$.
A$ is set by the user program and read by the engraving sub-program.
To assign text to the string use plain text or functions that return strings, e.g.:
A$='TODAY IS '+date$
A$=str$(123456)         \converted according to the last programmed Format
A$=str$(#10)            \#10 can be set as a part counter

To call the engraving sub-program a line like this is used:

g210 x-140 y-70 z10 f1000 r0 P12 g80 R2 Z-2 Q.8 D2 f200
G210 Engraving (non modal)
XY Beginning of line or center of circle
Z  Z at start and leave
F  Cutting feed
R  0 for line, otherwise radius of circle
P  Slope or direction of first character in a circle
After g80 (same as for drilling canned cycles)
R  R-plane
Z  Cutting depths (absolute)
Q  Scale
D  Spacing
F  Down feed


Once all variables have been assigned, for the next text the most likely changes are the position, so it is enough to enter:

g210 x-5 y-1 z.4

The available character set is:

Space, 0 to 9, A to Z,  +  -  :  .  /
Other symbols may be added by the user. Lowercase alpha characters are converted to uppercase and undefined characters leave spaces.

Sample Program

This program engraves the text shown in the picture above.

dim a$(80)
g210 x0 y0 z10 f1000 r81 p181 G80 R1 Z-1 q d7 f200

a$=date$+' '+time$
g210 x-40 y0 z10 f1000 r p G80 R1 Z-1 q.7 f200

g210 x-140 y-70 z10 f1000 r p12 G80 R1 Z-1 q.8 d2 f200