The programming of serial numbers is based on a special CSV-file format. It is activated at data-buffer’s “File/Buffer Options”-Tab.
The configuration dialog of the serial number programming offers some input elements to control the programming run.
A Switch to turn global serial number programming on/off..
A file dialog to specify the CSV file.
A rule check for the CSV-file.
The path of the CSV file can be fully specified or the GALEP software expects the CSV file at the same location as the project file(gpf2).
The write back of the serial number status can be activated or deactivated.
Choose the allocation rule for the serial number between use strict only once or reuse the serial number in case of programming failure.
The CSV serial number file format (Comma Separated Values ) is based in one data record per line. Each line consists of some comma separated data written in ASCII characters. Several lines and serial number records respectively are building a serial number block. A serial number block is valid for one device programming run. The line format of the CSV file looks like:
Count(Dec), SerialData(Hex), SerialAddress(Hex), DataLenght(Dec), RecordType [, Status]
Status: If the status is
missing, the serial number record is initially unused. The status
information consists of the characters
p, f and u.
p stands for
pending, f“ stands for fail and „u“
means used. e.g. pfpu means
pending, fail, pending,
used. Normally the status information will be written
by the GALEP software.
RecordType:
„R“ |
The record describes the basic serial number data containing SerialData, SerialAddress and DataLenght. |
„L“ |
SerialData is used as label. |
„B“ |
SerialData is used as label and serial number (togther with SerialAddress und DataLenght). |
DataLenght describes the length of the SerialData-field. It is an ASCII coded decimal value. For the record types „B“ and „R“ the value can be 0 up to 20.
SerialAddress is an ASCII coded hexadecimal number form 0 to FFFFFFFE and is used for the address of the serial number. If the record type is „L“ the SerialAddress will be ignored.
SerialData is the serial number data limited to 20 bytes. For RecordType “R” are max 40 ASCII characters possible. For „L“ and „B“ are max 20 ASCII characters allowed. If the serial data field is shorter than the length specified than the unused characters will be filled with “00”.
Count is the ordinal
number for the serial number record. Several record with the same
count are put together to a serial number block(look at the
samples).
CSV-Samples.
Sample 1:
1,
0001, 7AA, 2, B
2, 0002, 7AA, 2, B
3, 0003, 7AA, 2, B
4,
0004, 7AA, 2, B
Sample 2:
1,
0001, 7AA, 2, R
1, 1_7AA, , , L
2, 0002, 7AA, 2, R
2,
2_7AA, , , L
3, 0003, 7AA, 2, R
3, 3_7AA, , , L
4, 0004,
7AA, 2, R
4, 4_7AA, BBBB,5 , L //SerialAddress and DataLength
will be ignored.
Sample 3:
1,
0001, 7AA, 2, R //First device
1, 0011, 7BB, 2, R //First device
1, 1_7AA_7BB, , , L //First device
2,
0002, 7AA, 2, R //2. device
2, 0022, 7BB, 2, R //2. device
2,
2_7AA_7BB, , , L //2. device
3,
0003, 7AA, 2, R
3, 0033, 7BB, 2, R
3, 3_7AA_7BB, , , L
4,
0004, 7AA, 2, R
4, 0044, 7BB, 2, R
4, 4_7AA_7BB, BBBB,5 , L
//SerialAddress and DataLength will be ignored.
5,
000A, 7AA, 2, R //Last SN
5, 000B, 7BB, 2, R //Last SN
5,
Final, , , L //Last SN