2500_Users_Manual.pdf - 第402页

Computer Remote Control E-14 ProMaste r 2500 User Ma nual The followin g diagram i llustrat es an example of pin 1 orient ations for th e three locations: The rotation byte in binary is 00010 011. Convert 0001 0011 binar…

100%1 / 448
Computer Remote Control
ProMaster 2500 User Manual E-13
Q6
This record contains print density information. It is allowed one data byte
and is defined as follows:
To select a print density of 26 CPI for the dot matrix printer, the record
would be
Q60201FC
. If this record is not received, the 12 CPI print
density is assumed.
Q7
This record defines the device pin 1 orientation at three locations on the
2500:
Out of the input tube.
The label application area.
Into the output (receiving) tube.
This information allows the 2500 to rotate the device correctly before it
inserts it into the programming station, labels it, and inserts it into an
output (receiving) tube.
The location of pin 1 with respect to the 2500 and the direction of travel, is
represented as a number from 0 to 3 displayed in the diagram below:
All three pin locations are represented in one-binary byte that is
converted to hex. An example of the rotation byte is illustrated below.
Dot Matrix Printer Thermal Printer
00 = Auto-Select 00 = Auto-Select
01 = 26 CPI 01 = 28 CPI
02 = 26 S CPI (Short) 02 = 28 S CPI (Short)
03 = 20 CPI 03 = 22 CPI
04 = 16 T CPI (Tall) 04 = 11 CPI
05 = 12 T CPI (Tall) 05 = 19 CPI
07 = 18 CPI 06 = 16 CPI
DIRECTION OF TRAVEL
3
INTO RECEIVING
TUBE
1
02
3
LABEL
ORIENTATION
1
TXT
02
3
OUT OF
INPUT TUBE
1
02
1391-1
00010011
RESERVED FOR FUTURE USE
INTO RECEIVING TUBE
LABEL ORIENTATION
OUT OF INPUT TUBE
1392-1
Computer Remote Control
E-14 ProMaster 2500 User Manual
The following diagram illustrates an example of pin 1 orientations for the
three locations:
The rotation byte in binary is 00010011. Convert 00010011 binary to 13
hex. The record becomes
Q70213EA.
Q8
Reserved for future use.
Q9
A termination record for a block of label records. There is no data field.
Only one termination record is used in a Label Hex Format file. Usually,
only one header record is used, although multiple header records are
allowed.
Creating Hex Label
Records
You can create a Hex Label Format file using a standard text editor,
although it is easier to use a program that can create a Hex Label Format
file, such as the LABEL program included with the ProMaster 2500. You
can use this program, which is written in the C programming language,
on any computer able to run a C compiler. The LABEL program creates a
file named
label.hex
after you enter the labeling information. You can
compile the source for this program, included in this chapter, using any C
compiler.
Example of the Hex Label
File Format
A typical Hex Label Format file used for downloading labeling and
device information to the 2500 is shown below:
Q001FE
Q10C4C4142454C0D544558540D34
Q20201FC
Q60202FB
Q70213EA
Q901FE
The elements of this file are one Q0 record, one Q1 record defining the
labeling information “LABEL,” CR, “TEXT,” CR a Q2 record defining the
device type, a Q6 record defining print density information, a Q7 record
defining pin 1 orientation, and one Q9 record.
One Q0 record comprised of the following character pairs:
Q0
Label record type — Q0 indicates a header record.
01
Record length — Indicates that 1 hex byte follows in the record.
FE
Checksum.
The Q1 record consists of the following components:
INTO RECEIVING
TUBE = 01 (1)
PIN 1
LABEL
ORIENTATION = 0
DIRECTION OF TRAVEL
TXT
PIN 1
PIN 1
OUT OF
INPUT TUBE = 11 (3)
1393-1
Computer Remote Control
ProMaster 2500 User Manual E-15
Q1
Label record type — Q1 indicates a data record containing
labeling information. The ASCII character CR (0D hex) forces a
new line (may contain up to 8 lines).
0C
Record length — Indicates that 12 hex bytes follow in the record:
4C
L
41
A
42
S
45
E
4C
R
0D
cr
54
T
45
E
58
X
54
T
0D
cr
34
Checksum
The Q2 record consists of the following:
Q2
Label record type — Q2 indicates a data record containing
device type information.
02
Record length — Indicates that 2 hex bytes follow in the record.
01
Indicates 28 pin PLCC device type
FC
Checksum
The Q6 record consists of the following:
Q6
Label record type — Q6 indicates a data record containing
labeling information.
02
Record length — Indicates that 2 hex bytes follow in the record.
02
Indicates 26 S CPI text.
FB
Checksum.
The Q7 record consists of the following:
Q7
Label record type — Q7 indicates a data record containing pin 1
orientation data.
02
Record length — Indicates that 2 hex bytes follow in the record.
13
Indicates the following:
Parts exiting the input tube are pin 1 = 3.
Label orientation with respect to pin 1 = 0.
Parts entering receiving tube are pin 1 = 1.
EA
Checksum.
The Q9 record consists of the following:
Q9
Label record type — Q9 indicates a termination record.
01
Record length — Indicates that 1 hex byte follows in the record.
representing 1 byte of binary data, follows.