PRINT
Print is used to print text to the screen. PRINT can be used to display text, parameter values,
times, dates, etc. on the History Line above the graphics window.
Example: P87=32.45
PRINT [N=#87] shows “N=32.4500”
#n[LT] #n[LT] displays parameter n with L leading digits and T trailing digits.
Example: P100=1.235 P101=2.87656
PRINT [P100=#100[04] P101=#101[33]] shows
“P100=1.2350 P101=002.877”
If the leading and trailing fields are left blank, the default leading and trailing format for the
machine setup parameters is used.
When LT=0, exceptions apply.
If LT=0, the ASCII value of the parameter is shown.
Example: P1=72 (ASCII H)
P2=105 (ASCII i)
PRINT [#1[00]#2[00]] shows “Hi”
If LT=-1, the parameter is ignored. The time is shown in format 0hh:mm:ss. If LT=-2, the
parameter is ignored. The date is shown in format yy⁄mm⁄dd.
Example: PRINT [Time=#1[-1] Date=#1[-2]] shows “Time=012:51:52 Date=15⁄10⁄23”
The print command can be used to clear the print line:
PRINT [ ]