2500_Users_Manual.pdf - 第98页

Task s and Ki ts ProM aster 25 00 User Manua l 3-23 Serializ ation Method — select File when operating wit h an ESP. ( The Memory Bu ffer selection is off ered to maintain compat ibility with a previous product and shoul…

100%1 / 448
Tasks and Kits
3-22 ProMaster 2500 User Manual
Serializing Devices
You may want to program a serial number into the devices and/or print
the number on the label. TaskLink’s
Serialization...
option offers an
opportunity to do this in software. A sample serialization program called
serializ.exe
is provided with TaskLink. For detailed information on the
serialization program, refer to the External Serialization Program section
on page 3-25 and to the online help topic “Writing a Serialization
Program” under TaskLink’s General Help Index. To implement
serialization features not provided by
serializ.exe
, you will need to write
a short external serialization program (ESP) to generate your serial
number and save it in an ASCII file for TaskLink to use.
To print a serial number on a label, enter a percent sign (%) in the label
text field (ProMaster 2500 dialog box) for each character to be printed on
the label (refer to the command line length parameter “-l”).
Note: You must have U15 version 1.06 or greater to print a serial number.
Figure 3-16 shows the process steps in creating a file to be used for
serializing devices.
The
Program
line in TaskLink’s
Serialization Parameters
screen (see
Figure 3-15) allows you to enter the executable name for your external
program (ESP). You can also include the path and command line
arguments that define the characteristics of the serial number to pass to
the ESP. The ESP is called from the command line using a command
similar to the following:
drive:\path\file_name
where
drive
is the drive where the ESP resides,
path
is a valid DOS path
to the subdirectory where the ESP is written, and
file_name
is the ESP
executable file name and extension.
Tasks and Kits
ProMaster 2500 User Manual 3-23
Serialization Method —
select
File
when operating with an ESP. (The
Memory Buffer selection is offered to maintain compatibility with a
previous product and should not be used to create a new ESP.)
RAM Serialization
— select
On
when you want the serial number to be
programmed in the device. Selecting
Off
will print the serial number on
the label when you have included two or more percent (
%
) signs in a row
in the label text field (in the
ProMaster 2500
dialog box).
Edit Starting Number
— set to
Yes
when the starting serial number will
be entered or edited by the operator at the start of the Task. Enter the new
serial number in the Next Serial Number field.
TaskLink will record the last serial number programmed into a device,
increment it, and use it as the starting number the next time the Task is
run. Select
No
if you want to operate in this manner.
Keep Next Number
— select
Yes
if you want TaskLink to record the next
valid serial number so it can be used the next time the Task is run. If the
last successfully programmed and serialized device had a serial number
of 7123, selecting
Yes
would program serial number 7124 into the first
device on the next run of the Task.
When this dialog box is complete, move the cursor to
<OK>
and press
.
TaskLink calls the ESP program (see Figure 3-16) when the Task is run,
before the first device is processed. The ESP generates a valid serial
number, creates an ASCII file called
Serial.dat
and writes it on the PC’s
disk. The ESP passes control back to TaskLink. The serial number file is
downloaded to the 2500’s RAM, and the device is programmed.
Figure 3-15
Serialization Parameters Dialog
Box
Tasks and Kits
3-24 ProMaster 2500 User Manual
Figure 3-16
The Serialization Process
TASKLINK PC HARD DRIVE
"PROCESS DEVICES"
Task runs
EXTERNAL SERIALIZATION
PROGRAM (ESP)
Written by user.
Generates a serial number.
Creates an ASCII file called
"serial.dat."
"serializ.exe" is a sample of
a basic external serialization
program.
Calls "ESP" and
passes parameters
-a
-f
-i
-l
-h
-o
-s
-t
"SERIAL.DAT" (ASCII FILE)
Eight-line file containing
serial number
ESP creates
"serial.dat"
T
a
s
k
L
i
n
k
l
o
o
k
s
f
o
r
"
s
e
r
i
a
l
.
d
a
t
"
R
e
a
d
s
"
s
e
r
i
a
l
.
d
a
t
"
Data file created
by "ESP" to handler
1920-2
SERIALIZATION
PARAMETERS
DIALOG BOX
Operator provides
TaskLink with "ESP"
program name.
1
2
3
4
5
Next blank device placed
in programming module
Program device
Device
pass?
Return to step .1
Yes
No
D
o
w
n
l
o
a
d
s
s
e
r
i
a
l
n
u
m
b
e
r
6
PROMASTER HANDLER