TechNote  40U-014

4000  Series

4000 Series - Commonly Used ANSI Commands
7-24-96 Ed Palmer

Models: 4000 Series

Summary:
Information: 4000 Series - Commonly Used ANSI Commands


Resolution:


Command	ASCII Code	Decimal Code		Hex Code

* CPI - Characters per Inch *

10 CPI          ESC [ ; 72 SP G	27 91 59 55 50 32 71	1B 5B 3B 37 32 20 47
12 CPI          ESC [ ; 60 SP G	27 91 59 54 48 32 71	1B 5B 3B 36 30 20 47
13.3 CPI       ESC [ ; 54 SP G	27 91 59 53 52 32 71	1B 5B 3B 35 34 20 47
15 CPI          ESC [ ; 48 SP G	27 91 59 52 56 32 71	1B 5B 3B 34 38 20 47
16.7 CPI       ESC [ ; 43 SP G	27 91 59 52 51 32 71	1B 5B 3B 34 33 20 47
20 CPI          ESC [ ; 36 SP G	27 91 59 51 54 32 71	1B 5B 3B 33 36 20 47

20 CPI is available on the 4800 series and the late model 4490XT only.

* LPI - Lines per Inch *

3 LPI		ESC [ 240 SP G	27 91 50 52 48 32 71	1B 5B 32 34 30 20 47
4 LPI		ESC [ 180 SP G	27 91 49 50 48 32 71	1B 5B 31 38 30 20 47 
6 LPI		ESC [ 120 SP G	27 91 49 50 48 32 71 	1B 5B 31 32 30 20 47
8 LPI		ESC [ 90 SP G	27 91 57 48 32 71	1B 5B 39 30 20 47

* Font *

Gothic DP	ESC [ 10 m	27 91 49 48 109		1B 5B 31 30 6D
Gothic NLQ	ESC [ 13 m	27 91 49 51 109		1B 5B 31 33 6D	
Courier NLQ	ESC [ 14 m	27 91 49 52 109		1B 5B 31 34 6D
High Speed	ESC [ 15 m	27 91 49 53 109		1B 5B 31 35 6D
OCR-A		ESC [ 16 m	27 91 49 54 109		1B 5B 31 36 6D
OCR-B		ESC [ 17 m	27 91 49 55 109		1B 5B 31 37 6D

* Font Enhancement *

Cancel All	ESC [ 0 m	27 91 48 109		1B 5B 30 6D
Bold		ESC [ 1 m	27 91 49 109		1B 5B 31 6D
Underline	ESC [ 4 m	27 91 52 109		1B 5B 34 6D
Cancel Bold	ESC [ 22 m	27 91 50 50 109		1B 5B 32 32 6D
Cancel Undrline ESC [ 24 m	27 91 50 52 109		1B 5B 32 24 6D

* Forms Definition *

ESC [ p1 ; p2 ; p3 r
	p1= form length
	p2= top margin
	p3= bottom margin

	All parameters are set in decipoints.  720 decipoints= 1 inch.

For example, to set an 11 inch form with no top or bottom margin:
		ESC [ 7920; 0; 0 r

Please note that setting the form length rests the top of form to the 
current position.

ESC= Escape  SP= Space





Specifications subject to change without notice.
® All trademarks are property of their respective holders at the time of this publication.

If you have any questions or comments regarding this document, please contact

TallyGenicom Technical Support.



TallyGenicom has taken care to ensure that the information is complete, accurate and up-to-date. However, TallyGenicom assumes no responsibility for errors or omissions which may occur. All the information provided is subject to change from time to time at the sole discretion of TallyGenicom. This information is provided "as is" without warranty of any kind. TallyGenicom disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall TallyGenicom, or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if TallyGenicom, or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.