The Character S L A N T Instruction, Sl; The User Defined Character Instruction, Uc - HP 7470A Interfacing And Programming Manual

Graphic plotter
Hide thumbs Also See for HP 7470A:
Table of Contents

Advertisement

X
Che Character Slant Instruction, SL
)
( )
1
.)
', )
( )
< )
y
>
( )
< )
i
)
( )
i )
( )
( )
( )
C )
■ ; )
c )
The character slant instruction, SL, specifies the slant
with which characters are lettered.
The User Defined Character
Instruction, UC
The instruction may be used to create slanted text, particularly
for emphasis, or to reestablish upright labeling after an SL command
with parameters has been in effect.
SL
SL
tan 6 (terminator)
or
(terminator)
ilZu
i]J
The instruction may be used with or without param­
eters. When parameters are included, the first parameter is interpreted
as the tangent of the angle from vertical as shown below. Parameters
following the first parameter are ignored. An SL command without
parameters defaults to the same value as SLO and labels are not
slanted.
The useful parameter range is ±0.05 to ±2 when using default-size
characters and up to ±3.5 for large letters.
An SL command remains in effect until an IN, DF or new SL command
is received or the plotter is initialized from the front panel.
The following example letters HP at a slant of +45 degrees and - 4 5
degrees.
" D F ; S P 1 ; S I 1 . 3 , 1 . 8 ; P R 3 0 0 0 , 6 0 0 0 ; "
" S L 1 ; L B H P V
" S L - 1 ; P R 1 3 0 0 , 0 ; L B H P V
)
j-18
LABELING
'
)
lllWHlUilllllil
The user defined character instruction, UC, provides
the means to draw characters of your own design. It is not included in
the instruction set of the 7470 plotter with an HP-IL interface.
This instruction can be used to create symbols not included in
the plotter's character sets, to draw logos, or to create your own
character fonts.
EHEU uc
uc
EXPLANATION
(pen control,) X-increment, Y-increment,(pen control,)
(X-increment,Y-increment,)
terminator
or
terminator
The instruction is treated as a NOP instruction on a
plotter with an HP-IL interface (refer to Appendix C).
The following paragraphs apply to plotters with either an HP-IB or
RS-232-C interface.
Each segment of the character is drawn on a character grid according
to the three types of parameters in the command.
A grid is established on each character-space field by dividing it into
six horizontal units and 16 vertical units. The size of the character-
space field and, hence, the grid unit is set by the current size command.
The size of the character-space field and thus the grid is always twice
the current character height and IV2 times the current character width.
In order to draw a user defined character the same size as a character
drawn with a label command, the user defined character must be de­
signed in the lower-left corner of the grid with a width of four grid units
and a height of eight grid units.
The three types of parameters are described below.
The X- and Y-increments should appear in pairs and must be greater
than —99 and less than +99. They specify, in decimal format, the
number of X- or Y-grid units that the pen will move horizontally or
vertically from the current pen position. The parameters need not be
integers; fractional portions are used. Positive X-increment parameters
move the pen in the direction of labeling, i.e., to the right with default
label direction, and positive Y-increment parameters move the pen up
with default label direction. Negative parameters move the pen in the
opposite direction. Unmatched X,Y increments are discarded, error 2 is
set, and the rest of the character is drawn.
Pen control parameters must be less than or equal to -99 or greater
than or equal to +99. A positive pen control parameter lowers the pen; a
LABELING
5-19
I

Advertisement

Table of Contents
loading

Table of Contents