2 script creation: an overview – Microcom LDSII User Manual
Page 21
Chapter 1
Designing Using LDSII
LDSII Programming Guide - 880015-0123
5
1.2
Script Creation: An Overview
This section is intended to show a sample script file that will be used to explain the
individual components of the script.
A script consists of printer commands, a script header, field formats, and text data. The
script is initiated by sending an “^A)” (Begin Script) and continues until a “^Z)” (End Script)
has been received. All commands, unless otherwise noted, are terminated with either
another command or carriage return (ASCII 0x0D) character. The printer ignores the LF
(0x0A) character so it may be helpful to terminate each line with a CR+LF to assist in the
creation and troubleshooting of script files. Script files may contain up to a maximum total of
20,000 characters and up to 1000 different commands. Each command may contain up to
a total of 20 characters for the argument. This
provides the flexibility in script creation to
handle even the most demanding applications.
The sample label script is listed below and will be referred to as the individual components
are discussed in the subsequent sections of Chapter 1. The actual programming
instructions that have been typed into a text file, using Windows Notepad, are in bold
typeface. These instructions are followed by a brief explanation shown within the
parentheses “()”.
^A)Sample Script
(^A indicates the beginning of the script file followed by an optional script title)
^D200)3.3, 1.9, 0.125, 1.063, 5 , 1 , 0, 0
(Script header used to define the label format or script file. Units have been entered
using inches as the unit of measure in this example.)
^F1)0.15, 1.50, @normal_14
(Field #1 formatting instructions containing text using a normal 14 point font)
^F2)0.30, 0.50,@code128auto, 3, 0.70
(Field #2 formatting instructions containing a Code128 bar code using automatic
compression)
^F3)0.60, 0.13, @normal_10
(Field #3 formatting instructions containing text using a normal 10 point font)
^T1)MICROCOM CORPORATION
(Text data for field #1)
^T2)12345678901234567
(Text data for field #2)
^T3)12345 678 90123 45 6 7 8901234
(Text data for field #3)
^D300 )1
(Instructs the printer to print one copy once the ^Z instruction is received)
^Z) (Marks the end of the script file)