Go to the Previous PageGo to the Main ViewGo to the Next PageGo to a printer friendly version of this document
Chapter 7 Horizonial Control Commands
(Reference Guide ML320/520/590's)
Left and Right Margin Commands (ML)

ML320 Std., ML321 Std.
ML520, ML521

    Function
ASCIIDecHex
Set Left MarginESC % C n1 n2 n327 37 67 n1 n2 n31B 25 43 n1 n2 n3
Set Right MarginESC % R n1 n2 n3 n427 37 82 n1 n2 n3 n41B 25 52 n1 n2 n3 n4

In the MICROLINE Standard emulation, margins for these commands are measured in units of 1/120 from the leftmost printing position.

Left Margin Parameters n1 n2 n3
Parameters n1 n2 n3 represent a three-digit ASCII number for the value of the location for the left margin. If the value you wish to assign to the left margin is 99 or less, use zero for the first digit.

Right Margin Parameters n1 n2 n3 n4
Parameters n1 n2 n3 n4 represent a four-digit ASCII number for the value of the location for the right margin. If the value you wish to assign is less than four digits, use zeros for the first digit(s). The right margin must be at least 60 units greater than the left margin. If no left margin has been set, the minimum value for the right margin is 60 units.

You must set the right margin before sending any data for the line on which it is to take effect.

The Maximum Margin Values table below lists the widest allowable margins.

Table 24: Maximum Margin Values, MICROLINE Standard Emulation
ModelLeft Margin n ValueRight Margin n Value
ML320 Std., ML52008990960
ML321 Std., ML52109991632

For example, suppose you want to set one-inch margins on a standard 8-1/2 page. The left margin will be 120/120 from the leftmost position, so the command to set it is:

LPRINT CHR$(27);%C;120

The right margin is 7-1/2, or 900/120 from the leftmost position, so the command to set it is:

LPRINT CHR$(27);%R;0900

Oki Data has taken care to insure that the information is complete, accurate and up-to-date. However, Oki Data 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 Oki Data.
Copyright 2014, Oki Data, Americas, Inc.