Elnec MEMprog2 User Manual page 122

Hide thumbs Also See for MEMprog2:
Table of Contents

Advertisement

This option is required to specify the initial serial number that will be passed to custom
generator serialization program. The number is entered and displayed in hexadecimal format.
Last serial number
This option specifies the maximum value of serial number allowed. If the value is non-zero, it
will be passed to serialization generator program. The generator is responsible for testing the
value of last serial number and generate serial .dat file with appropriate error information in
the serialization .dat file in case of current serial number greater then last serial number. If the
value of Last serial number is zero, the value will not be passed to generator program.
Check box Call generator with -RESULT parameter after device operation completed
This new option has special purpose. If there is requirement to call custom generator with
special parameter -RESULT, the check box should be checked. Otherwise it has to be
unchecked (the default state is unchecked). If checked, custom generator is called by Pg4uw
control program after each device operation is completed, no matter the result of device
operation is OK or Error. Parameters for generator are created by Pg4uw serialization engine.
Two parameters are used:
-RESULT[n]=TRUE | FALSE
where n is optional Programmer Site order number, if multiprogramming is used.
TRUE means that device operation was finished OK. FALSE means, that device operation
was finished with error.
-N<serial number>
specifies current serial number in the same way, as for normal calling of serialization
generator.
Custom generator program
Custom generator program or serialization generator is program that will generate the unique
sequence of serial numbers and write the serial data to serialization .dat file. This program is
made by user. The path and name of the serialization program must be specified in the
Serialization options dialog in Custom generator mode options.
The program will be called from Pg4uw every time the new serial data have to be generated.
This is usually made before each device programming operation. Pg4uw control program
passes command line parameters to serialization program and serialization program
generates serialization .dat file which is read by Pg4uw control program. Following command
line parameters are used:
-N<serial number>
-E<serial number>
when value of Last serial number specified in dialog Serialization in Pg4uw software is no
zero. The serialization program should return error record T06 in the serialization .dat file, if
the current serial number is greater than ending serial number. For details look at section
Serialization .dat file format.
Serialization .dat file format
Serialization .dat file generated by serialization generator must meet following text format.
Serialization .dat file consists of records and serial data section.
Specifies current serial number.
Specifies ending (or last) serial number. The parameter is only passed
122
ELNEC s. r. o.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MEMprog2 and is the answer not in the manual?

Questions and answers

Table of Contents