Starting A Script; Files And Buffers; Lookup Table Definition; Temporary Storage Definition - Monarch 9460 Programmer's Manual

Adk printer
Hide thumbs Also See for 9460:
Table of Contents

Advertisement

S t a r t i n g a S c r i p t
Every script has the primary function START. The START function is the starting point of your
program. Script execution control starts with the first command in START, and stops when the last
command in START is performed.
FUNCTION START
F i l e s a n d B u f f e r s
The Lookup table is a collection of records. Data is stored in the printer as an ASCII flat file.
You can tell the printer how to store defined buffers in memory. You can define the following
buffers:
♦ Scratch buffer
♦ Lookup table buffer
♦ Temporary storage buffer
♦ Printer buffer
♦ Array buffer
A buffer may contain up to 255 separate fields, each field being 1 to 999 bytes long.
Use the DEFINE command to specify the field definitions. Field-type, field-name, field-length, and
data-type are the fields used to define the buffer. See Chapter 5, "Command Reference," for more
information.

Lookup Table Definition

The lookup buffer is the working area for data downloaded to the printer. The lookup table definition
tells the printer how the lookup records are received from the PC. The printer allocates buffer space
for the record when it receives the definition.
The number of records stored depends on the size of each record and the script's size.

Temporary Storage Definition

The temporary storage buffer is used as a temporary storage for arithmetic operations and temporary
variables.
4-2 Program Structure
BEGIN
.
program-body
.
END

Advertisement

Table of Contents
loading

Table of Contents