2500_Users_Manual - 第101页

Task s and Ki ts 3-26 ProMa ster 25 00 U ser Ma nual The following example gives these sample values f or the parameters: a 10-character ASCII hexadecim al serial num ber at address 12345 (hexadecimal), increase the seri…

100%1 / 448
Tasks and Kits
ProMaster 2500 User Manual 3-25
Serialization Parameters
TaskLink supplies a sample ESP called “
serializ.exe
” 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:
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)
Parameter Setting
Serialization Method File
RAM Serialization On
Program
serializ.exe
*
* Include any command line parameters you want, as described in the next section.
Edit Starting Number No
Keep Next Number Yes
Next Serial Number starting_serial_number
Tasks and Kits
3-26 ProMaster 2500 User Manual
The following example gives these sample values for the parameters: a
10-character ASCII hexadecimal serial number at address 12345
(hexadecimal), increase the serial number by an increment of 2 for each
device programmed, and print each serial number on the device label (in
hexadecimal). The Program entry field in the
Setup/Serialization
dialog
box might look like this:
serializ.exe
–l10 –fh –a12345 –i2 –h
Parameter Description
–a
Address of serial number.
Defines the device address (hexadecimal value) where the
serial number will be programmed in the device. For
example, –a12345 places the serial number at hexadecimal
address 12345.
Default
: Zero (–a0)
–f
Format of serial number.
Defines the format of the serial number in the device.
These three formats are supported:
–fb = Binary
–fd = ASCII decimal
–fh = ASCII hexadecimal
Default:
Binary (–fb)
–i
Serial number increment.
Defines the decimal value to be used to increment the
serial number after each successfully programmed
device. For example, –i2 increases the serial number by 2
for each device programmed.
Default:
1 (–i1)
-l
Length of serial number.
Defines the number of bytes the serial number occupies in
the device. The following settings are supported.
1 through 4 Binary
1 through 8 ASCII hexadecimal
1 through 10 ASCII decimal
Default:
2 (–l2)
–m
Pure Set gang serialization mode.
Serial numbers are generated one device size apart in
programmer RAM instead of in a single block just beyond
the fixed data in RAM. TaskLink then programs devices
in a single-pass operation with a set size equal to the
number of installed sockets.
–o
Byte order of serial number.
Serial numbers are placed in RAM with the most
significant byte (MSB) or the least significant byte (LSB) at
the first (lower) RAM address. This setting applies to
binary and ASCII formats. The settings are
–om = MSB at first RAM address (Motorola-style)
–oi = LSB at first RAM address (Intel-style)
Default:
MSB at first RAM address (–om)
Tasks and Kits
ProMaster 2500 User Manual 3-27
Note: To enable printing a serial number on a label, enter two or more
consecutive percent signs (%) in the text field. You must enter one
percent sign for each digit specified with the
serializ.exe
length (–l)
command line parameter.
Restore Defaults
Selecting this command directs the 2500 to restore its programming
parameters to their original defaults (such as a two pass verify, I/O
address = FFFFFFFF, Security option = 0, and others).
Data and Program
Pull-down Menus
The commands listed on these two menus allow you to select the
individual parameters needed to process devices. These are the same
commands listed in the Edit Task dialog box used to create a Task. These
individual commands are primarily used during troubleshooting and
allow you to quickly change one or two parameters and run a test
without having to create and edit a new Task for each test cycle.
TaskLink’s menus and dialog boxes refer to a file stored on one of the
internal drives (MSM or floppy) as a
Programmer Disk File.
Utilities Pull-down
Menu
Several commands available on the Utilities pull-down menu are used to
perform special operations. The specific commands and their functions
on the 2500 are described below.
–s
Sumcheck calculation flag.
Used to provide a new sumcheck for display on the
TaskLink screen as new serial numbers are generated.
This does not affect device data.
–t
Label text format.
Defines how the serial number will be printed on the
label. The options are either decimal or hexadecimal.
–td = decimal
–th = hexadecimal
Default:
Decimal (–td)
–w
Warning limit.
Sets a warning level before the serial number limit is
reached when an ending serial number is specified. If the
current serial number is within the ending serial number,
minus the warning limit, TaskLink displays a warning
message.
Default:
Zero
Parameter Description