gfm PS-180 Скачать руководство пользователя страница 5

Escape-Sequences  continued

Hex

 

              

 

 Dec

 

       

 

 Name

 

           

 

 Function

 

 

09

09

HT

TAB to character column

+n 0C

12

FF

n dots line feed

14

20

DC4

Self Test

+n 20

32

(sp)

 Add n dot space between characters.

+n 24

36

$

TAB to dot position. Range n = 1 RM * 6.
Command ignored if n is out of range

2A

42

B

same as ESC-'K'.

+n 2D

45

-

Underline Mode. n = 0 is off, n = 1 is on.

30

48

0

Set line spacing to 9 DL/CL (default)

31

49

1

Set line spacing to 8 DL/CL

32

50

2

Set line spacing to 12 DL/CL

33

51

3

same as ESC-'A'.

40

64

@

Reset. Initialise Printer

+n 41

65

A

Set   line   spacing   to   n   DL/CL.   n0  through   8   is 

treated as n=8. n09 through 127 is treated as n.
n>127 is treated as (n-128)

48

72

H

80 Characters / line mode

+n 4A

74

J

fast Paper Feed n DL. The column counter is 

not changed

4B

75

K

Bit Image Mode. See separate section Bit-

Image Graphics

53

83

S

Double Strike

+s 58

88

X

Set Margins. +n1 & n2 = smaller => left margin, 

bigger => right

+s 5B

91

[

+n1, n2 set Character Size

62

98

b

Uni-directional printing

66

102

f

Draft mode

68

104

h

40 Characters / line mode

70

112

p

Fine Resolution mode

+n 72

114

r

Revers/Normal video (n=1/n=0).

73

115

s

Normal strike

+n 7A

122

z

Printing Direction: 

Invers/Normal Printing (n=1/n=0)

9

Bit-Image-Graphics Protocol

The ESC K protocol is similar to EPSON line printers with limitations due to the 
fact that the printers used to have a fixed number of dot positions (ND). If more 
data is specified than the printer being used is capable of printing, the first ND (left 
part) will be printed and the remaining columns of data will be ignored (truncated 
to ND). If the margins are changed with the ESC X +s command then the effective 
ND is also changed.

Protocol:

ESC K n1 n2 (n2*256 + n1 bytes of data) PRINT

Example:

1B

hex

 K 16

dec

 1

dec

 (272 bytes of data) 0D

hex

will print 272 columns of BIT-IMAGE graphics (truncated at 
ND columns). 

If the number of bytes = N, the values of n1 and n2 are:
n1 (lsb) =

the remainder of dividing N by 256 (N MOD 256). The range is 

0

dec

 through 255

dec

 but any number larger than the number 

of dots per line will be truncated. 

n2 (msb) =

the integers quotient of dividing N by 256 (INT(N/256)). Any 

data for n2 > 0

dec

 will be truncated. 

The character line spacing remains in effect so if the graphics is desired to be 
printed on adjacent character lines with no blank dot lines between the graphic 
lines, the line spacing must be set by sending ESC 1 (8 DL/CL). 
The first byte of data will be printed in the current dot position as a vertical group 
of 8 dots defined by the data byte. The most significant bit of the byte will be 
printed at the top of the group of dots and the least significant bit will be printed at 
the bottom of the group of dots. (If the appropriate bit is a logical 1, a dot will be 
printed. If the bit is a 0, nothing will print at that position.) The

 

second byte will be 

printed in the next dot position etc., etc., until the byte n1 + (n2 x 256) is printed. 
Printing does not occur until a PRINT command is received or until more than ND 
bytes of data are received. 
Graphics data and ASCII text data can be printed on the same line by not printing 
until all required data is in the printer's input buffer. Printing does not occur until a 
PRINT command is received or if the ND counter gets greater than the ND for the 
printer. 
This family of printers has solenoids mounted horizontally with each printing part 
of the dot positions for each dot line. Paper is automatically advanced one dot line 
as each dot line is printed. The motor is turned off any time the next line of data is 
not ready to be printed when the printer completes the previous character line. 
The motor must be turned on for one shuttle to get back in sync before any 
printing can be done, which causes the paper to feed one dot line. For graphics 
mode this means that DATA MUST BE SENT AT A FAST ENOUGH RATE THAT 
IT STAYS

 

AHEAD OF THE PRINTER TO AVOID BLANK DOT LINES FROM 

OCCURRING between each 8 dot lines of BI data. 

10

Содержание PS-180

Страница 1: ...ion USA The contents of this manual are subject to change without notice Reproduction of any part of this manual in any form whatever is without GFM s express permission is forbidden All rights reserved Issue March 31 2006 Declaration of Conformity Document EUPS180 ENGL Product Name Table Printer PS 180 We declare the products conformity to the following standard 89 336 EWG EEC from 3 5 1989 The d...

Страница 2: ...Lamps 7 Control Codes and ESC Sequence Codes 8 Bit Image Graphics Protocol 10 Character Set 11 Data Connectors 12 Specifications 12 Interface Board Dip Switches 13 Interface Board Jumper Options 13 Interface Board Timing Diagrams 14 Changing of Ink Ribbon 15 Changing of Paper Roll 16 3 Introduction 4 Cover Printer Module Controller Board Printer Base Power Supply Adaptor ...

Страница 3: ...rinter module and lift the printer module carefully A listing of possible settings you will find on page 13 5 Operating the printer Interface cable Please use the interface cable that is delivered together with this printer Turn off printer and analysis system before you connect these two devices Please connect data line first before you connect the power cable Power Connection Please only use the...

Страница 4: ... Dec Name Function 09 09 TAB TAB 0A 10 LF Line Feed advance paper one line 0D 13 CR PRINT contents of buffer move the column pointer to LEFT MARGIN 18 24 CAN Clear buffer 1B 27 ESC ESCAPE see ESCAPE sequences section 1C n 28 FS Direction of Characters n 1 Rotate n 0 Normal Escape Sequences An ESCAPE SEQUENCE is the ESC character immediately followed by the byte or bytes as defined below to complet...

Страница 5: ...re n1 lsb the remainder of dividing N by 256 N MOD 256 The range is 0 dec through 255 dec but any number larger than the number of dots per line will be truncated n2 msb the integers quotient of dividing N by 256 INT N 256 Any data for n2 0 dec will be truncated The character line spacing remains in effect so if the graphics is desired to be printed on adjacent character lines with no blank dot li...

Страница 6: ... compatible Pin Name E A Funktion 1 DTR A connected to PIN 8 2 TXD A RS232 Transmitted Data no function 3 RXD E RS232 Received Data 4 N C 5 Masse Logic Ground 6 DTR A connected to PIN 8 7 RTS A Pulled up 8 DTR A Hardware Handshake Line 9 N C Connector parallel Centronics Version DB 25 female Centronics pin compatible Pin Name E A Funktion 1 STB E Active LOW Pulse to send data to printer 2 D0 E ASC...

Страница 7: ...l printing direction 13 Parallel Timing Diagram Parallel Interface Centronics DATA DATA VALID su hold 50 nSek min 50 nSek min STB ACK BUSY su Set Up Time Data valid until STB LOW 50 nanoseconds min hold Hold Time STB LOW until DATA changes 50 nanosesconds min STB width 20 nanoseconds min ACK width 0 5 microseconds nominal STB LOW until BUSY HIGH 40 nanoseconds nominal Serial Timing Diagram serial ...

Страница 8: ...Changing of Ink Ribbon 15 Changing of Paperroll ...

Отзывы: