The Absolute Character Size Instruction, Si - HP 7470A Interfacing And Programming Manual

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

Advertisement

< )
)
' )
)
label can be moved slightly above or below a line, spaces or lines can
)
be inserted in text, or labels can be centered.
)
M'ft'lftlil
CP # of character-space-field widths, # of character-space
field heights
terminator
)
or
CP
terminator
If no parameters are specified, a CP command per­
forms a carriage return and line feed, moving one character-space-field
.)
height down and returning to the margin defined by the carriage-
return point. The carriage-return point is the last point moved to using
either a PA, PR, PU, or PD command or front panel controls, or the pen
position at the last DI or DR command. Refer to The Label Instruction
in this chapter.
When parameters are specified, the CP command moves the pen the
specified number of character-space-field widths to the right (a positive
value) or the left (a negative value). Note that right, left, up, and down
are relative to the label direction, where a positive value means from PI
toward P2. This is shown below.
UP<+)
T
U E F T ( - ) - ^
LABEL DIRECTION.
O i l .
fj—
R
'GHT<
+
>
t
DOWN (-)
DOWN (-)
t
RIGHTW-K3 ' I - I O
' N O I 1 3 3 U I 0 138Vl—LEFT<-»
UP (+)
The pen's position (raised or lowered) does not change when a CP com­
mand is executed. The parameters must be ^ -128 and < +128.
However, since there are approximately 90 character-space-field widths
and 40 character-space-field heights on the plotting surface, assuming
default sizing, the effective parameter range that will keep the labels on
the medium is considerably less, depending on the pen position at the
given time.
The use of the CP command to produce lettering along a line, but not
on top of it and alignment with a left-hand margin is illustrated in the
following program. The CP command in the second line moves the
label slightly .above the line. The CP command in the third line moves
the label slightly below the line and the CP command in the last line
performs a carriage return, line feed to the margin established by the
Jl4 LABELING
plot command in the second line. Inserting carriage return and line
feed characters directly into the label string in the third line causes the
same effect as the CP; command in the last line. If the carriage return
and line feed characters are available on your keyboard, you may
prefer that method.
" D F ; S P 1 ; P R 1 0 0 0 , 1 0 0 0 P D P R 3 0 0 0 , O P U ; P R - 3 0 0 0 , 0 ; "
" C P 5 , . 35;LBRB0VE THE LINE** PR2000, 1 0 0 0 ; "
" X T ; C P 0 , - . 9 5 ; L B B E L 0 N THE LINES^rfiND WITH R NERTV
" CP;LBMRRGINV
5 CHARACTER
SPACE
,
W
'
D
.
T H S
S
A B O V E T H E L I N E
H
/
/
BELOW THE L I N E
AND WITH A NEAT
1000.1000
2000,1000
M A
_ _ _
N
The Absolute Character Size
Instruction, SI
The absolute character size instruction, SI, specifies the
size of characters and symbols in centimetres.
P B w i
The instruction can be used to change the character size from
its default value or to another value and establish absolute character
sizing in centimetres so character size is not dependent on the settings
of PI a n d P 2 .
SI
width, height
terminator
or
SI
terminator
If parameters are included, two parameters are re­
quired, width and height. The defined width and height are interpreted
as centimetres, must be in decimal format, and may have any value
between -128 and 127.9999. An SI command with no parameters will
default to the values 0.19 for width and 0.27 for height.
An SI command remains in effect until another valid SI or SR com­
mand is executed or the plotter is initialized or set to default conditions.
An SI command which sets an error condition is ignored and the
character size does not change.
The following example letters the plotter's model number, 7470A, at the
specified width of 1 cm and height of 1.5 cm.
LABELING 5-15

Advertisement

Table of Contents
loading

Table of Contents