RD-KT247 thermal printers
50 / 61
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);
str[i++] = 0x1b;