Using the Command Summary. Epson LQ-510

Using the Command Summary. Epson LQ-510
Add to My manuals

advertisement

Assistant Bot

Need help? Our chatbot has already read the manual and is ready to assist you. Feel free to ask any questions about the device, but providing details will make the conversation more productive.

Manual
Using the Command Summary. Epson LQ-510 | Manualzz

Using the Command Summary

This chapter lists and describes all the commands available on the

LQ-510.

The first part of this chapter lists all commands in numerical order and gives the number of the page where each is fully described. If you know which command you are looking for, consult the numerical list.

Note: The Quick Reference card at the end of the book also contains a list of the commands divided by topic, with page number references that direct you to full explanations of the commands.

The second part of this chapter lists and describes each command separately; the commands are divided into the following subjects:

Printer operation

MSB control

Data control

Vertical motion

Horizontal motion

Overall printing style

Print size and character width

Print enhancement

Word processing

Character sets

User-defined characters

Graphics

Each command description has a format section and a comment section. The format section gives the ASCII, decimal, and hexadecimal values for the command. These three formats are equivalent, and it should be easy to pick the one most suited to your purpose. The comment section describes the effect of the command and gives any additional information necessary for using it.

Note: Some application programs use control key sequences. See the Control Key chart on page 9-4.

9-2 Command Summary

Using the Command Summary

The simplest type of command consists of a single character to be sent to the printer. For instance, to print in condensed mode, the code format is:

ASCII code:

Decimal:

SI

15

H e x a d e c i m a l : 0 F

This code can be sent from a program by sending the code 15 directly.

More complex commands consist of two or more character codes.

For example, to print in double-wide mode, the code format is the following:

ASCII code:

Decimal:

ESC W n

27 87 n

Hexadecimal: 1B 57 n

In this case n can be either 1 (on) or 0 (off), to begin or end doublewide printing. You can use either of the following commands to turn on double-wide print from BASIC:

LPRINT CHR$(27);CHR$(87);CHR$(l)

LPRINT CHR$(27);"W";CHR$(l)

For the following commands that use only 0 or 1 for the variable, either the decimal or hexadecimal values 1 and 0 or the ASCII characters 1 and 0 can be used:

ESC U, ESC x, ESC p, ESC W, ESC S, ESC -, and ESC %

For example, in BASIC you can turn on proportional spacing with either of these statements:

LPRINT CHR$(27);"p";CHR$(l)

LPRINT CHRS(27);"p";"l"

Command Summary 9-3

Using the Command Summary

Dec.

10

11

12

13

7

8

9

3

4

5

6

1

0

2

Control Key Chart

Some application programs use control key codes for decimal values

O-27. The table below gives you the proper values. The Control Key column indicates that you press the control key at the same time you press the key for the letter or symbol in that column. For example, you press the control key and A at the same time to send the value 1.

Some application programs that use this system cannot use

Control-@, and many programs use the control keys for other purposes.

Hex.

07

08

09

0A

0B

0C

0D

00

01

02

03

04

05

06

Ctrl. Key

G

H

I

E

F

@

A

B

C

D

J

K

L

M

Dec.

14

15

16

17

18

19

20

21

22

23

24

25

26

27

Hex.

15

16

17

18

19

1A

1B

0 E

0F

10

11

12

13

14

Ctrl. Key

S

T

Q

R

N

O

P

X

Y

Z

U

V

W

[

9-4

Command Summary

advertisement

Related manuals

Download PDF

advertisement

Table of contents