Setting left and right margins, Igp for dot matrix printers user guide – Dascom T2250 User Guide IGP for Dot Matrix Printers User Manual

Page 32

Advertising
background image

IGP for Dot Matrix Printers

User Guide

32

Setting Left and Right Margins

This escape sequence allows the user to set the left and right margins from the host. However,
instead of using column numbers, which change when the CPI setting is changed, this command
sets absolute margins in increments of 1/120 of an inch that do not change location when the CPI
selection is changed.

The basic margin setting sequence is:

ESC [ LM ; RM " s

1B

5B 3B 22

73

Each margin setting is calculated from the first dot position on the page. For example, if you want
the left margin set 1 inch from the first dot position and the right margin set at 8 inches from the
first dot position, multiply 120 x the desired inch setting and enter that amount in the proper
location in the escape sequence.

To finish this example, you would finally enter margin values of 120/120 and 960/120, which
would give you the escape sequence:

ESC

[ 120 ; 960 " s

1B 5B 313230 3B 393630 22 73

Advertising