2500_Users_Manual- - 第100页
Tasks and Kits Serialization Parameters TaskLink supplies a sample ESP called t4 serializ.exe M to use as a template for developing your program. The source code (named <serializ.c^^) for this program is included with…

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
Tasks
and
Kits
Figure
3-16
The
Serialization
Process
3-24
ProMaster
2500
User
Manual

Tasks
and
Kits
Serialization
Parameters
TaskLink
supplies
a
sample
ESP
called
t4
serializ.exe
M
to
use
as
a
template
for
developing
your
program.
The
source
code
(named
<serializ.c^^)
for
this
program
is
included
with
TaskLink.
Figure
3-15
shows
the
Serialization
Parameters
dialog
box.
To
use
serializ.exe
to
place
a
serial
number
in
programmer
RAM,
set
the
parameters
as
follows:
Parameter
Setting
Serialization
Method
File
RAM
Serialization
On
Program
serializ.exe*
Edit
Starting
Number
No
Keep
Next
Number
Yes
Next
Serial
Number
starting_serial_number
*
Include
any
command
line
parameters
you
want,
as
described
in
the
next
section.
Note:
For
compatibility
with
external
serialization
programs
you
may
have
written
for
HandlerLink,
select
Memory
Buffer
for
the
Serialization
Method.
External
Serialization
Program
(ESP)
Serializ.exe
is
used
to
illustrate
passing
parameters
to
the
ESP.
This
is
a
simple
program
that
can
be
used
to
generate
a
serial
number
for
each
device
that
programs
successfully.
It
directs
the
labeler
to
print
a
label
with
that
serial
number.
Some
of
the
parameter
options
that
you
can
pass
to
the
external
software
program
on
the
Program
command
line
include:
•
Serial
number's
address
in
the
device
•
Serial
number's
format
(decimal,
hex,
binary)
•
Length
(number
of
bytes)
•
Byte
order
of
high
and
low
bytes
•
Value
used
to
increment
each
serial
number
•
Format
of
the
serial
number
printed
on
the
label
(binary,
ASCII
decimal,
or
ASCII
hexadecimal)
ProMaster
2500
User
Manual
3-25

First_task_name
Second_task_name
First_kit_name
First_task_name
Second_task_name
First_kit_name
Not_current_file::Second_kit_name
↵
Tasks
and
Kits
The
requirements
for
user-created
messages
are
described
below:
•
Message
file
must
be
an
ASCII
text
file.
Save
the
file
as
an
unformatted
text
file.
•
Message
file
must
be
called
tl.msg.
TaskLink
looks
for
a
file
with
this
name.
The
maximum
line
length
in
this
file
is
66
characters.
•
Each
message
number
must
begin
with
a
tilde
(~),
followed
by
four
digits
as
in
the
following
example:
0023.
The
tilde
and
four-digit
number
must
be
on
a
line
by
themselves.
The
message
that
will
be
displayed
includes
all
the
text
after
the
tilde
and
message
number,
and
before
the
next
tilde
in
the
file.
•
Spacing
and
formatting
is
maintained
(WYSIWYG)
unless
you
use
\b
(for
bold).
The
\b
does
not
appear
on
the
screen
and
all
characters
move
to
the
left
two
spaces
for
every
\b
in
the
line.
Creating
Task/Kit
Batch
Files
You
can
create
an
ASCII
batch
file
that
allows
you
to
run
any
combination
of
Tasks
and
Kits
in
the
order
defined
in
the
file.
TaskLink
reads
the
batch
file,
searches
the
current
Task
Database
file
(last
file
used)
for
the
Task/
Kit,
and
runs
it
using
the
normal
screens.
Each
line
in
the
batch
file
(unformatted
ASCII
text
file)
is
only
required
to
have
the
name
of
an
existing
Task
or
Kit.
A
sample
file
would
look
like
this:
If
an
optional
Task
Database
file
name
is
entered
before
the
Task/Kit
name
and
is
terminated
by
a
double
colon
TaskLink
looks
for
the
Task
in
the
specified
Database
file.
The
fourth
line
in
the
same
sample
file
below
directs
TaskLink
to
look
in
a
Database
file
called
Not_current_file
to
find
a
Kit
called
Second
kit
name.
Note:
Do
not
use
two
consecutive
colons
in
Task
or
Kit
names
if
you
plan
to
use
those
Tasks/Kits
in
batch
files.
To
run
a
batch
file
in
administrator
mode,
select
Tasks
from
the
Main
menu.
Choose
a
batch
file
from
the
list
displayed,
and
press
.
3-38
ProMaster
2500
User
Manual