another character; the ASCII code characters " {" is defined by sending " {" twice
consecutively.
ASCII HEX
Function
{A
7B, 41 Select the code set A
{B
7B, 42 Select the code set B
{C
7B, 43 Select the code set C
{S
7B, 53 SHIFT
{1
7B, 31 FNC1
{2
7B, 32 FNC2
{3
7B, 33 FNC3
{4
7B, 34 FNC4
ESC ‘
[Name]
Print curve
[Type]
ASCII
:
ESC
‘ nL nH x1L x1H x21L x21H ……. xkL xkH CR
Decimal:
29 39 nL nH x1L x1H
x21L x21H ……. xkL xkH 13
Hex:
1B 27 nL nH x1L x1H
x21L x21H ……. xkL xkH 0D
[Scope]
0 ≤ nL ≤255
0 ≤ nHL ≤1
N is the number of the curve’s dots and N =
nH x 256 + nL
The position of the curve’s dots in one horizontal line:
X = xkH x 256 + xkL
[Explanation]
Each curve consists of many dots. The command indicates that the printer prints n
dots in one horizontal line, and continuously using the command can print out the curve which
the user needs.
[Note]
This command is only applicable to impact dot matrix printer and some thermal models.
[Example]
Print curve graphic of below five equations:
Y1=50+40*abs
(
-0.01*X
)
*sin
(
X/10
)
Y2=50-40*abs
(
-0.01*X
)
*sin
(
X/10
)
Y3=50
Y4=50+40*abs(-0.1*X)
Y5=50-40*abs(-0.01*X)
C program is as follows:
unsigned char str[50];
float X;
unsigned int m_cur1,m_cur2,i;
for(X=0;X<150;X++)
//print one line of 150 dots
{
m_cur1= 40*exp(-0.01*X);
YY= Y*sin(X/10);
Summary of Contents for RD-FH8C7
Page 41: ...B character set 1 and 2 C International standard ASCII ...
Page 43: ......