23 24
YY=INT(Y*SIN(I/10))
PRINT #1,ESC;CHR$(39);CHR$(5);
PRINT #1,CHR$(50+YY);CHR$(0);
PRINT #1,CHR$(50-YY);CHR$(0);
PRINT #1,CHR$(50);CHR$(0);
PRINT #1,CHR$(50+Y);CHR$(0);
PRINT #1,CHR$(50-Y);CHR$(0);
PRINT #1,CHR$(13);
NEXT I
PRINT #1,CHR$
(
10
);
The printout on executed the program is shown as below:
ESC c 7 On/off curves compensation
Format: ASCII: ESC c 7 n
Decimal: 27 99 7 n
Hexadecimal: 1B 63 7 n
Explanation:
The command is used to enable or disable the function of
compensation on printing curving graphics. For single curve,
the compensation means drawing a line between the last
position and the current position if the offset of the both
horizontal positions is more than 1. In this way the printed
curving graphic looks more smooth.
n=1, enable the curves compensation; n=0, disable the
compensation function. Default n=0.
3.7 Other Control Commands
ESC @ Initialize printer
Format: ASCII: ESC @
Decimal: 27 64
Hexadecimal: 1B 40
Explanation:
The command is used to initialize the content of the printer
as below:
®
Clear print buffer;
®
Restore default value of all commands;
®
Delete user-defined characters.
ESC c 5 Enable/disable panel switch function
Format: ASCII: ESC c 5 n
Decimal: 27 99 5 n
Hexadecimal: 1B 63 5 n
Explanation:
The command is used to enable or disable the function of the
panel switches(buttons). n=0-255.
If n=<
×××××××
1>B, disable the function of the panel
switches(buttons);
If n=<
×××××××
0>B, enable the function of the panel
switches(buttons). Default n=0.
3.8 Chinese Print Commands
FS & Enter Chinese printing mode
Format: ASCII: FS &
Decimal: 28 38
Hexadecimal: 1C 26
Explanation:
The command is used to enter Chinese character printing
mode. After received the command the printer allows receive
Paper feeding direction